feat(api): seed 7 widget definitions for dashboard system #496

Merged
jason.woltje merged 1 commits from feat/ms18-widget-seed into main 2026-02-24 00:28:03 +00:00
Owner

Summary

  • Adds idempotent upserts for all 7 registered widgets to seed.ts
  • Sizing constraints match frontend WidgetRegistry exactly
  • Uses prisma.widgetDefinition.upsert() with where: { name } for idempotency

Widgets Seeded

Widget Default Size Min Max
Tasks 2x2 1x2 4x-
Calendar 2x2 2x2 4x-
Quick Capture 2x1 2x1 4x2
Agent Status 2x2 1x2 3x-
Active Projects 2x3 2x2 4x-
Task Progress 2x2 1x2 3x-
Orchestrator Events 2x2 1x2 4x-

Test plan

  • API tests pass (3243 passed)
  • Lint + typecheck clean
  • CI green

Ref: #488

## Summary - Adds idempotent upserts for all 7 registered widgets to seed.ts - Sizing constraints match frontend WidgetRegistry exactly - Uses prisma.widgetDefinition.upsert() with where: { name } for idempotency ## Widgets Seeded | Widget | Default Size | Min | Max | |--------|-------------|-----|-----| | Tasks | 2x2 | 1x2 | 4x- | | Calendar | 2x2 | 2x2 | 4x- | | Quick Capture | 2x1 | 2x1 | 4x2 | | Agent Status | 2x2 | 1x2 | 3x- | | Active Projects | 2x3 | 2x2 | 4x- | | Task Progress | 2x2 | 1x2 | 3x- | | Orchestrator Events | 2x2 | 1x2 | 4x- | ## Test plan - [x] API tests pass (3243 passed) - [x] Lint + typecheck clean - [ ] CI green Ref: #488
jason.woltje added 1 commit 2026-02-24 00:25:28 +00:00
feat(api): seed 7 widget definitions for dashboard system
All checks were successful
ci/woodpecker/push/api Pipeline was successful
016d5325a9
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>
jason.woltje merged commit f9cccd6965 into main 2026-02-24 00:28:03 +00:00
jason.woltje deleted branch feat/ms18-widget-seed 2026-02-24 00:28:03 +00:00
Sign in to join this conversation.