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 Review✅ No critical issues found. This is a structural refactor of Spot checks against
Non-blocking notes (optional follow-up, not required for merge):
|
E2E Test Results✅ All tests passed • 163 passed • 3 skipped • 1202s
Tests ran across 4 shards in parallel. |
Deep ReviewPure-refactor split of the 2464-line 🔴 P0/P1 -- must fix
🟡 P2 -- recommended
🔵 P3 nitpicks (13)
Reviewers (11): correctness, testing, maintainability, project-standards, kieran-typescript, adversarial, performance, julik-frontend-races, previous-comments, agent-native (no findings -- pure UI refactor; default-export barrel preserves the public surface), learnings-researcher (no findings -- repo has no app-side 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