Skip to content

Group CSV editor code in its own folder - #25476

Merged
nwparker merged 1 commit into
mainfrom
nwparker/csv-folder-cleanup
Oct 5, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/csv-folder-cleanup

Conversation

@nwparker

@nwparker nwparker commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 0
Prod 39 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​21 $\color{#cf222e}{\Huge{\mathbf{−}}}$​21 0

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 to csv-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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

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

  • Not applicable.

Notes

No new dependencies, runtime paths, shortcuts, IPC contracts or preference formats. Shared behavior for other viewers remains in the editor folder.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Changed-code lint and formatting passed locally; CI covers the full lint gate.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f3f87df7-f319-4bec-8e87-2c65cb282948
📥 Commits

Reviewing files that changed from the base of the PR and between e46fa0d and 6e8fb0b.

📒 Files selected for processing (54)
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/components/editor/csv/CsvCellValue.tsx
  • src/renderer/src/components/editor/csv/CsvColumnResizeHandle.tsx
  • src/renderer/src/components/editor/csv/CsvGrid.test.tsx
  • src/renderer/src/components/editor/csv/CsvGrid.tsx
  • src/renderer/src/components/editor/csv/CsvGridCell.tsx
  • src/renderer/src/components/editor/csv/CsvPagedViewer.tsx
  • src/renderer/src/components/editor/csv/CsvTableToolbar.tsx
  • src/renderer/src/components/editor/csv/CsvViewer.delimiter.test.tsx
  • src/renderer/src/components/editor/csv/CsvViewer.editing.test.tsx
  • src/renderer/src/components/editor/csv/CsvViewer.tsx
  • src/renderer/src/components/editor/csv/csv-byte-index.test.ts
  • src/renderer/src/components/editor/csv/csv-byte-index.ts
  • src/renderer/src/components/editor/csv/csv-cell-clipboard.ts
  • src/renderer/src/components/editor/csv/csv-cell-links.test.tsx
  • src/renderer/src/components/editor/csv/csv-cell-selection.ts
  • src/renderer/src/components/editor/csv/csv-column-width-limits.ts
  • src/renderer/src/components/editor/csv/csv-column-width-preferences.test.ts
  • src/renderer/src/components/editor/csv/csv-column-width-preferences.ts
  • src/renderer/src/components/editor/csv/csv-delimiter-detection.ts
  • src/renderer/src/components/editor/csv/csv-delimiter-picker.tsx
  • src/renderer/src/components/editor/csv/csv-file-content.ts
  • src/renderer/src/components/editor/csv/csv-file-limits.ts
  • src/renderer/src/components/editor/csv/csv-grid-interaction.ts
  • src/renderer/src/components/editor/csv/csv-grid-keyboard.ts
  • src/renderer/src/components/editor/csv/csv-inspection.ts
  • src/renderer/src/components/editor/csv/csv-link-routing.ts
  • src/renderer/src/components/editor/csv/csv-paged-preview.test.ts
  • src/renderer/src/components/editor/csv/csv-paged-preview.ts
  • src/renderer/src/components/editor/csv/csv-parse-budget.test.ts
  • src/renderer/src/components/editor/csv/csv-parse.test.ts
  • src/renderer/src/components/editor/csv/csv-parse.ts
  • src/renderer/src/components/editor/csv/csv-pending-save.test.ts
  • src/renderer/src/components/editor/csv/csv-preview-save-safety.test.ts
  • src/renderer/src/components/editor/csv/csv-preview-worker-client.ts
  • src/renderer/src/components/editor/csv/csv-preview-worker-protocol.ts
  • src/renderer/src/components/editor/csv/csv-preview.worker.ts
  • src/renderer/src/components/editor/csv/csv-serialization.ts
  • src/renderer/src/components/editor/csv/csv-source-record.ts
  • src/renderer/src/components/editor/csv/csv-table-edit-budget.ts
  • src/renderer/src/components/editor/csv/csv-table-interactions.test.ts
  • src/renderer/src/components/editor/csv/csv-text-cell-edits.ts
  • src/renderer/src/components/editor/csv/csv-text-document.test.ts
  • src/renderer/src/components/editor/csv/csv-text-document.ts
  • src/renderer/src/components/editor/csv/useCsvClipboard.ts
  • src/renderer/src/components/editor/csv/useCsvColumnWidths.ts
  • src/renderer/src/components/editor/csv/useCsvPagedPreview.test.tsx
  • src/renderer/src/components/editor/csv/useCsvPagedPreview.ts
  • src/renderer/src/components/editor/csv/useCsvPendingCell.ts
  • src/renderer/src/components/editor/csv/useCsvTableEditor.ts
  • src/renderer/src/components/editor/editor-lazy-views.ts
  • src/renderer/src/components/editor/editor-panel-content-types.ts
  • src/renderer/src/components/editor/useEditorPanelFileContentLoader.ts
  • src/renderer/src/runtime/runtime-file-range-client.test.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 67fc708 into main Oct 5, 2026
3 of 4 checks passed
@nwparker nwparker mentioned this pull request Oct 5, 2026
9 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant