dify/web/app/components/plugins
yyh 806ece9a67
refactor!: replace Zustand global store with TanStack Query for systemFeatures
Follow-up to SSR prefetch migration (2833965). Eliminates the Zustand
middleman that was syncing TanStack Query data into a separate store.

- Remove useGlobalPublicStore Zustand store entirely
- Create hooks/use-global-public.ts with useSystemFeatures,
  useSystemFeaturesQuery, useIsSystemFeaturesPending, useSetupStatusQuery
- Migrate all 93 consumers to import from @/hooks/use-global-public
- Simplify global-public-context.tsx to a thin provider component
- Update 18 test files to mock the new hook interface
- Fix SetupStatusResponse.setup_at type from Date to string (JSON)
- Fix setup-status.spec.ts mock target to match consoleClient

BREAKING CHANGE: useGlobalPublicStore is removed. Use useSystemFeatures()
from @/hooks/use-global-public instead.
2026-02-01 19:06:08 +08:00
..
base refactor(tool-selector): remove unused components and consolidate import (#31018) 2026-01-26 14:24:00 +08:00
card refactor(tool-selector): remove unused components and consolidate import (#31018) 2026-01-26 14:24:00 +08:00
install-plugin refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
marketplace Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-27 15:17:40 +08:00
plugin-auth merge 2026-01-26 16:57:45 +08:00
plugin-detail-panel refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
plugin-item refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
plugin-mutation-model fix: enforce no-leaked-conditional-rendering as error and fix violations (#31262) 2026-01-20 23:08:59 +08:00
plugin-page refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
readme-panel merge 2026-01-26 16:57:45 +08:00
reference-setting-modal refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
update-plugin refactor(i18n): about locales (#30336) 2025-12-30 14:38:23 +08:00
constants.ts refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
hooks.spec.ts refactor(tool-selector): remove unused components and consolidate import (#31018) 2026-01-26 14:24:00 +08:00
hooks.ts refactor(web): remove useMixedTranslation, better resource loading (#30630) 2026-01-07 13:20:09 +08:00
provider-card.tsx feat: model total credits (#30727) 2026-01-08 14:11:44 +08:00
types.ts feat: add editing support for trigger subscriptions (#29957) 2025-12-24 19:15:54 +08:00
utils.ts fix: check and update doc links (#30849) 2026-01-22 16:13:09 +08:00