Repository navigation
Group CSV editor code in its own folder - #25476
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (54)
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 |
9 tasks done
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.
ELI5
CSV code now lives together in the editor’s
csv/folder. Opening, viewing and editing CSV files works the same as before.What Changed
Move the CSV viewers, parsing and preview worker, editing hooks, column preferences and colocated tests into
src/renderer/src/components/editor/csv/. Rename the file-loading module tocsv-file-content.ts, update its consumers and relative imports, and update the CI test timing path. Shared editor saving, autosave, link routing and file-view preference storage keep their existing locations.Why
Keeping CSV-specific code together makes it easier to find and maintain without adding forwarding modules or another abstraction. This is a directory cleanup following the CSV editing work.
Linked Issue
Follow-up to #25442; refs #12915.
Visual Proof
N/A — directory and import-path changes only; no visual or interaction changes.
Testing
On macOS: 193 focused unit tests across 21 suites, including CSV parsing, editing, saves, preferences and local/remote file routing;
pnpm tc; changed-code quality checks; formatting; an Electron build and eight hidden Electron UI checks covering large-file paging, editing, clipboard, column widths, autosave and URLs. Existing tests moved with their code; no new tests are needed for a directory-only change. Linux, Windows and live SSH were not exercised.Review
All 49 moved files are byte-identical after masking relative import paths. Independent audit checks module resolution, worker loading, lazy viewer identities, test discovery and unchanged hooks, constants and save behavior.
Agent skill upstream boundary
Notes
No new dependencies, runtime paths, shortcuts, IPC contracts or preference formats. Shared behavior for other viewers remains in the editor folder.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Changed-code lint and formatting passed locally; CI covers the full lint gate.