vestige/apps/dashboard/src
Sam Valladares d58e851af5 fix(dashboard): intentions page priority + trigger rendering
IntentionItem.priority was typed as string but the API returns the
numeric FSRS-style scale (1=low, 2=normal, 3=high, 4=critical), so the
dashboard always rendered 'normal priority' regardless of the real
value. trigger_value was also a plain string but the API actually
returns trigger_data as a JSON-encoded payload (e.g. {"type":"time",
"at":"..."}), so the UI surfaced raw JSON or empty strings for every
non-manual trigger.

Swap to numeric priority + PRIORITY_LABELS map and add a
summarizeTrigger() helper that parses trigger_data and picks the most
human-readable field (condition / topic / formatted at / in_minutes /
codebase/filePattern) before truncating for display.

Extends PR #26 (snake_case in_minutes / file_pattern on TriggerSpec)
end-to-end to the UI layer.
2026-04-18 18:33:31 -05:00
..
lib fix(dashboard): intentions page priority + trigger rendering 2026-04-18 18:33:31 -05:00
routes fix(dashboard): intentions page priority + trigger rendering 2026-04-18 18:33:31 -05:00
app.css feat: dashboard v2.1 glassmorphism + graph decomposition + fix flaky macOS vector test 2026-03-01 21:24:10 -06:00
app.html fix: dashboard nav links now include /dashboard base path prefix 2026-03-13 23:41:50 +01:00