Repository navigation
feat(editor): resize CSV table columns - #13223
hungrytech wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (7)
📝 WalkthroughWalkthroughThe CSV viewer calculates column widths from headers and up to 200 body rows. Users can resize columns with pointer dragging or keyboard arrow keys. Widths are clamped during resizing and persisted per file across content updates and remounts. Header and row grid widths remain synchronized. Localized accessibility labels were added in five languages. Tests cover resizing, clamping, cleanup, persistence, and interrupted drags. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
Summary
Part of #12915.
Direct cell editing and row or column operations remain out of scope for this PR.
Screenshots
Captured from the Electron E2E app after dragging the first column boundary 120 px.
Testing
pnpm lintpnpm typecheckpnpm test— 4,574 files passed, 48,419 tests passed, 100 skippedFocused tests:
Result before the follow-up hardening commit: 2 files passed, 18 tests passed.
The updated resize interaction suite was then rerun on the final commit: 1 file passed, 4 tests passed.
Electron proof:
Additional checks on the final commit:
git diff --checkpassedA later local full-suite attempt on the final commit hit the command timeout after an unrelated
omp-shell-wrapper.node-ptyfailure. No CSV test failed; the final focused CSV suite and full typecheck passed.AI Review Report
The review checked pointer lifecycle and cancellation, cursor and selection cleanup, keyboard access, header/body alignment, tab and view remounts, duplicate headers, and localization coverage. The interaction stays in the renderer and uses standard pointer and keyboard events, so macOS, Windows, and Linux use the same path. SSH, remote runtimes, agents, integrations, and git providers are untouched. Row virtualization is unchanged, and resize work is limited to updating the shared column template. React Doctor reported 0 warnings and 0 errors.
Security Audit
No IPC, network access, dependencies, command execution, path handling, permissions, authentication, or secret handling were added. Column widths stay in a renderer-only, session-scoped cache and are not written to disk or to the CSV.
Contributor
X handle: not provided.