refactor(desktop): simplify all-projects dashboard

This commit is contained in:
2026-07-25 22:40:29 +08:00
parent b01f14ac00
commit ac674d71e7
4 changed files with 14 additions and 19 deletions

View File

@@ -72,7 +72,7 @@ if (home.width !== 420) failures.push(`expected 420px shell, got ${home.width}`)
if (home.selectedAll !== '全部项目') failures.push(`default project scope must be 全部项目, got ${home.selectedAll}`)
if (home.navCount !== 0) failures.push(`all-projects view must hide the right rail, got ${home.navCount}`)
if (home.statCount !== 4) failures.push(`expected four summary cards, got ${home.statCount}`)
if (home.pending !== 1 || home.completed !== 1) failures.push(`task sections incorrect: ${JSON.stringify(home)}`)
if (home.pending !== 1 || home.completed !== 0) failures.push(`all-project task sections incorrect: ${JSON.stringify(home)}`)
if (taskModal !== 1) failures.push('task editor did not open')
if (exploreProjects !== 1) failures.push(`expected one project in explore, got ${exploreProjects}`)
if (documents !== 1) failures.push(`expected one document, got ${documents}`)