mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
Refactor: Code cleanup and localStorage consolidation
This commit includes comprehensive codebase cleanup and refactoring: ## Code Cleanup - Remove dead TypeScript code (types/monitoring.ts - 194 lines duplicate) - Remove unused Go functions (GetClusterNodes, MigratePassword, GetClusterHealthInfo) - Clean up commented-out code blocks across multiple files - Remove unused TypeScript exports (helpTextClass, private tag color helpers) - Delete obsolete test files and components ## localStorage Consolidation - Centralize all storage keys into STORAGE_KEYS constant - Update 5 files to use centralized keys: * utils/apiClient.ts (AUTH, LEGACY_TOKEN) * components/Dashboard/Dashboard.tsx (GUEST_METADATA) * components/Docker/DockerHosts.tsx (DOCKER_METADATA) * App.tsx (PLATFORMS_SEEN) * stores/updates.ts (UPDATES) - Benefits: Single source of truth, prevents typos, better maintainability ## Previous Work Committed - Docker monitoring improvements and disk metrics - Security enhancements and setup fixes - API refactoring and cleanup - Documentation updates - Build system improvements ## Testing - All frontend tests pass (29 tests) - All Go tests pass (15 packages) - Production build successful - Zero breaking changes Total: 186 files changed, 5825 insertions(+), 11602 deletions(-)
This commit is contained in:
parent
5c4be1921c
commit
6eb1a10d9b
186 changed files with 5829 additions and 11606 deletions
|
|
@ -300,9 +300,9 @@ Or if Pulse is installed:
|
|||
|
||||
**Tip**: Selecting bars in the chart cross-highlights matching rows. If that does not happen, confirm you do not have browser extensions that block pointer events on canvas elements.
|
||||
|
||||
### Docker Agent Shows Hosts Offline
|
||||
### Container Agent Shows Hosts Offline
|
||||
|
||||
**Symptoms**: `/docker` tab marks hosts as offline or missing container metrics.
|
||||
**Symptoms**: `/containers` tab marks hosts as offline or missing container metrics.
|
||||
|
||||
**Checklist:**
|
||||
1. Run the agent manually with verbose logs:
|
||||
|
|
@ -318,7 +318,7 @@ Or if Pulse is installed:
|
|||
4. Verify Pulse shows a recent heartbeat (`lastSeen`) in `/api/state` → `dockerHosts`. Hosts are marked offline after 4× the configured interval with no update.
|
||||
5. For reverse proxies/TLS issues, append `--insecure` temporarily to confirm whether certificate validation is the culprit.
|
||||
|
||||
**Restart loops**: The Docker workspace Issues column lists the last exit codes. Investigate recurring non-zero codes in `docker logs <container>` and adjust restart policy if needed.
|
||||
**Restart loops**: The Containers workspace Issues column lists the last exit codes. Investigate recurring non-zero codes in `docker logs <container>` and adjust restart policy if needed.
|
||||
|
||||
**Step 3: Check Pulse logs**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue