courtmanr@gmail.com
|
1f16bf8c7c
|
chore: optimize PNG images and add .gitattributes
- Optimize all documentation images with optipng -o7
• 01-dashboard.png: 497KB → 372KB (25% reduction)
• 02-storage.png: 408KB → 307KB (25% reduction)
• 03-backups.png: 343KB → 261KB (24% reduction)
• 04-alerts.png: 152KB → 118KB (22% reduction)
• 05-alert-history.png: 324KB → 245KB (24% reduction)
• 06-settings.png: 189KB → 146KB (23% reduction)
• 08-mobile.png: 116KB → 85KB (27% reduction)
Total savings: 2.0MB → 1.5MB (500KB saved, 25% reduction)
- Add .gitattributes file for proper binary file handling
• Mark binary files (images, fonts, etc.) to skip diff
• Mark lockfiles to skip diff generation
• Enforce LF line endings for text files
|
2025-11-24 23:44:55 +00:00 |
|
rcourtman
|
6eb1a10d9b
|
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(-)
|
2025-11-04 21:50:46 +00:00 |
|