[Bug] PBS passed disk status is shown in red
Describe the bug
The PBS disk table shows a red status badge when the PBS API returns the healthy lowercase value passed.
The UI compares the value only with uppercase PASSED and OK, so lowercase passed falls through to the failure style.
Steps to Reproduce
- Connect a PBS server whose disk-list response contains
"status": "passed". - Open that PBS server in PegaProx.
- Check the Disks table.
Expected behavior
passed should use the green healthy badge. unknown should remain gray and failed states should remain red.
Environment
- PegaProx Version: 1.0.2
- Installation Method: Debian package
- OS: Debian 13 appliance
- Browser: Chrome
- Behind Reverse Proxy? No
- UI? Corporate
Logs
{"devpath":"/dev/sda","status":"passed"}
Checklist
- [x] I have searched existing issues to make sure this is not a duplicate
- [x] I am using the latest version of PegaProx
Reproduced, thanks — and nice minimal repro. The disk table was matching the SMART status only against uppercase PASSED/OK, so a lowercase passed fell through to the red style.
Fixed on Testing: we uppercase the value before the badge comparison now (same normalisation the SMART detail modal already does), so passed → green, unknown → gray, real failures stay red. Ships in the next release.
This landed in v1.1.0 now, so closing. Thanks for the report!