Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [open-formulieren/open-forms#5033] User friendly error in case of 503 #783

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

stevenbal
Copy link
Contributor

Copy link

codecov bot commented Jan 24, 2025

Bundle Report

Changes will increase total bundle size by 742 bytes (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
@open-formulieren/sdk-OpenForms-umd 4.77MB 371 bytes (0.01%) ⬆️
@open-formulieren/sdk-esm 4.77MB 371 bytes (0.01%) ⬆️

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.62%. Comparing base (385816d) to head (0217758).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/components/Errors/ErrorBoundary.jsx 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #783      +/-   ##
==========================================
+ Coverage   83.41%   83.62%   +0.20%     
==========================================
  Files         240      241       +1     
  Lines        4752     4757       +5     
  Branches     1275     1268       -7     
==========================================
+ Hits         3964     3978      +14     
+ Misses        754      745       -9     
  Partials       34       34              
Flag Coverage Δ
storybook 76.16% <83.33%> (+0.32%) ⬆️
vitest 62.72% <9.09%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stevenbal stevenbal force-pushed the feature/5033-service-unavailable-error-message branch from bd62356 to c0ca478 Compare January 24, 2025 11:04
@stevenbal stevenbal force-pushed the feature/5033-service-unavailable-error-message branch from c0ca478 to 7476012 Compare January 27, 2025 13:35
@sergei-maertens sergei-maertens force-pushed the feature/5033-service-unavailable-error-message branch from 7476012 to 8dac57e Compare January 28, 2025 12:18
Not sure why exactly this is or isn't working properly with
the built in decorator, but I suspect it has something to
do with the error boundary of react router itself/the
decorator and the error state not being reset properly
when the story remounts.

The workaround just creates a new memory router instance
on every render of the story, discarding any router state
between every story render which seems to solve the
problem.
@sergei-maertens sergei-maertens force-pushed the feature/5033-service-unavailable-error-message branch from 8dac57e to 0217758 Compare January 28, 2025 14:36
@sergei-maertens sergei-maertens merged commit dc2a16f into main Jan 28, 2025
17 checks passed
@sergei-maertens sergei-maertens deleted the feature/5033-service-unavailable-error-message branch January 28, 2025 15:52
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.

Referentielijsten integration: display a user friendly error message in case of errors
2 participants