-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(files): inline file viewer with text editing #3475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
waleedlatif1
merged 17 commits into
feat/mothership-copilot
from
waleedlatif1/file-viewer-preview
Mar 9, 2026
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b546113
feat(files): add inline file viewer with text editing and create file…
waleedlatif1 4e2c770
improvement(files): add UX polish, PR review fixes, and context menu
waleedlatif1 999ff71
fix(files): propagate save errors and remove redundant sizeDiff
waleedlatif1 4860b11
fix(files): remove unused textareaRef
waleedlatif1 59afa54
fix(files): move Cmd+S to parent, add save error feedback, hide save …
waleedlatif1 bed055c
improvement(files): add save tooltip, deduplicate text-editable exten…
waleedlatif1 ad9bd5d
refactor: extract isMacPlatform to shared utility
waleedlatif1 493e30d
refactor(files): deduplicate delete modal, use shared formatFileSize
waleedlatif1 bfbb112
fix(files): fix a11y label lint error and remove mutation object from…
waleedlatif1 7d84bc6
fix(files): add isDirty guard on handleSave, return proper HTTP statu…
waleedlatif1 2ba0683
fix(files): reset isDirty/saveStatus on delete and discard, remove de…
waleedlatif1 6986b5b
fix(files): prevent concurrent saves on rapid Cmd+S, add YAML MIME types
waleedlatif1 076f984
refactor(files): reuse shared extension constants, parallelize cancel…
waleedlatif1 4de9bde
fix(files): guard handleCreate against duplicate calls while pending
waleedlatif1 53ec2bb
fix(files): show upload progress on the Upload button, not New file
waleedlatif1 749227c
fix(files): use ref-based guard for create pending state to avoid sta…
waleedlatif1 fd0081f
cleanup(files): use shared icon import, remove no-op props, wrap hand…
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
improvement(files): add UX polish, PR review fixes, and context menu
- Add unsaved changes guard modal (matching credentials manager pattern) - Add delete confirmation modal for both viewer and context menu - Add save status feedback (Save → Saving... → Saved) - Add right-click context menu with Open, Download, Delete actions - Add 50MB file size limit on content update API - Add storage quota check before content updates - Add response.ok guard on download to prevent corrupt files - Add skeleton loading for pending file selection (prevents flicker) - Fix updateContent in handleSave dependency array Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Loading branch information
commit 4e2c77071a22f06b4666044fd260082900df6aab
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.