Frontend: terms & authorities lists silently swallow load failures (no loading/error state) #31
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?
Context
In Milestone 4 the vocabulary list (
web/src/vocab/vocabulary-list.tsx) renders all three list states — loading, error (vocab.loadError), and empty. But the two sibling lists do not:web/src/vocab/vocabulary-terms.tsx) — renders empty + data only; on a faileduseTermsquery it shows the empty state, silently hiding the error.web/src/authorities/authorities-page.tsx) — same: empty + data only. Theauthorities.loadErrori18n key is defined in both en/sv but never rendered (dead key as a result).So a backend/network failure on these two lists looks identical to "no data yet" — misleading for an admin tool.
Ask
isLoading/isErrorbranches to the terms list and the authorities list, matching the vocab-list pattern (reusevocab.loadError/authorities.loadError).…glyph — consider a<Skeleton>for consistency withweb/src/objects/while here.Acceptance
authorities.loadErroris actually used (no longer a dead key).