-
Notifications
You must be signed in to change notification settings - Fork 41
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: lazy load dashboards into the navigation menu [DHIS2-10624] #3226
base: master
Are you sure you want to change the base?
feat: lazy load dashboards into the navigation menu [DHIS2-10624] #3226
Conversation
🚀 Deployed on https://pr-3226.dashboard.netlify.dhis2.org |
…com:dhis2/dashboard-app into feat/limit-dashboard-preloading-DHIS2-10624
…com:dhis2/dashboard-app into feat/limit-dashboard-preloading-DHIS2-10624
…com:dhis2/dashboard-app into feat/limit-dashboard-preloading-DHIS2-10624
props.fetchDashboards() | ||
props.setShowDescription() | ||
|
||
// store the headerbar height for controlbar height calculations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This headerbar height is no longer relevant as of the new dashboard design
|
Implements DHIS2-10624
Key features
To improve dashboard app performance, use paging to limit the number of dashboards loaded into the navigation menu
Description
The navigation menu now has "infinite" scrolling similar to the data item selector in DV and LL. Scrolling to the bottom triggers a fetch of the next page of results. Searching works the same way, sending a request with the matching dashboards, paged. Searching is debounced to 350ms.
When the app initially loads, instead of fetching all the dashboards like before, it now fetches a single dashboard to answer the question of whether there are any dashboards.
TODO