Commit Graph

1089 Commits

Author SHA1 Message Date
Supra4E8C ddabc99e24 feat(quota): add a shared minute clock and signed relative-time formatting
Relative time goes stale on its own — nothing re-renders when a minute
passes, so a long-lived tab silently lies. The naive fix is a timer per
component, which on the quota page means one per card body.

Adds one app-wide clock instead, started on the first subscriber and
cleared on the last, exposed through useNow(). QuotaTimeline drops its
private interval and joins it, so the chart and the cards above it tick
in lockstep.

Also extracts the timeline's private relative-time formatter into a
shared, testable one. It is now signed: the old version clamped with
Math.max(0, …), so a credit that expired last week read "in 1 minute".

Duration constants and the MM-DD HH:mm shape are deduplicated into
utils/time/durations.ts and formatInstantShort, which the existing
formatQuotaResetTime / formatUnixSeconds now delegate to.
2026-08-02 01:54:19 +08:00
Supra4E8C 285d9e6753 feat(quotaTimeline): add manual reset credit handling and related UI updates 2026-08-01 23:45:30 +08:00
Supra4E8C b1aefecf94 feat(excludedModels): enhance autoFocus handling in ExcludedModelsPanel v1.21.3 2026-08-01 17:33:46 +08:00
Supra4E8C 648a3d4af4 feat(sheet): add bodyRef to manage scroll position and enhance focus handling 2026-08-01 17:24:03 +08:00
Supra4E8C 6394584b99 feat(authFiles): add disable cooling feature with related UI and logic updates 2026-08-01 17:18:56 +08:00
Supra4E8C 7976b16f6c feat(lmuAI): add LMU AI provider support with related configurations and resources v1.21.2 2026-07-31 20:48:51 +08:00
Supra4E8C b2bd48e58b feat(kimi): add 'week' as a valid time unit and update related functions v1.21.1 2026-07-31 12:54:55 +08:00
Supra4E8C 8038469a2d feat(quota): enhance QuotaTimeline with empty state handling and initial zoom configuration 2026-07-31 12:47:17 +08:00
Supra4E8C 7c072c4ab4 feat(authFiles): enhance identity handling and search functionality
- Introduced deriveAuthFileIdentity to manage display of account email and project ID.
- Updated search logic to include account email and project ID in search criteria.
- Improved styling for file names and account display in AuthFileCard.
- Normalized email and project ID fields in API responses.
- Added tests for new identity logic and search functionalities.
v1.21.0
2026-07-31 12:23:00 +08:00
Supra4E8C f3713c5382 fix(quota): update page size to 20 and adjust pagination tests accordingly 2026-07-31 11:16:37 +08:00
Supra4E8C 66d52992e8 fix(quota): clear usage after reported reset 2026-07-31 11:07:29 +08:00
Supra4E8C ea0652c51c fix(quota): keep xAI period metadata atomic 2026-07-31 11:06:44 +08:00
Supra4E8C 01ab01d388 fix(quota): only project real five-hour windows 2026-07-31 11:06:10 +08:00
Supra4E8C ea107fded0 feat: add quota window management and reset instant handling
- Introduced new localization strings for quota windows in English, Russian, Simplified Chinese, and Traditional Chinese.
- Enhanced quota types to include reset timestamps and period lengths for various providers (Claude, Antigravity, Codex, Kimi, Xai).
- Implemented utility functions for parsing reset instants from different formats (ISO, Unix, and offsets).
- Developed tests for new reset instant parsing utilities and timeline functionalities.
- Updated quota builders to utilize new reset instant logic and ensure accurate timeline projections.
2026-07-31 10:49:20 +08:00
Supra4E8C 31afcffd99 fix(quota): keep Antigravity reset countdown current 2026-07-31 10:03:14 +08:00
Supra4E8C 66d24c053c fix(quota): block refresh while Codex reset runs 2026-07-31 10:01:40 +08:00
Supra4E8C fb6d94788b chore(i18n): drop retired quota view-mode and too-many-files strings 2026-07-31 09:21:03 +08:00
Supra4E8C 1705246ed1 feat(quota): add entrance choreography and data-arrival motion 2026-07-31 09:20:25 +08:00
Supra4E8C 46ffeba5dd feat(quota)!: route /quota to the redesigned page and retire the section shell 2026-07-31 09:17:42 +08:00
Supra4E8C 54af5fb3e3 feat(quota): build the redesigned quota feature shell (unrouted) 2026-07-31 09:16:07 +08:00
Supra4E8C 9ecd89b136 refactor(quota): replace string styleMap renderers with typed JSX quota bodies 2026-07-31 08:56:16 +08:00
Supra4E8C 572da189bc refactor(quota): split provider data layer out of quotaConfigs 2026-07-31 08:50:02 +08:00
Supra4E8C 7345e99059 test(quota): extract resolvePlanTier and cover the elite/premium order contract 2026-07-31 08:43:17 +08:00
Supra4E8C 826ea3c0d0 docs(excluded-models): clarify rule module consolidation v1.20.4 2026-07-31 07:44:16 +08:00
Supra4E8C 4abd41f947 refactor: streamline excluded models management and enhance localization
- Removed deprecated localization keys related to excluded models in zh-TW.json.
- Introduced a new structure for excluded models with improved UI components.
- Refactored AuthFilesOAuthExcludedEditPage to utilize ExcludedModelsPicker for better handling of model exclusions.
- Consolidated styles in AuthFilesOAuthExcludedEditPage.module.scss by removing unused classes.
- Added comprehensive tests for excluded model rules and their matching logic.
- Deleted obsolete tests for OAuth excluded rules and replaced them with more relevant tests for the new structure.
- Ensured that the disabled state of providers is correctly managed and reflected in the UI.
2026-07-31 07:42:56 +08:00
Supra4E8C 20bb8559d4 feat(auth-files): implement excluded models selection with UI support and backend integration 2026-07-31 04:53:01 +08:00
Supra4E8C afd7da059d feat(auth-files): add excluded models field with normalization and UI support 2026-07-31 04:25:35 +08:00
Supra4E8C 13a22da082 fix(dashboard): adjust heroPeriod styles for improved spacing and letter spacing v1.20.3 2026-07-31 03:24:58 +08:00
Supra4E8C 6cda18a852 feat(quota): update Codex Pro 20x badge styles and animations for improved visual consistency 2026-07-31 03:22:39 +08:00
Supra4E8C fe93db0941 fix(quota): restore Codex reset button visibility 2026-07-31 01:16:05 +08:00
Supra4E8C 530b585bd0 feat(interactions): add support for Interactions API, including endpoints, payloads, and configuration management v1.20.2 2026-07-30 08:05:30 +08:00
Supra4E8C 90971e8f6a feat(auth-files): add WRR weight management and update priority handling 2026-07-30 07:45:55 +08:00
Supra4E8C 8faaa39534 feat: add support for weighted round-robin routing strategy and credential weight management
- Implemented 'weighted-round-robin' as a new routing strategy in DashboardPage.
- Introduced weight input fields in ApiKeyEntriesEditor, BaseProviderForm, and SponsorProviderForm.
- Added validation for credential weights, including integer checks and maximum limits.
- Updated localization files to include new weight-related labels and hints.
- Created utility functions for credential weight validation and parsing.
- Added tests for credential weight handling and visual config routing strategy.
2026-07-30 07:22:24 +08:00
Supra4E8C 9524cc7f32 feat(quota): add elite Codex Pro 20x badge styles and animations v1.20.1 2026-07-30 06:57:08 +08:00
Supra4E8C 6360b52d18 fix(auth-files): restore mobile wrapping 2026-07-30 03:56:03 +08:00
Supra4E8C c9636a3c54 fix(auth-files): prevent concurrent uploads 2026-07-30 03:55:16 +08:00
Supra4E8C b76037ac7c fix(auth-files): preserve latest loading state 2026-07-30 03:54:45 +08:00
Supra4E8C 840df32f16 fix(auth-files): isolate model requests 2026-07-30 03:54:11 +08:00
Supra4E8C 966a2918d5 fix(auth-files): invalidate quota cache on mutations 2026-07-30 03:37:35 +08:00
Supra4E8C 3c8eba3027 fix(auth-files): align problem status semantics 2026-07-30 03:36:15 +08:00
Supra4E8C 29b1b9bb48 refactor(auth-files): drop vault header eyebrow and move cursor marker to meta line 2026-07-30 03:24:20 +08:00
Supra4E8C 0a181ba661 chore(auth-files): polish pulse presence, quiet card actions and prune orphaned i18n keys 2026-07-30 02:58:00 +08:00
Supra4E8C cc13476844 feat(auth-files): rebuild page with vault header, pulse spectrum and provider tabs 2026-07-30 02:35:22 +08:00
Supra4E8C b9c3fbbb77 feat(auth-files): componentize cards, quota section, sheet editor and batch bar with colocated styles 2026-07-30 02:23:25 +08:00
Supra4E8C 20c0cb865e feat(auth-files): background refresh, batch download parity and models cache invalidation 2026-07-30 02:08:11 +08:00
Supra4E8C dbe7094e8c feat(api): normalize auth file fields at the client boundary 2026-07-30 02:02:41 +08:00
Supra4E8C b62dbefda8 refactor(quota): unify progress bar, type colors and quota error resolver 2026-07-30 02:00:29 +08:00
Supra4E8C 22cf825d07 refactor(motion): promote reveal hooks and interaction tokens to shared scope 2026-07-30 01:55:37 +08:00
Supra4E8C 51b034dd91 feat(quota): add applicableAvailableCount to Codex rate limit structures and update related logic 2026-07-29 19:48:11 +08:00
Supra4E8C 1708314bc7 fix(dashboard): adjust ambient layer positioning and improve wash effects for better visual consistency v1.20.0 2026-07-29 04:49:36 +08:00