Commit Graph

23 Commits

Author SHA1 Message Date
Supra4E8C
a2507b1373 feat(usage): add service health card with 7-day contribution grid 2026-02-14 14:57:06 +08:00
Supra4E8C
faadc3ea3e refactor(select): unify dropdown implementations 2026-02-14 12:50:03 +08:00
Supra4E8C
705e6dac54 feat(usage): match credentials by source ID using config store props 2026-02-13 15:06:31 +08:00
Supra4E8C
c4ca9be7b5 feat(usage): add last refresh timestamp in header 2026-02-13 13:33:47 +08:00
Supra4E8C
180a4ccab4 feat(usage): add cost trend chart with hourly/daily toggle 2026-02-13 13:31:36 +08:00
Supra4E8C
78512f8039 feat(usage): add token type breakdown stacked chart 2026-02-13 13:29:21 +08:00
Supra4E8C
5d0232e5de feat(usage): add credential (auth index) breakdown card 2026-02-13 13:23:09 +08:00
Supra4E8C
50c1b0f4b3 feat(usage): replace time-range select with custom dropdown 2026-02-12 22:25:38 +08:00
Supra4E8C
887600c03a feat(usage): add time range filter for stats and charts 2026-02-12 21:35:59 +08:00
Supra4E8C
0fdebacc0b feat(usage): persist chart line selections in localStorage 2026-02-12 20:45:56 +08:00
LTbinglingfeng
db376c7504 fix(layout): wire header refresh to page loaders and quota config refresh 2026-01-03 01:40:54 +08:00
Supra4E8C
47f0042bf0 refactor(usage): modularize UsagePage into separate section components 2026-01-02 16:19:04 +08:00
Supra4E8C
66c6073bbc feat(usage): add usage stats export/import actions 2025-12-27 00:49:41 +08:00
XYenon
c9fc22bae5 fix: use resolvedTheme instead of theme for dark mode detection
When theme is set to 'auto', checking theme === 'dark' returns false even
when the system preference is dark mode. This caused charts and custom
styles to use light mode colors in a dark UI.

Fixed by using resolvedTheme which correctly resolves to 'light' or 'dark'
based on system preference when in auto mode.

Fixes the issue reported in PR #29 review.
2025-12-26 00:19:04 +08:00
Supra4E8C
df472119e7 feat: add commit-based release notes, usage loading spinner, and 60s logs timeout 2025-12-20 12:34:45 +08:00
Supra4E8C
aecd5875d6 feat(usage): add loading overlay and 60s API timeout 2025-12-18 01:03:12 +08:00
Supra4E8C
16f3442a11 fix: refactor usage 2025-12-17 00:35:02 +08:00
Supra4E8C
09c17c03b9 feat: unify page layout with consistent page titles and structure
- Add page title (h1) to all main pages for consistent hierarchy
  - Wrap page content in container/content div structure
  - Handle 404 error for unsupported OAuth excluded models API
  - Add cache price input field in usage page model pricing
  - Add upgrade required i18n messages for older CPA versions
  - Import mixins in page-level SCSS modules
2025-12-14 20:05:59 +08:00
Supra4E8C
e0584af365 feat: add Ampcode (Amp CLI Integration) support with configuration UI and i18n
- Add ampcodeApi service for upstream URL, API key, and model mappings management
  - Implement Ampcode configuration modal in AiProvidersPage
  - Add complete i18n translations for Ampcode features (en and zh-CN)
  - Enhance UsagePage with mobile-responsive chart improvements and legend display
  - Optimize chart rendering for smaller screens
  - Improve page layout styles (SystemPage, AiProvidersPage alignment)
2025-12-14 00:31:05 +08:00
Supra4E8C
a7b77ffa25 feat:update icon 2025-12-13 00:51:01 +08:00
Supra4E8C
c71af9a8a5 feat: enhance MainLayout with header height management using useLayoutEffect, improve AiProvidersPage by removing priority field, and update UsagePage with dynamic stats cards and sparkline charts for better data visualization 2025-12-10 01:42:21 +08:00
Supra4E8C
18b1adb4e2 feat: enhance MainLayout with brand name expansion feature, sidebar toggle improvements, and responsive design adjustments for better user experience 2025-12-09 19:04:40 +08:00
Supra4E8C
450964fb1a feat: initialize new React application structure with TypeScript, ESLint, and Prettier configurations, while removing legacy files and adding new components and pages for enhanced functionality 2025-12-07 11:32:31 +08:00