Commit Graph
664 Commits
Author SHA1 Message Date
LTbinglingfeng 87ddd62c40 feat(providers): pick the connectivity test model from a dropdown
Replace the free-form test-model input on the OpenAI-compatible and
Claude edit sheets with a Select whose options are derived from the
already-added models. An Auto entry (annotated with the first model
name) maps to an empty form.testModel so connectivity tests keep
falling back to the first configured model when the user hasn't made
an explicit pick. If an existing config carried a test model that
isn't in form.models, surface it as a custom option so the value is
preserved instead of silently dropped.
2026-05-25 02:09:06 +08:00
LTbinglingfeng 8c3c9c1ec4 fix(providers): confirm before discarding unsaved edits in the provider sheet
- BaseProviderForm and AmpcodeForm now snapshot the initial form
  signature on mount and report dirty/clean state to the parent via a
  new onDirtyChange callback
- ProviderSheet tracks the form's dirty flag and wraps the cancel
  button plus the new Sheet.confirmClose hook with a confirmation
  prompt; the prompt is skipped during submit and in detail mode
- Sheet gains an optional confirmClose hook so that Escape, overlay
  click and the close button all route through the same async check
  before starting the close animation
- Add i18n keys (en/zh-CN/zh-TW/ru) for the unsaved-changes prompt
2026-05-25 02:00:50 +08:00
LTbinglingfeng dd3c39ec32 fix(providers): retry OpenAI model discovery without auth on failure
When the OpenAI-compatible endpoint rejects the first authenticated
/models request (some upstreams expose the route unauthenticated, or
the configured key only covers chat completions), retry once with no
key and no custom headers before surfacing the original error so the
discovery panel can populate.
2026-05-25 01:55:45 +08:00
LTbinglingfeng c23fd6975e fix(providers): preserve alias when applying discovered models
ModelDiscoveryPanel now hands the full ModelInfo objects to onApply
instead of just the model names, and BaseProviderForm copies each
incoming alias into the new form.models row so suggestions from
endpoints that return alias metadata are no longer silently dropped.
2026-05-25 01:54:58 +08:00
LTbinglingfeng fafc4b78e0 feat(providers): bring back status bar, sort and model filter on the table
- Wire useProviderRecentRequests into ProvidersWorkbenchPage and pass
  usageByProvider down to the resource table; the header refresh now
  refreshes recent requests in parallel with the provider snapshot
- ProviderResourceTable status column hosts the existing status badge
  plus an inline ProviderStatusBar driven by the recent-requests usage;
  column widths rebalanced so the bar fits on a single row
- New OpenAIBrandToolbar gives the OpenAI-compatible brand a sort
  control (name / priority / recent-success with direction) and a
  multi-select model filter dropdown; ProviderResourcePanel renders it
  via the new openaiControls prop
- ProvidersWorkbenchPage computes the available model union, sorts /
  filters resources when the OpenAI brand is active, and resets the
  selected models when switching brands
- Add providerStatusBar.module.scss for the in-row status bar styling
  and i18n keys (en/zh-CN/zh-TW/ru) for the new toolbar
2026-05-25 01:34:44 +08:00
LTbinglingfeng 191a4c5cc5 feat(providers): add model discovery panel inside the models section
- New useModelDiscovery hook fans out to modelsApi.fetchGemini /
  fetchV1 / fetchClaude / fetchModels based on brand and surfaces
  loading, error and the normalized model list
- New ModelDiscoveryPanel renders an inline search, select-all and
  per-model checkboxes with an Already added marker for entries that
  already exist in form.models
- BaseProviderForm: show a Fetch from endpoint button at the top of
  the models section for the supported brands, with apply merging
  the picked names into form.models while skipping duplicates and
  replacing the empty placeholder row
- Add i18n keys (en/zh-CN/zh-TW/ru) for the discovery toolbar, list
  states and apply count
2026-05-25 01:18:06 +08:00
LTbinglingfeng 4711db9bbb fix(providers): reset connectivity status only for the changed key entry
Track per-entry signatures (apiKey + proxyUrl + headersText) so editing
one OpenAI key entry no longer clears the success/error state of the
other entries. The global signature (baseUrl/headers/models/testModel)
keeps clearing every entry as before.
2026-05-25 01:07:55 +08:00
LTbinglingfeng bf299cffdf feat(providers): add OpenAI/Claude connectivity test in edit sheet
- Introduce useConnectivityTest hook that drives per-key and bulk tests
  via apiCallApi against the chat-completions / messages endpoints, with
  signature-based status reset
- OpenAI form: each API key entry header now shows a status icon plus a
  per-key Test button, and the entries section gains a Test all button
- Claude form: enable the Test model field and add a Test button with
  inline status; falls back to the persisted apiKey when the edit form
  field is left blank
- Add ConnectivityStatusIcon, related styles (spin keyframes, buttons,
  error banner), and i18n keys (en/zh-CN/zh-TW/ru) for the test labels
  and validation messages
2026-05-25 01:02:47 +08:00
LTbinglingfeng 47ba6ab91c feat(providers): expose inline enable/disable toggle in resource table
- Wire useProviderWorkbench.toggleDisabled through ProviderResourcePanel
  to ProviderResourceTable as an inline ToggleSwitch in the actions cell
- Hide the toggle for the Ampcode singleton brand
- Add toast on success/failure and i18n keys (en/zh-CN/zh-TW/ru) for the
  enable/disable labels and a toggleFailed error message
2026-05-25 00:43:13 +08:00
LTbinglingfeng 1ceb7e15f5 feat: enhance metrics display in ProviderResourceTable and update localization keys 2026-05-25 00:10:35 +08:00
LTbinglingfeng 34a050dffa refactor: remove deprecated AI provider edit pages and related stores
- Deleted AiProvidersVertexEditPage and its associated routes.
- Consolidated AI provider routes under ProvidersWorkbenchPage.
- Removed Claude and OpenAI draft stores as they are no longer in use.
- Updated theme styles to include new workbench tokens for UI consistency.
2026-05-24 03:08:08 +08:00
LTbinglingfeng 9a5c2b0ea4 feat: add xAI/Grok quota management
- Introduced new quota management for xAI/Grok, including types, API calls, and UI components.
- Added localization support for xAI quota in English, Russian, Chinese (Simplified and Traditional).
- Updated styles for xAI quota cards and sections.
- Integrated xAI quota fetching and rendering logic into existing quota management system.
- Enhanced auth file handling to support xAI files.
2026-05-24 01:08:04 +08:00
LTbinglingfeng a44bcd3337 feat(providers): enhance provider configuration handling and serialization 2026-05-24 00:51:09 +08:00
LTbinglingfeng 0fa6b741b2 chore: remove unused hooks and utils 2026-05-21 01:29:27 +08:00
LTbinglingfeng eab19952e0 fix(routes): strictly parse provider edit indexes 2026-05-20 01:29:55 +08:00
LTbinglingfeng 2cb98ad118 fix(config): preserve source draft on visual save 2026-05-20 01:27:19 +08:00
LTbinglingfeng 075c2fa980 fix: improve error messages for login and add backend response details 2026-05-20 01:12:50 +08:00
Supra4E8CandGitHub 9a7cb37bed Merge pull request #279 from ZHOUKAILIAN/fix/auth-file-html-challenge-ui
fix(auth-files): handle HTML challenge content in editor
2026-05-19 01:08:48 +08:00
LTbinglingfeng 77e7dd0e62 feat: enhance filter controls with search functionality and style adjustments 2026-05-19 00:58:25 +08:00
LTbinglingfeng f0d669f98a feat: remove Home control plane configuration and related validation logic 2026-05-19 00:25:45 +08:00
zhoukailian bb0c0a7738 fix(auth-files): keep invalid content copyable 2026-05-18 15:19:42 +08:00
zhoukailian 300f73e5e0 fix(auth-files): handle html challenge content 2026-05-18 15:09:05 +08:00
LTbinglingfeng d6f5c45aa5 feat(i18n): add Home control plane settings and various enhancements
- Introduced Home control plane configuration options in English, Russian, Simplified Chinese, and Traditional Chinese locales.
- Added new fields for error log retention, usage statistics, and image generation settings in visual configuration.
- Enhanced payload model entries to include header management and condition matching capabilities.
- Updated default visual configuration values to accommodate new settings.
2026-05-18 03:08:05 +08:00
LTbinglingfeng cd1e7ff574 feat: refactor ConfigSection styles to improve layout and responsiveness 2026-05-18 02:45:26 +08:00
LTbinglingfeng 4ef5869850 Refactor localization strings for Antigravity Credits and update ConfigPage styles
- Updated English, Russian, Simplified Chinese, and Traditional Chinese localization files to change "Antigravity Credits Retry" to "Use Antigravity Credits" and removed associated descriptions.
- Modified ConfigPage.module.scss to improve layout and styling, including adjustments to widths, gaps, paddings, and border-radius for various elements.
- Simplified the structure of the ConfigPage component by removing unused variables and streamlining the JSX.
2026-05-18 02:38:21 +08:00
LTbinglingfeng a292267fc1 feat: add dark mode support for Grok icon and normalize provider keys across components 2026-05-18 00:09:22 +08:00
LTbinglingfeng 4ef2936f8c feat: enhance mobile styling for premium plan value with gradients and shadows 2026-05-17 20:20:02 +08:00
LTbinglingfeng 57eeff505f feat: add support for xAI provider with OAuth integration and localization 2026-05-17 02:46:05 +08:00
Luis Pater 62092cc875 refactor(quotaConfigs.ts): make Chatgpt-Account-Id header optional to handle missing account IDs gracefully 2026-05-10 21:27:19 +08:00
Supra4E8C 126f7fa929 fix(auth-files): keep disabled card actions visible 2026-05-03 01:10:29 +08:00
Supra4E8C 9f7c471d57 fix(ai-providers): prevent OpenAI provider card overflow 2026-05-03 00:28:30 +08:00
Supra4E8C 1a056ec73d fix(styles): use valid dark theme selector 2026-05-02 23:45:29 +08:00
Supra4E8C 6a10082b24 fix(layout): move mobile sidebar toggle left 2026-05-02 04:22:13 +08:00
Supra4E8C 011cd3b106 refactor: update provider stats functions to use total stats and improve type definitions 2026-05-02 04:15:26 +08:00
Supra4E8C 632be0bbe0 refactor: remove unused chart configuration and latency utilities
- Deleted chartConfig.ts and its exports from index.ts, as they are no longer needed.
- Removed latency.ts and its related functions for latency statistics and formatting.
- Cleaned up usageIndex.ts by removing functions related to indexing usage details, as they are not in use.
2026-05-02 03:41:14 +08:00
Supra4E8C 7d3c57092b refactor: remove unused fields and streamline auth file editor logic 2026-05-02 03:22:32 +08:00
Supra4E8C b25f722fef Refactor provider usage tracking to utilize recent requests data
- Introduced `useProviderRecentRequests` hook to manage recent request data for providers.
- Replaced usage of `useProviderStats` with `useProviderRecentRequests` in relevant components.
- Updated `VertexSection` and other provider components to consume recent request data instead of key stats.
- Removed obsolete `useProviderStats` hook and related usage details.
- Added new utility functions for handling recent request data, including normalization and aggregation.
- Updated API service to fetch recent request usage data.
- Refactored `AuthFileCard` and related components to utilize recent request statistics.
- Cleaned up unused code and types related to previous usage stats implementation.
2026-05-02 02:53:15 +08:00
Supra4E8C 8ed837c3d7 fix: adjust log panel and filter styles for better responsiveness 2026-04-30 22:40:42 +08:00
Supra4E8C cc8632b6f1 fix: adjust opacity style condition for OpenAI provider card 2026-04-30 21:22:08 +08:00
Supra4E8C a4d1c23634 feat: add toggle functionality for enabling/disabling OpenAI providers 2026-04-30 19:52:01 +08:00
Supra4E8C 808f44dd9c fix: remove total latency references from ModelStatsCard and localization files 2026-04-30 01:21:21 +08:00
Supra4E8C d1733497ba fix: add missing commas and improve code formatting in TokenBreakdownChart and UsagePage 2026-04-30 01:02:24 +08:00
Supra4E8C 7b49063264 Reapply "Improve token type distribution readability"
This reverts commit 7c02cc4f9a.
2026-04-30 00:07:54 +08:00
Supra4E8C b20ce40705 fix(styles): adjust heights for top gradient blur and main header 2026-04-29 23:57:41 +08:00
Supra4E8C c27707cbd1 feat(logs): integrate useLocalStorage for auto-refresh and filter states 2026-04-29 23:57:41 +08:00
Supra4E8C 0546f43337 fix(config): preserve antigravity credits absence 2026-04-29 23:57:41 +08:00
Supra4E8CandGitHub 7c02cc4f9a Revert "Improve token type distribution readability" 2026-04-29 23:53:14 +08:00
Supra4E8CandGitHub 7c139429bb Merge pull request #235 from Amamiya23/improve-token-breakdown-readability
Improve token type distribution readability
2026-04-29 23:52:35 +08:00
Supra4E8CandGitHub eeb6ee8a06 Merge pull request #238 from xwil1/fix/log-panel-native-resize
fix(logs): make log panel natively resizable
2026-04-29 00:16:39 +08:00
Supra4E8CandGitHub 1f09d9b4bc Merge pull request #234 from vvrfxyz/feature/usage-thinking-column
Show thinking intensity in request events
2026-04-29 00:15:41 +08:00