refactor(app): split DBDashboardPage into focused modules#2233
refactor(app): split DBDashboardPage into focused modules#2233
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🔴 Tier 4 — CriticalTouches auth, data models, config, tasks, OTel pipeline, ClickHouse, or CI/CD. Why this tier:
Review process: Deep review from a domain expert. Synchronous walkthrough may be required. Stats
|
PR ReviewPure refactor splitting the 2464-line Findings
No security, type-safety, or behavioral regressions spotted. Tests look reasonable (the |
E2E Test Results✅ All tests passed • 166 passed • 3 skipped • 1180s
Tests ran across 4 shards in parallel. |
Deep ReviewRefactor of the 2464-line 🔴 P0/P1 -- must fix
🟡 P2 -- recommended
🔵 P3 nitpicks (10)
Reviewers (10): correctness, testing, maintainability, project-standards, adversarial, performance, kieran-typescript, julik-frontend-races, agent-native (no findings — pure refactor with no new agent-facing surface), learnings-researcher (no findings — Testing gaps:
|
|
/just-fix-it |
|
Fixed:
Skipped:
|
Summary
Refactors the large
DBDashboardPagemodule into aDBDashboardPage/directory with focused components for the tile renderer, heatmap tile, edit modal, container row, header, toolbar, and dashboard grid. The public@/DBDashboardPageimport remains unchanged through a barrel export.Moves pure dashboard layout/grouping helpers into
utils.tsand adds targeted tests for helper behavior and dashboard grid actions. This is intended to make future dashboard changes easier to review without changing runtime behavior.How to test locally or on Vercel
cd packages/app && yarn ci:unit src/DBDashboardPage/__tests__/utils.test.ts src/DBDashboardPage/__tests__/DashboardGrid.test.tsxcd packages/app && yarn ci:unitmake ci-lintcurrently reaches unrelated pre-existingsource.disabledtype errors inpackages/api/src/models/source.tsand source UI files; the dashboard refactor files have no IDE linter diagnostics afteryarn lint:fix.make dev-e2e FILE=dashboardwas started locally; it was still running after the command was manually backgrounded while the E2E stack was pulling ClickHouse.References
Made with Cursor