feat: simplify today dashboard
ci / docker (push) Successful in 4m27s

This commit is contained in:
2026-09-07 16:45:47 +08:00
parent c94a914e99
commit a1cb780774
4 changed files with 41 additions and 12 deletions
+14
View File
@@ -96,6 +96,20 @@ describe('task and habit row decoration', () => {
expect(css).toContain('.habit-toolbar{')
})
it('keeps Today as a low-noise dashboard with direct empty-state actions', () => {
expect(app).toContain('class="today-board"')
expect(app).toContain('todayOpenTasks')
expect(app).toContain('todayCompletedTasks')
expect(app).toContain('taskComposeTitle')
expect(app).toContain('添加今天任务')
expect(app).toContain('v-if="activeView===\'trash\' || totalPages > 1 || totalTasks > 0"')
expect(mvpPanel).toContain('class="empty-panel today-empty-panel"')
expect(mvpPanel).toContain('添加习惯')
expect(css).toContain('.today-board{')
expect(css).toContain('.today-summary-grid{')
expect(css).toContain('.empty-action{')
})
it('keeps habit cards borderless so the rounded left edge has no visual gap', () => {
expect(css).toMatch(/\.habit-row\{border:0;/)
expect(css).not.toMatch(/\.habit-row\{[^}]*border-top:/)