Skip to content

🐛 fix(web): expose loader failures - #1860

Merged
gaborbernat merged 2 commits into
mainfrom
fix/web-loader-errors-1358
Aug 30, 2026
Merged

gaborbernat merged 2 commits into
mainfrom
fix/web-loader-errors-1358

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Aug 30, 2026

Copy link
Copy Markdown
Member

Browser loaders treated transport failures or invalid payloads as valid empty models. 🌐 The UI then discarded the last valid view and could display a failing endpoint's response body.

The browser loader deserializes each endpoint into its own wire type and returns a bounded typed error without reading the response body. A failed refresh keeps the last valid model visible; the next valid response clears the error and replaces it.

Closes #1358

@gaborbernat gaborbernat added the type:bug Incorrect behavior or missing validation label Aug 30, 2026
@gaborbernat gaborbernat self-assigned this Aug 30, 2026
@gaborbernat gaborbernat added bug Something isn't working and removed type:bug Incorrect behavior or missing validation labels Aug 30, 2026
@codspeed

codspeed Bot commented Aug 30, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 23 untouched benchmarks
⏩ 139 skipped benchmarks1


Comparing fix/web-loader-errors-1358 (733f649) with main (70abe41)

Open in CodSpeed

Footnotes

  1. 139 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Deserialize browser responses into strict endpoint wire types so malformed or
failed requests cannot become valid empty UI models.

Keep the last loaded data visible while displaying the bounded loader error.

Refs #1358
CI caught six untested error-formatting lines and one retained-state branch.
The missing cases left the refresh failure contract unverified in native builds.

Table-driven message cases cover each error kind. A state transition test
verifies that a failed refresh reports the error while preserving the prior
value.
@gaborbernat
gaborbernat force-pushed the fix/web-loader-errors-1358 branch from 41d1727 to 733f649 Compare August 30, 2026 06:58
@gaborbernat
gaborbernat merged commit bfcf6d5 into main Aug 30, 2026
26 checks passed
@gaborbernat
gaborbernat deleted the fix/web-loader-errors-1358 branch August 30, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose dashboard and stats loader failures

1 participant