Skip to content

fix(web): repair the pool page and keep api errors through ssr - #38

Merged
TheMeinerLP merged 3 commits into
mainfrom
fix/web-ssr-problem-details
Nov 25, 2026
Merged

TheMeinerLP merged 3 commits into
mainfrom
fix/web-ssr-problem-details

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

A first run of the merged web UI in a real browser against grus-dev showed three problems:

  • The pool detail page rendered empty: the spec, the scaling form and the instance list never appeared, and the pool list table was missing too. The area components were registered under prefixed names, so Vue silently rendered nothing. They now keep their own names, and a test compares every tag in the templates with the components Nuxt registered, so this cannot slip through lint and typecheck again.
  • API errors on server-rendered pages showed "Internal Server Error" instead of the problem the API returned, because Nuxt masks unknown server errors. Requests now raise Nuxt errors that carry the problem, so the real status and detail (for example "404 Not Found") reach the page.
  • Small layout and hydration issues: the live status text caused a hydration mismatch, the instance details split labels from values, and the pool spec view squeezed values to one letter per line.

Checked: lint, typecheck, 214 tests and the production build pass; all pages were opened in a browser against grus-dev (read-only) and showed no console errors after the fix.

Nuxt masks every server-side error that was not raised with an HTTP
status as 500 and drops its data, so pages rendered on the server showed
Internal Server Error instead of the API's problem. Requests now raise
Nuxt errors that carry the problem, and AppProblem rebuilds it.
Components in components/pools and components/templates were registered
with a directory prefix, so the pool pages rendered empty sections. A test
now fails when a template uses a tag Nuxt does not know.
The live stream now opens after hydration, the instance details keep
label and value together, and the pool spec view no longer squeezes its
values to one letter per line.
@TheMeinerLP
TheMeinerLP merged commit 4839dd3 into main Nov 25, 2026
5 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/web-ssr-problem-details branch November 25, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant