Commit Graph

19 Commits

Author SHA1 Message Date
Supra4E8C
ec4b5ab46a feat: add quick links section to System page 2025-12-17 18:16:59 +08:00
Supra4E8C
db6d5ca4b5 feat: A timeout failure was provided for the model test of OpenAI compatible providers 2025-12-15 23:02:33 +08:00
Supra4E8C
4d898b3e20 feat(logs): redesign LogsPage with structured log parsing and virtual scrolling
- Add log line parser to extract timestamp, level, status code, latency, IP, HTTP method, and path
  - Implement virtual scrolling with load-more on scroll-up to handle large log files efficiently
  - Replace monolithic pre block with structured grid layout for better readability
  - Add visual badges for log levels and HTTP status codes with color-coded severity
  - Add IconRefreshCw icon component
  - Update ToggleSwitch to accept ReactNode as label
  - Fix fetchConfig calls to use default parameters consistently
  - Add request deduplication in useConfigStore to prevent duplicate /config API calls
  - Add i18n keys for load_more_hint and hidden_lines
2025-12-15 17:37:09 +08:00
Supra4E8C
340c1f1ae5 fix(i18n): correct interpolation syntax and add missing translation keys
- Fix i18next interpolation from {var} to {{var}} format in en.json
  - Add gemini_base_url_label translation key for better form labeling
  - Add virtual auth file and model list related translations
  - Adjust UsagePage title font size to 28px for consistency
2025-12-14 23:44:25 +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
9d648e3404 feat: add cache token pricing support in usage calculation
- Add cache price field to ModelPrice interface
  - Support both cached_tokens and cache_tokens fields for compatibility
  - Separate prompt, cache, and completion pricing in cost calculation
  - Deduct cached tokens from input tokens before prompt pricing
  - Refactor getApiStats/getModelStats to reuse calculateCost function
  - Update i18n labels for model pricing
2025-12-14 18:50:37 +08:00
Supra4E8C
e615979757 Merge pull request #22 from AoaoMH/feature/auth-model-check
feat: add model list viewer for auth file cards
2025-12-14 18:06:25 +08:00
Supra4E8C
ea2ce4047f feat: improve iFlow cookie auth UX with duplicate config handling
- Add 409 conflict handling for duplicate iFlow config files
  - Add key creation hint in cookie login section
  - Move extra actions button after delete button for consistency
  - Improve OAuth status badge display logic (hide when idle)
  - Add config toggle enable/disable i18n translations
  - Adjust item-actions spacing from sm to md
2025-12-14 18:04:26 +08:00
Test
2a87a4d82a feat: Add 404 judgment; Virtual authentication files also support obtaining model lists; Chinese support for virtual authentication file i18n; 2025-12-14 17:19:51 +08:00
Test
abf9b5f8c9 feat: add model list viewer for auth file cards 2025-12-14 15:17:00 +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
da9469c5aa feat: add models cache store and fix search placeholder truncation
- Add useModelsStore with 30s cache for model list to reduce API calls
  - Refactor SystemPage to use cached models from store
  - Shorten ConfigPage search placeholder to prevent text truncation
2025-12-13 01:35:08 +08:00
Supra4E8C
bcf82252ea feat: add notification animations and improve UI across pages Add enter/exit animations to NotificationContainer with smooth slide effects Refactor ConfigPage search bar to float over editor with improved UX Enhance AuthFilesPage type badges with proper light/dark theme color support Fix grid layout in AuthFilesPage to use consistent 3-column layout Update icon button sizing and loading state handlin Update i18n translations for search functionality 2025-12-13 00:46:07 +08:00
Supra4E8C
7c0a2280a4 feat: implement versioning system by extracting version from environment, git tags, or package.json, and display app version in MainLayout; enhance ConfigPage with search functionality and CodeMirror integration for YAML editing 2025-12-12 19:10:09 +08:00
Supra4E8C
bae7ff8752 feat: enhance AiProvidersPage with OpenAI model discovery functionality, improve localization for model selection messages, and update styles for better user experience 2025-12-12 18:53:51 +08:00
Supra4E8C
673ab15ad4 feat: update document title for clarity, add logo image, enhance OAuthPage with iFlow cookie authentication feature, and improve localization for remote access messages 2025-12-11 01:18:32 +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
b6765b074e feat: enhance logging functionality with incremental loading, improved error handling, and UI updates for better user experience 2025-12-09 00:35:17 +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