feat(api): seed 7 widget definitions for dashboard system
All checks were successful
ci/woodpecker/push/api Pipeline was successful

Adds idempotent upserts for all 7 registered widgets (Tasks, Calendar,
Quick Capture, Agent Status, Active Projects, Task Progress, Orchestrator
Events) with sizing constraints matching the frontend WidgetRegistry.

Ref: #488

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 18:24:43 -06:00
parent 90c3bbccdf
commit 016d5325a9
3 changed files with 145 additions and 14 deletions

View File

@@ -68,14 +68,15 @@ WYSIWYG editor library: agent's choice → Tiptap selected.
## Session Log
| Session | Date | Milestone | Tasks Done | Outcome |
| ------- | ---------- | --------- | ---------- | -------------------- |
| S1 | 2026-02-23 | MS18 | PLAN-001 | Planning in progress |
| Session | Date | Milestone | Tasks Done | Outcome |
| ------- | ---------- | --------- | ------------------------- | -------------------------------------------- |
| S1 | 2026-02-23 | MS18 | PLAN-001 | Planning complete |
| S2 | 2026-02-23 | MS18 | THM-001, THM-002, THM-003 | Theme system complete — PRs #493, #494, #495 |
## Open Questions
1. **Widget config schema**: How complex should per-widget configuration be? Start simple (title, data source) and extend later.
2. **Theme hot-reload**: Should theme changes apply instantly or require page reload? Targeting instant via CSS variable swap.
2. **Theme hot-reload**: ~~Should theme changes apply instantly or require page reload?~~ RESOLVED — Instant via CSS variable injection on html element.
3. **Tiptap extensions**: Which extensions to include? Start with: StarterKit, Markdown, Table, CodeBlockLowlight, Link, Image, Placeholder.
## Corrections