Loading and error states per widget #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Widgets are built synchronously from literal data, so there is no loading state and no error state. That is invisible today because nothing can fail — but as soon as data comes from a service (#20), is refreshed (#23), or is re-queried on filter change (#24), a slow or failing call renders as an empty chart with no explanation. The user cannot tell "no data" from "the request broke".
Proposal
Give each widget three explicit states:
Best expressed as a small wrapper (e.g.
WidgetContentor aCardvariant) rather than repeated per chart type.Acceptance criteria
--dialect-*token layer; correct in light and dark theme.Depends on
#20. Ideally landed with the data service rather than after it, so there is never a window where async failures are silent.
Scope
Small to medium.