Skip to content

Better visual design for back end errors in the UI #125

Open

Description

@disconsented

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.
  • Make it work at phone width and in dark mode.

Activity

  1. added
    enhancement
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions