https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43137

--- Comment #4 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 202247
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202247&action=edit
Bug 43137: Add system health indicator to staff interface header

Adds a colored dot to the staff interface navbar that reflects the
overall system health:

- Green: all systems operational
- Yellow: warnings present, no critical issues
- Red: critical issues detected
- Grey: status unavailable

Implementation:
- health-status.js polls GET /api/v1/health every 60 seconds
- Dot appended to #toplevelmenu as the last nav-item
- Tooltip shows summary (translatable via __())
- When all issues are restricted (user lacks permission), shows
  a generic 'issues require attention' message
- Links to about.pl for the detail view (placeholder for now)
- Included via js_includes.inc (loaded on every staff page)

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ yarn api:bundle && koha-plack --restart kohadev
3. Log in to staff interface
4. Observe the health indicator dot in the navbar
5. Verify it turns green when all checks pass
6. Sign off :-D

Assisted-by: Sonnet 4 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to