Pulse/internal/api
Pulse Monitor 46bb44d792 improve: comprehensive type safety improvements across codebase
Frontend (TypeScript):
- Eliminated all 'any' types (7 → 0)
- Added proper types for event system with generics
- Fixed event data interfaces with specific types
- Replaced any with unknown where appropriate

Backend (Go):
- Created central types.go with 30+ typed API structures
- Eliminated all interface{} in /internal/api package (158 → 0)
- Replaced map[string]interface{} with typed structs:
  - ChartResponse, VMChartData, NodeChartData, StorageChartData
  - DiagnosticsInfo with NodeDetails, ClusterInfo, PBSDetails
  - StorageChartsResponse with StorageMetrics
- Improved compile-time type safety for all API responses

Benefits:
- Better IDE support and autocomplete
- Compile-time error detection
- Clearer API contracts
- Improved maintainability

All tests passing, service running successfully with typed code.
2025-08-19 21:32:44 +00:00
..
alerts.go fix: address critical issues from v4.3.x releases 2025-08-14 16:29:42 +00:00
auth.go feat: auto-hash plain text credentials from environment variables 2025-08-19 14:58:01 +00:00
config_handlers.go feat: auto-hash plain text credentials from environment variables 2025-08-19 14:58:01 +00:00
diagnostics.go improve: comprehensive type safety improvements across codebase 2025-08-19 21:32:44 +00:00
frontend_embed.go fix: prevent 301 redirect to relative path (./) when accessing root without trailing slash (addresses #334) 2025-08-19 18:56:18 +00:00
guest_metadata.go fix: reload guest metadata after import 2025-08-14 09:51:40 +00:00
middleware.go fix: prevent 301 redirect to relative path (./) when accessing root without trailing slash (addresses #334) 2025-08-19 18:56:18 +00:00
notifications.go fix: major webhook system improvements and bug fixes 2025-08-16 21:39:31 +00:00
ratelimit.go feat: add comprehensive security system for API protection 2025-08-06 21:39:52 +00:00
router.go improve: comprehensive type safety improvements across codebase 2025-08-19 21:32:44 +00:00
security.go fix: support authentication through Cloudflare tunnels and reverse proxies (#325) 2025-08-17 18:11:47 +00:00
security_setup_fix.go fix: implement secure API token hashing with SHA3-256 2025-08-19 08:10:37 +00:00
settings.go fix: ensure consistent CPU core display for all guests 2025-08-09 15:03:28 +00:00
system_settings.go feat: add UI warnings for environment variable overrides 2025-08-19 09:04:54 +00:00
types.go improve: comprehensive type safety improvements across codebase 2025-08-19 21:32:44 +00:00
updates.go fix: complete update system improvements 2025-08-07 11:43:40 +00:00