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

Implement async fetch loading on the Home page #133

Merged
merged 37 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e5a8094
Separate common promise then() handler for each request separately on…
alexeyandreevsky May 10, 2024
2a90390
Add loader state for NetworkStatus
alexeyandreevsky May 10, 2024
6349511
Move loading-line styles into mixins
alexeyandreevsky May 10, 2024
628e6f1
Add loader state for TotalInfo block
alexeyandreevsky May 10, 2024
f8a90c9
Added loader state for lists on the Home page
alexeyandreevsky May 10, 2024
31990e0
Add loading state for chart on the home page
alexeyandreevsky May 10, 2024
1cd9cb6
Remove comments from styles code
alexeyandreevsky May 10, 2024
88a6a9d
Remove unused code
alexeyandreevsky May 11, 2024
7fcc194
Rewrite loading conditions in NetworStatus block.
alexeyandreevsky May 11, 2024
94736b5
Setting catch handler for each request's independently on the Home pa…
alexeyandreevsky May 11, 2024
fb02c57
Update converting data for chart on the home page and chart loading s…
alexeyandreevsky May 12, 2024
b9ca8bc
Delete unused loader component
alexeyandreevsky May 12, 2024
896399a
Replace Promise.allSettled with Promise.all in the Home page
alexeyandreevsky May 12, 2024
71cb4d3
Fix lint error (spaces)
alexeyandreevsky May 12, 2024
d1a76e8
Update promise callbacks and data format on the Home page fetches
alexeyandreevsky May 12, 2024
982da75
Fix lint error (spaces)
alexeyandreevsky May 12, 2024
43963f4
Fix setting condition in NetworkStatus block
alexeyandreevsky May 13, 2024
39f9cda
Fix conditions in NetworkStatus block
alexeyandreevsky May 13, 2024
601821b
Fix condition in NetworkStatus block
alexeyandreevsky May 13, 2024
0deb90b
Refactoring fetch handlers in the HomePage
alexeyandreevsky May 13, 2024
168e075
Fix lint errors
alexeyandreevsky May 13, 2024
e9e19c1
Update adaptList handler in the HomePage component
alexeyandreevsky May 13, 2024
5be53cc
Update error displaying on the homepage
alexeyandreevsky May 13, 2024
40880e4
Change apostrophe symbol to code
alexeyandreevsky May 13, 2024
19527c8
fix latest block fetch handler on the Home page
alexeyandreevsky May 13, 2024
2ad9dd7
Remove redundant fetch from the home page
alexeyandreevsky May 13, 2024
09468a8
Add catch handler for all fetches
alexeyandreevsky May 13, 2024
8d1e417
Revert Api.js
alexeyandreevsky May 13, 2024
c471ad0
Change fetch error message text
alexeyandreevsky May 13, 2024
7ac127d
Add icon for fetch error message
alexeyandreevsky May 13, 2024
cdd552c
Remove unused imports
alexeyandreevsky May 13, 2024
9c0b789
Separate fetch handler
alexeyandreevsky May 13, 2024
4168ea8
Rename errors fetch data
alexeyandreevsky May 13, 2024
2dd8b8c
Add test_frontend to deploy dependencies to github actions
alexeyandreevsky May 13, 2024
c22a0d9
Add error log for fetch handler
alexeyandreevsky May 13, 2024
be291de
Rename parameter in fetch error handler
alexeyandreevsky May 13, 2024
bb263a7
Remove unused .then() method
alexeyandreevsky May 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/frontend/src/app/blocks/Blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function Blocks () {
setCurrentPage(selected)
setBlocks(res.resultSet)
})
.catch(console.log)
}, [pageSize])

const goToHeight = (e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function DataContract ({ identifier }) {
selected + 1,
pagintationConfig.itemsOnPage.default + 1)
.then((res) => setDocuments(res.resultSet))
.catch(console.log)

setCurrentPage(selected)
}
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/app/dataContracts/DataContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function DataContractsLayout () {
setCurrentPage(selected)
setDataContracts(res.resultSet)
})
.catch(console.log)
}

if (!loading) {
Expand Down
Loading
Loading