Skip to content

Dashboard: the home page loads each section on its own - #309

Merged
msx752 merged 2 commits into
developfrom
fix/dashboard-home-loads-each-section
Nov 26, 2026
Merged

msx752 merged 2 commits into
developfrom
fix/dashboard-home-loads-each-section

Conversation

@msx752

@msx752 msx752 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

The home page loaded its sections in one chain of awaits. When one request failed, the sections after it were never loaded and kept their placeholders, and the live updates registered after them were never set up: with the past-week statistics request failing, Lock holders stayed a placeholder and Registered Functions said "No data available" although six functions were registered.

Change

  • Each section loads in its own try/catch, in the same order. The failed one keeps its placeholder; an HTTP error is still shown by the HTTP layer, and any other error (a bug while shaping the data) is logged.
  • The live updates for the next run and the host exception update their section only when it has data; the next run still reaches the dashboard store.

What does not change

  • The requests, their order and the data shaping when everything succeeds; the server.

Testing

  • In a browser (sample app, the past-week statistics request blocked): before, 13 placeholders after 12 s, Lock holders empty, Registered Functions "No data available"; after, Lock holders and Registered Functions load, only the failed statistics section keeps its 4 placeholders.
  • The dashboard suite passes, vue-tsc --build clean, no new lint messages, every .NET test project passes, the scenario solution builds.
  • An independent review of the diff; its findings (live-update callbacks on a section that failed to load, non-HTTP errors dropped silently) are fixed in the second commit.

The home page loaded its sections in one chain of awaits. When one
request failed, the sections after it were never loaded and kept their
placeholders (Lock holders, Registered Functions "No data available"),
and the live updates registered after them were never set up.

Each section now loads in its own try/catch, in the same order. The
failed one keeps its placeholder; its error is still shown by the HTTP
layer.
…not HTTP errors

With each section loading on its own, the live updates are registered
even when the next-run or options section failed to load. Their callbacks
now update a section only when it has data; the next run still reaches
the dashboard store. An error that is not an HTTP error (a bug while
shaping the data) is logged instead of being dropped.
@msx752
msx752 merged commit 345bad7 into develop Nov 26, 2026
6 checks passed
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