Update the global notification dropdrown to use htmx (#3836)
- Loads the notification items only after clicking on the bell icon - This reduces ~30 db queries, on every page load - The activities display are also on the most costly db queries, on a simple test db the time spent on processing sql reduces from ~530ms to ~150ms - The side-effect of ajax based request is the whenever the bell icon is clicked it will always display the latest data and not stale, even if the page is not refreshed. Fixes #3806
Showing
- hypha/apply/activity/context_processors.py 0 additions, 13 deletionshypha/apply/activity/context_processors.py
- hypha/apply/activity/templates/activity/include/notifications_dropdown.html 12 additions, 17 deletions...ty/templates/activity/include/notifications_dropdown.html
- hypha/apply/activity/views.py 11 additions, 1 deletionhypha/apply/activity/views.py
- hypha/settings/base.py 0 additions, 1 deletionhypha/settings/base.py
- hypha/templates/base-apply.html 39 additions, 3 deletionshypha/templates/base-apply.html
Loading
Please register or sign in to comment