Commit Graph
8 Commits
Author SHA1 Message Date
仓鼠 8d58f41856 Implement scroll position management for navigation (#73)
* feat: implement scroll position management for main page navigation

* fix: import saveMainPageScrollPosition in ServerCard and ServerCardInline components

* feat: save scroll position when navigating to server from DashCommand

* fix: prevent restoring stale scroll positions without main page origin
2026-06-20 16:21:32 +08:00
hamster1963 03977c4b4d refactor: update websocket context to use structured data and lazy load components
- Changed websocket context to use `lastData` instead of `lastMessage` for better type safety and clarity.
- Updated components to handle the new websocket data structure, including `DashCommand`, `Header`, `ServerDetail`, and various chart components.
- Introduced lazy loading for `NotFound`, `ServerDetail`, and `NetworkChart` components to improve performance.
- Added skeleton loading states for `ServerDetail` to enhance user experience during data fetching.
- Updated tests to reflect changes in websocket data handling and component structure.
2026-06-20 00:48:30 +08:00
hamster1963 29e349505d perf: use biome 2025-12-28 18:05:02 +08:00
hamster1963 1fda5ada9f feat: implement command context and provider for command handling; add search button component; enhance network chart with packet loss calculation and display; update translations for new features 2025-10-09 11:28:42 +08:00
hamster1963 aef26d999b fix: improve command dialog styling and input wrapper 2025-01-28 16:05:21 +08:00
hamster1963 964e53e33b fix: safely check nezhaWsData.servers before rendering 2025-01-27 23:57:36 +08:00
hamster1963 d302df895a fix: conditionally render servers in dash command 2025-01-25 19:46:06 +08:00
hamster1963 c5f81d70d4 feat: dash command 2025-01-24 01:08:25 +08:00