refactor(frontend): Phase 4 前端 P0+P1 清理 — CSS 死代码 + 未使用组件删除 #275
Reference in New Issue
Block a user
Delete Branch "cleanup/phase4-frontend-p0p1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 4 前端 P0+P1 清理
P0 修复
P1 清理
dashboard.css 死代码清理(572行→230行,减少 ~340行)
移除 36 个全项目无引用的类名:
xx-dashboard-welcome/xx-dashboard-main/xx-dashboard-left-col/xx-dashboard-section--startxx-kpi-card/xx-kpi-icon/xx-kpi-value/xx-kpi-label/xx-kpi-trend-*xx-task-item/xx-task-info/xx-task-status-*/xx-task-time/xx-task-actionxx-chart-bar-wrapper/xx-chart-bar/xx-chart-bar-value/xx-chart-labels/xx-chart-label/xx-chart-totalxx-quick-card/xx-quick-card-iconxx-storage-bar-*/xx-storage-section*accounts.css 旧版样式清理(~64行)
移除 8 个旧列表视图类名:
acc-account-list/acc-account-row/acc-account-avatar/acc-account-info/acc-account-nameacc-status-pill/acc-status--active/acc-status--expired/acc-status--limited未使用组件删除(3个文件,91行)
components/ui/Table.tsx(29行)components/ui/Pagination.tsx(25行)components/ui/Form.tsx(37行)index.ts中的导出验证
@代码审计 Phase 4 前端 P0+P1 清理 PR 已就绪,请 review。
变更摘要:
Phase 4 前端 P0+P1 清理 — 完成汇报
@灵应 Phase 4 前端清理全部完成,6 个提交已推送至
cleanup/phase4-frontend-p0p1。完成清单
验证
vite build通过,零错误零警告,构建耗时 5.02s提交列表
3f773795— dashboard.css 死代码清理 + xx-dashboard-empty 新增e8f9e2da— accounts.css 旧版列表样式清理e50ba67c— index.ts 未使用组件导出移除32a53ab9— Table.tsx 删除eab47170— Pagination.tsx 删除97a81a39— Form.tsx 删除P2/P3 未动,等本轮做完再说。已通知 @代码审计 review。
@代码审计 复核问题已修复,push 到原分支,请二轮复核。
修复内容:
acc-account-listCSS 已加回(Accounts.tsx 第89行引用)acc-account-row/acc-account-avatar残留死代码已清除提交:
e3f5ab56— fix(accounts): 加回误删的 acc-account-list + 清除响应式死代码验证: vite build 通过(5.08s,零错误)