mirror of
https://github.com/langgenius/dify.git
synced 2026-03-23 23:37:55 +08:00
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.