fix(#101): Remediate code review findings for TaskProgressWidget
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed

- Fix CRITICAL: Replace .sort() state mutation with [...tasks].sort()
- Fix CRITICAL: Replace PDA-unfriendly red colors with calm amber tones
- Fix IMPORTANT: Add TaskProgressWidget + ActiveProjectsWidget to WidgetComponentType
- Fix IMPORTANT: Add tests for interval cleanup, HTTP error responses, slice limit
- 3 new tests added (10 total)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jason Woltje
2026-02-05 13:19:57 -06:00
parent e7f277ff0c
commit 92ae8097df
3 changed files with 71 additions and 9 deletions

View File

@@ -69,6 +69,8 @@ export type WidgetComponentType =
| "CalendarWidget"
| "QuickCaptureWidget"
| "AgentStatusWidget"
| "ActiveProjectsWidget"
| "TaskProgressWidget"
| "StatCardWidget"
| "ChartWidget"
| "ListWidget"