Rebuild notifications: bell panel and full page

- Bell opens a dropdown panel instead of a modal: Unread/All tabs, grouped
  by day, type icons, relative times, click-through marks read, per-row
  read/unread, mark all as read
- Unread badge refreshes every minute while the tab is visible
- Notifications page rebuilt on the same backend: search, type filter,
  date range, read/unread toggles, proper empty states
- Hide notifications for clients/modules the user cannot access
- Normalise relative notification links so they work from /admin pages
- Remove the old notifications modal and dismiss handlers
This commit is contained in:
johnnyq
2026-10-09 15:52:40 -04:00
parent f7e5655e05
commit bab3d73c86
14 changed files with 1166 additions and 363 deletions

View File

@@ -23,7 +23,8 @@
* with nothing to maintain.
*/
if (!isset($num_rows) || intval($num_rows[0]) > 0) {
// A page that draws its own empty state sets $empty_state_skip
if (!isset($num_rows) || intval($num_rows[0]) > 0 || !empty($empty_state_skip)) {
return;
}