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

feat(113): add error and loading state to the main pages #117

Merged
merged 10 commits into from
Sep 20, 2023

Conversation

vanch3d
Copy link
Contributor

@vanch3d vanch3d commented Sep 20, 2023

Fixes #113

This PR adds the missing handlers for loading and error states to the main pages of the application, when data are being fetched

While data is being loaded, feedback is provided either by a loading spinner (e.g. login age) or by "skeleton" when visualising data.

Errors are indicated by inline alerts replacing the expected content.

Error and loading state are also preventing further interactions with the page (e.g. an error while loading the list of adapters prevents editing or creating a new adapter).

Note that all the data requests are cached by React-Query. Covering loading and error in the main routing pages ensures that the expected data have been properly fetched by the time hooks are used further down the DOM tree.

Login

screenshot-localhost_3000-2023 09 19-18_11_53

Welcome

screenshot-localhost_3000-2023 09 19-18_10_59

screenshot-localhost_3000-2023 09 19-18_11_19

Bridges

screenshot-localhost_3000-2023 09 19-18_12_17

screenshot-localhost_3000-2023 09 19-18_12_31

Adapters

screenshot-localhost_3000-2023 09 19-18_13_45

screenshot-localhost_3000-2023 09 19-18_13_58
screenshot-localhost_3000-2023 09 19-18_15_16

screenshot-localhost_3000-2023 09 19-18_15_37

Namespace

screenshot-localhost_3000-2023 09 19-18_16_01

@vanch3d vanch3d requested review from sfrehse and simon622 September 20, 2023 07:37
@vanch3d vanch3d self-assigned this Sep 20, 2023
@vanch3d vanch3d marked this pull request as ready for review September 20, 2023 08:38
…in the login page

- refactor error/loading flow
- add tests
- update translations
- reorganise tasks to accommodate for loading/error
- refactor onboarding component
- add tests
- update translations
- add skeleton to bridge card
- refactor layout and flow of bridge page
- refactor bridge card for testing
- add tests
- add translations
- add translations
- add skeletons for all data components
- add tests
- refactor flow of main page and tabs
- add translations
- add skeletons for the editor
- refactor flow of main page and tabs
@vanch3d vanch3d force-pushed the fix/113/request-loading-error branch from bb7c094 to e421348 Compare September 20, 2023 09:55
Copy link
Collaborator

@simon622 simon622 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I did note that the workspace view did not display any error messages. All other views had a nice skeleton and subsequent error message.

@simon622 simon622 merged commit ea19163 into master Sep 20, 2023
@simon622 simon622 deleted the fix/113/request-loading-error branch September 20, 2023 16:30
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.

Improve UX flow when network connection errors
2 participants