Commit Graph
9 Commits
Author SHA1 Message Date
ZacharyZcR 6e6b173e23 fix: exit edit mode after saving layout 2025-10-09 09:54:46 +08:00
ZacharyZcRandClaude 2123f0e10e feat: refactor server stats widgets into modular structure
Created dedicated widgets directory with individual components:
- CpuWidget, MemoryWidget, DiskWidget as separate components
- Widget registry for centralized widget configuration
- AddWidgetDialog for user-friendly widget selection
- Updated Server.tsx to use modular widget system

Benefits:
- Better code organization and maintainability
- Easier to add new widget types in the future
- Centralized widget metadata and configuration
- User can now add widgets via dialog interface

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-09 09:45:25 +08:00
ZacharyZcRandClaude 3b0bbfc40a fix: include statsConfig in SSH host create/update requests
The statsConfig field was being dropped by createSSHHost and updateSSHHost
functions in main-axios.ts, preventing layout customization from persisting.

Fixed by adding statsConfig to the submitData object in both functions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-09 09:37:11 +08:00
ZacharyZcRandClaude 0d40f3d0b0 fix: add statsConfig to metrics API response
- Add statsConfig field to SSHHostWithCredentials interface
- Include statsConfig in resolveHostCredentials baseHost object
- Ensures /metrics/:id API returns complete host configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-09 09:32:18 +08:00
ZacharyZcRandClaude 8c20d41072 fix: complete statsConfig field support across all API routes
- Add statsConfig to POST /db/host (create) route
- Add statsConfig to all GET routes for consistent API responses
- Remove incorrect statsConfig schema from HostManagerEditor
- statsConfig is now only managed by Server page layout editor

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-09 09:25:36 +08:00
ZacharyZcRandClaude 8e022f0f1c fix: resolve widget deletion and layout persistence issues
- Add drag handles to widget title bars for precise drag control
- Prevent delete button from triggering drag via event stopPropagation
- Include statsConfig field in all GET/PUT API responses
- Remove debug console logs from production code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2025-10-09 09:13:54 +08:00
ZacharyZcR 8623ab896d fix: improve widget deletion UX and add debug logs for persistence 2025-10-09 09:06:50 +08:00
ZacharyZcR a671ad79a1 fix: widget deletion and layout persistence issues 2025-10-09 09:02:38 +08:00
ZacharyZcR 74f537ea0b feat: add draggable server stats dashboard with customizable widgets 2025-10-09 08:59:45 +08:00