dify/web/app/components/header/account-setting/model-provider-page
yyh 648d9ef1f9
refactor(web): extract SystemQuotaCard compound component and shared useTrialCredits hook
Extract trial credits calculation into a shared useTrialCredits hook to prevent
logic drift between QuotaPanel and CredentialPanel. Add SystemQuotaCard compound
component with explicit default/destructive variants for the system quota UI
state in provider cards, replacing inline conditional styling with composable
Label and Actions slots. Remove unnecessary useMemo for simple derived values.
2026-03-04 23:30:25 +08:00
..
model-auth test(web): Added test for model-auth files in header folder (#32358) 2026-02-23 12:57:00 +08:00
model-badge refactor(web): align provider badges with figma and remove dead add-model-button 2026-03-04 22:29:51 +08:00
model-icon test(web): add tests for model-provider-page files in header account-… (#32360) 2026-02-23 20:07:19 +08:00
model-modal test(web): add tests for model-provider-page files in header account-… (#32360) 2026-02-23 20:07:19 +08:00
model-name test(web): add tests for model-provider-page files in header account-… (#32360) 2026-02-23 20:07:19 +08:00
model-parameter-modal test(web): add tests for model-provider-page files in header account-… (#32360) 2026-02-23 20:07:19 +08:00
model-selector fix: style 2026-03-04 21:07:42 +08:00
provider-added-card refactor(web): extract SystemQuotaCard compound component and shared useTrialCredits hook 2026-03-04 23:30:25 +08:00
provider-icon feat(web): add version badge and actions menu to provider cards 2026-03-04 21:29:52 +08:00
system-model-selector fix: style 2026-03-04 20:58:14 +08:00
declarations.ts chore: remove icon_large of models (#30466) 2026-01-03 02:35:17 +09:00
hooks.spec.ts test(web): fix trivial assertion and add useInvalidateDefaultModel tests 2026-03-04 17:51:20 +08:00
hooks.ts fix(web): align model provider cache invalidation with oRPC keys 2026-03-04 22:06:27 +08:00
index.spec.tsx feat(web): add version badge and actions menu to provider cards 2026-03-04 21:29:52 +08:00
index.tsx feat(web): add version badge and actions menu to provider cards 2026-03-04 21:29:52 +08:00
install-from-marketplace.spec.tsx test(web): increase test coverage for model-provider-page folder (#32374) 2026-02-24 18:28:12 +08:00
install-from-marketplace.tsx refactor(web): remove useMixedTranslation, better resource loading (#30630) 2026-01-07 13:20:09 +08:00
utils.spec.ts test(web): increase test coverage for model-provider-page folder (#32374) 2026-02-24 18:28:12 +08:00
utils.ts feat(web): add version badge and actions menu to provider cards 2026-03-04 21:29:52 +08:00