hamster1963
57aaba3918
fix: enhance loading state handling in NetworkChart component
2026-06-01 11:19:41 +08:00
hamster1963
fcaff0bae0
fix: add responsive container handling for chart components
2026-05-31 20:05:35 +08:00
2d46fb6b86
fix: support per-server max/from/to in cycle transfer stats ( #64 )
...
* Initial plan
* fix: support per-server max/from/to values in cycle transfer stats
When the Nezha backend has multiple transfer rules within one alert rule,
the API may return per-server max values (as a map) instead of a single
max value. Update the TypeScript interface and CycleTransferStats component
to handle both formats:
- Single value (number/string): used for all servers (current behavior)
- Per-server map ({[serverId]: value}): uses the correct value per server
Fixes #63
Agent-Logs-Url: https://github.com/hamster1963/nezha-dash-v2/sessions/88f98dad-c2eb-4728-ac98-e02a95d5144d
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com >
* fix: update schema version in biome.json and improve null checks in components
* chore: auto-fix linting and formatting issues
* fix: guard null/zero in CycleTransferStats per-server map lookups
Agent-Logs-Url: https://github.com/hamster1963/nezha-dash-v2/sessions/2fb2306b-8011-487d-b284-9768778db8c3
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com >
Co-authored-by: hamster1963 <1410514192@qq.com >
2026-05-26 01:34:02 +08:00
Copilot and hamster1963
e4ba96ea76
fix: default network chart period to 1d instead of 30d ( #61 )
...
* Initial plan
* fix: change network chart default period from 30d to 1d
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com >
2026-03-10 15:30:42 +08:00
eceadb6bff
fix: Update service to use display_index as the main sort order ( #60 )
...
* fix: Update service to use display_index as the main sort order
* chore: auto-fix linting and formatting issues
* Update src/types/nezha-api.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: huYang <306061454@qq.com >
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-25 17:20:42 +08:00
hamster1963
816f6e7f9e
fix: Remove redundant text label for average packet loss in NetworkChart component
2026-02-16 00:19:54 +08:00
hamster1963
6172c641a0
chore: update @radix-ui/react-dialog to version ^1.1.15 and improve dialog component styles
2026-02-14 21:56:16 +08:00
hamster1963
0c7c6a1378
feat: enhance tooltips and loading states in NetworkChart and ServerDetailChart; add translations for TSDB and login requirements
2026-02-14 15:04:37 +08:00
hamster1963
a303a5add2
fix: adjust margin and layout for PeriodSelector and avg packet loss display in NetworkChartClient
2026-01-30 11:48:58 +08:00
hamster1963
18e3c74178
feat: add chart loading skeletons and enhance translation for time periods
2026-01-30 11:42:14 +08:00
hamster1963
6dae6cce8f
feat: enhance ServerDetailChart with new chart tooltips and sync functionality
2026-01-30 09:30:50 +08:00
hamster1963
65b32ec81e
feat: add server metrics fetching and update translations
...
- Implemented `fetchServerMetrics` function in `nezha-api.ts` to retrieve server metrics based on metric type and period.
- Added new metric types and periods to `nezha-api.ts` type definitions.
- Updated English and Chinese translations to include new terms for metrics and periods.
- Commented out `ServerDetailSummary` component in `ServerDetail.tsx` for future use.
2026-01-30 09:14:41 +08:00
仓鼠
1aa66f98ed
fix: enhance NetworkChart with user login state and period selection ( #54 )
2026-01-29 09:29:00 +08:00
hamster1963
76590a6bd0
fix: swap ProcessChart and MemChart components in ServerDetailChart
2026-01-07 17:46:32 +08:00
hamster1963
af9926e774
fix: update styling and layout for ServerDetail components
2026-01-07 17:31:55 +08:00
hamster1963
cc0f5c0a2e
fix: ensure billing information displays correctly based on available dates
2026-01-02 23:20:59 +08:00
hamster1963
92fada4792
refactor: simplify network route handling in PlanInfo component
2025-12-28 18:09:22 +08:00
hamster1963
29e349505d
perf: use biome
2025-12-28 18:05:02 +08:00
hamster1963
3bfd4ef4d2
fix: prevent color fade during theme transitions
2025-12-28 16:33:57 +08:00
hamster1963
5a0c873dc8
feat: add ServerDetailSummary component for enhanced server usage display
2025-12-28 16:30:16 +08:00
hamster1963
c989a67265
fix: update GroupSwitch and Server components for improved tab handling and styling
2025-12-28 16:21:17 +08:00
hamster1963
42f99a6f84
feat: implement animated count component and update header for real-time display
2025-12-28 16:11:52 +08:00
hamster1963
b4f2abb885
fix: enhance text size for LanguageSwitcher and ThemeSwitcher components
2025-12-28 15:26:39 +08:00
hamster1963
746f890d65
refactor: update component styles and improve accessibility
...
- Adjusted hover shadow effects in CycleTransferStatsClient for better visual feedback.
- Fixed aspect ratio class in GlobalMap for consistent rendering.
- Updated font weight in GroupSwitch for improved readability.
- Modified Separator width class in Header for consistency across components.
- Enhanced button hover effects in NetworkChartClient for better user interaction.
- Adjusted margin class in ServerDetailOverview for better alignment.
- Updated margin classes in ServerOverview for consistent spacing.
- Refined background gradient classes in ServiceTrackerClient for better color management.
- Standardized font weight in TabSwitch for consistency.
- Corrected stroke color class in AnimatedCircularProgressBar for better theming.
- Improved focus outline handling in badge and button components for better accessibility.
- Updated chart component styles for improved visual hierarchy.
- Adjusted checkbox focus outline for better accessibility.
- Enhanced command dialog styles for improved usability.
- Updated dialog close button focus outline for better accessibility.
- Refined dropdown menu styles for improved usability and consistency.
- Adjusted input focus outline for better accessibility.
- Improved popover content styles for better visibility.
- Updated select component styles for improved usability.
- Refined separator height classes for consistency.
- Enhanced switch component focus outline for better accessibility.
- Updated table footer styles for improved visual consistency.
- Refactored global CSS to use new Tailwind CSS configuration and improved theming.
- Removed outdated Tailwind configuration file.
2025-12-28 15:24:04 +08:00
hamster1963
4d4c3f1639
fix: add server ID to tooltip data and update MapTooltip component for navigation
2025-12-28 15:01:27 +08:00
hamster1963
4f9db466a3
fix: enhance styling of LanguageSwitcher and ThemeSwitcher components
2025-12-28 14:40:44 +08:00
hamster1963
409ec0b62c
fix: update SearchButton styling
2025-12-28 14:37:02 +08:00
hamster1963
15424513b5
fix: enhance styling of CardHeader in NetworkChartClient component
2025-12-28 14:36:45 +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
15a47fb2d4
fix: update text wrapping in ServerCard and ServerCardInline components for improved readability
2025-05-04 18:10:22 +08:00
hamster1963
65858e73db
fix: remove redundant break-words class from ServerCard component
2025-05-03 01:19:39 +08:00
hamster1963
99ea2af28d
fix: add break-words class to ServerCard for improved text handling
2025-05-03 01:17:13 +08:00
hamster1963
20bba90a49
fix: update button background color for better visibility in dark mode
2025-04-25 10:55:02 +08:00
仓鼠
ed35e8c122
Feat: Multiple choice ( #41 )
...
* feat: enable multi-selection for charts in NetworkChart component
* feat: add clear selections button for active charts in NetworkChart component
* chore: auto-fix linting and formatting issues
2025-04-25 10:50:01 +08:00
仓鼠
5803eb3fed
feat: add support for additional languages ( #38 )
...
* feat: add support for additional languages in LanguageSwitcher and translations
* chore: auto-fix linting and formatting issues
2025-03-26 17:12:46 +08:00
仓鼠
5d7c07850a
feat: enhance uptime display with hours ( #36 )
...
* feat: enhance uptime display with hours and update translations for hours
* chore: auto-fix linting and formatting issues
2025-03-16 11:10:59 +08:00
仓鼠
7ffef91d2d
feat: add boot time display in ServerDetailOverview and localization … ( #35 )
...
* feat: add boot time display in ServerDetailOverview and localization support
* chore: auto-fix linting and formatting issues
2025-03-12 09:25:42 +08:00
hamster1963
674d348ed7
feat: add support for ForcePeakCutEnabled configuration in NetworkChart
2025-02-20 15:29:14 +08:00
hamster1963
059e66bc91
refactor: improve NetworkChart x-axis tick display logic for better time range visualization
2025-02-19 17:47:10 +08:00
hamster1963
c58b79e6d2
refactor: improve NetworkChart x-axis tick formatting and interval
2025-02-16 16:30:48 +08:00
hamster1963
296b15a7d4
feat: add platform-specific keyboard shortcut display
2025-02-13 11:32:11 +08:00
hamster1963
d4f6db436a
feat: add PWA support with manifest, icons, and theme color management
2025-02-13 11:21:53 +08:00
hamster1963
69e12163ad
feat: add Radix UI Select component for improved sorting UI
2025-02-06 13:50:37 +08:00
hamster1963
27ad834683
refactor: simplify seconds display in time component
2025-02-05 01:26:25 +08:00
hamster1963
48dbf85bca
refactor: improve CycleTransferStats and ServiceTracker UI components
2025-02-01 19:39:23 +08:00
hamster1963
0f81ef2f25
feat: enhance ServiceTracker with detailed uptime and delay visualization
2025-02-01 19:10:04 +08:00
hamster1963
94eb966d65
feat: add tooltip component and integrate it into ServerDetailOverview
2025-02-01 14:04:55 +08:00
hamster1963
7aad81518a
feat: enhance time display with NumberFlow component
2025-01-30 00:31:58 +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