You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better visual design for back end errors in the UI #125
Errors from the back end look bad and give the user no help.
Current state:
The app page (ui/src/routes/app/[id]/[[slug]]/+page.svelte:289) and the item page (ui/src/routes/item/[item]/[[slug]]/+page.svelte:49) each have an errorCard snippet. The two snippets are copies of each other. They show "Error Code: 500", the status text, and the raw response body in a <pre>. The raw body is a Salvo StatusError dump, so it means nothing to a user.
The card grid has three columns (lg:grid-cols-[auto_1fr_auto]) but only two children.
Other places use their own styles: suggestProperty.svelte:195 has an inline error snippet, PropertyPrompt.svelte:98 shows a plain "Something went wrong" line, and AdminApps.svelte keeps an error string.
Work:
Make one shared error component and use it in all of these places.
Show a short message that a person can read for each status: 404 (item or app not found), 429 (rate limit), 504 (took too long, see Return 504 Gateway Timeout for query timeouts #123), and 5xx in general. Show a retry button where a retry can help.
Put the status code and the raw body in a collapsed "details" part, not in the main view.
Have the back end return a consistent error body (for example { code, message }) so the UI does not parse the Salvo dump.
Activity