Repository navigation
fix(wework): collapse file list and capture Tauri verification - #1926
Merged
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
📝 WalkthroughWalkthroughAdds PNG screenshot capture to the desktop verification workflow and collapses the directory tree when opening a requested file, with corresponding documentation and test coverage. ChangesDesktop verification capture
Workspace directory tree behavior
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant VerifyCLI
participant DesktopAutomation
participant html2canvas
participant OutputFile
VerifyCLI->>DesktopAutomation: execute capture action
DesktopAutomation->>html2canvas: render selected element
html2canvas-->>DesktopAutomation: return PNG data URL
DesktopAutomation-->>VerifyCLI: return screenshot payload
VerifyCLI->>OutputFile: write decoded PNG bytes
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
qdaxb
marked this pull request as ready for review
July 13, 2026 11:14
This was referenced Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ai:verify captureso isolated Tauri verification can save a PNG without macOS screen-recording permission.Root cause
The file workspace panel always initialized its directory tree as visible. File-open requests selected the requested preview but did not distinguish that focused preview flow from browsing the Files tab directly.
User and developer impact
Opening a file from a conversation now prioritizes the preview area while preserving manual file-list navigation. Contributors can also retain visual evidence from the real isolated Tauri WebView.
Validation
pnpm --filter wework test— 154 files, 1535 tests passed.pnpm --filter wework exec vitest run src/components/layout/DesktopWorkbenchLayout.test.tsx— 125 tests passed.git diff --checkpassed.verify.txtconversation link opened the preview with the tree container at width zero.显示目录树, and the automated recovery path restored the 240px file list.ai:verify captureproduced a 1200×720 PNG from the Tauri WebView.Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests