Eric Wang
8e1729ec6f
feat: add admin overview dashboard with metrics endpoint
...
Adds /api/admin/overview returning cached aggregate metrics for servers,
nodes, capacity, addresses, backups, and ISOs, plus a refreshed admin
dashboard UI consuming it via SWR.
Refactored from #153 :
- Split OverviewService into focused per-section methods over a single
orchestrator, dropping the monolithic freshMetrics()
- Dropped the recent-activity panel and supporting index migration —
ActivityLog has no writers in the codebase, so the panel always
rendered empty
- Removed the 999.99 percent cap; overallocation is a legitimate state
and the frontend already clamps bar width
- Added capacity byte-conversion and restoring-bucket test cases
Co-Authored-By: Ajdin <AjdinDev@users.noreply.github.com >
2026-05-28 21:22:40 -04:00
Eric Wang
55e2b3133b
test: fix rename servers test
2026-05-13 23:32:46 -04:00
Eric Wang
4cf7c95385
fix: Add JWT signature validation to the authentication process and include comprehensive tests for various token scenarios.
2026-03-23 23:21:48 -04:00
Eric Wang
570dabccb4
Add ISO tests
2024-03-04 14:53:22 -06:00
Eric Wang
18605091c9
Test unauthorized access to backups
2024-03-04 14:31:32 -06:00
Eric Wang
620e4b4c6a
Format ServerControllerTest.php
2024-03-04 14:29:05 -06:00
Eric Wang
727f1449b8
Add tests for AddressController
2024-02-16 09:41:59 -06:00
Eric Wang
4ec316c67c
Add more tests
2024-02-15 23:51:29 -06:00
Eric Wang
24027698b4
Refactor tests
2024-02-15 16:15:16 -06:00
Eric Wang
42c9fd5e7f
Test if admins can access/modify backups of other users' servers
2023-11-28 15:30:24 -06:00
Eric Wang
7852d40c27
fix server settings tests
2023-11-27 21:14:29 -06:00
Eric Wang
5889d1abb9
optimize imports project-wide
2023-11-06 04:20:25 +00:00
Eric Wang
94e673c3f4
Fix+refactor stuff related to web console
2023-05-22 20:57:54 +00:00
Shift
445b1965b7
Apply Laravel coding style
...
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.
You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint ), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer ), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer ) for your project root.
For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style ).
2023-04-28 06:50:51 +00:00
Eric Wang
1a89798cee
update server password changing feature test
2023-04-15 02:56:30 +00:00
Eric Wang
04c4501649
add tests for server sync services
2023-03-13 00:24:35 +00:00
Eric Wang
042178af5b
add more tests
2023-03-12 23:42:50 +00:00
Eric Wang
f7eb4c7744
add more tests
2023-03-12 21:02:55 +00:00
Eric Wang
c39768842e
add tests
2023-03-12 16:45:12 +00:00
Eric Wang
71814edc16
add tests
2023-03-12 16:04:26 +00:00