2.0 KiB
2.0 KiB
Frontend Modernization Roadmap
This roadmap tracks the global cleanup from page-heavy implementation toward production-grade domain modules.
Phase 1: Guardrails
- Add
features/*domain boundaries. - Keep page files below 700 lines.
- Add
npm run audit:pages. - Prefer
api/<domain>imports for new code.
Status: started.
Phase 2: Data Assets And Engines
Target pages:
InstancePage.tsxInstanceDetailPage.tsxRedisDetailPage.tsxMongoDBDetailPage.tsxSchemaSidebar.tsx
Target domains:
features/datasourcefeatures/datasource/engines/mysqlfeatures/datasource/engines/postgresqlfeatures/redisfeatures/mongo
Expected outcome:
- MySQL/PostgreSQL/Redis/Mongo share consistent instance headers, metadata panels, query result density, and dangerous-action affordances.
- Engine-specific behavior is isolated.
Phase 3: Query And Change Platform
Target pages:
QueriesPage.tsxTicketCreatePage.tsxTicketsPage.tsxTicketDetailPage.tsxAutoTaskPage.tsx
Target domains:
features/queryfeatures/ticket
Expected outcome:
- Query workspace, ticket creation, audit results, execution confirmation, rollback evidence, and todo views use shared production patterns.
Phase 4: Governance And RBAC
Target pages:
WorkflowPage.tsxAuditRulesPage.tsxUsersPage.tsxRolesPage.tsxInstanceGroupPage.tsxLdapConfigPage.tsx
Target domains:
features/governancefeatures/rbac
Expected outcome:
- Approval workflow, risk policy, roles, permissions, permission groups, and LDAP sync become coherent domains instead of page-local implementations.
Phase 5: System Operations
Target pages:
SettingsPage.tsxConfigPlatformPage.tsxPlatformConfigPage.tsxNotificationPage.tsxAnnouncementPage.tsxAuditLogsPage.tsxAppearanceSettings.tsx
Target domain:
features/system
Expected outcome:
- System settings, notifications, announcements, audit logs, retention, and appearance use one system-governance layout.