Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview In Cleans up preview mode plumbing by removing Written by Cursor Bugbot for commit 00d513e. This will update automatically on new commits. Configure here. |
Greptile SummaryThis PR changes the default preview experience for files to render formatted markdown immediately, rather than starting in split view. It also updates the cycle-button icon system so each icon represents the next state in the preview cycle (making the button behave as a forward indicator), and renames the standalone toggle labels from Key changes:
One minor style note: the icon-lookup fallback Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Resource tab switch] --> B[useEffect resets previewMode to preview]
B --> C{isActivePreviewable}
C -- Yes --> D[Pass previewMode to ResourceContent and cycle button]
C -- No --> E[previewMode=undefined, cycle button hidden]
D --> F{User clicks cycle button}
F --> G[PREVIEW_CYCLE: editor to split to preview to editor]
G --> H[Icon shows next state]
H --> I[editor shows Columns3]
H --> J[split shows Eye]
H --> K[preview shows Pencil]
L[files.tsx standalone toggle] --> M{showPreview is true}
M -- Yes --> N[Label Edit, Icon Pencil, fileViewer defaults to preview mode]
M -- No --> O[Label Preview, Icon Eye, fileViewer defaults to editor mode]
|
apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx
Show resolved
Hide resolved
Co-authored-by: Theodore Li <TheodoreSpeaks@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx
Show resolved
Hide resolved
* Show rendered md by default * Lint fix * chore(file-viewer): remove dead PREVIEW_ONLY_EXTENSIONS export Co-authored-by: Theodore Li <TheodoreSpeaks@users.noreply.github.com> * Fix new file logic to default to text --------- Co-authored-by: Theodore Li <theo@sim.ai> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Theodore Li <TheodoreSpeaks@users.noreply.github.com>

Summary
Render formatted markdown by default. Switch icon for raw to pencil
Fixes #(issue)
Type of Change
Testing
Validated md, html, raw files show correct icons.
Checklist
Screenshots/Videos