dify/web/app/components/share/text-generation
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
..
icons fix: robot emoji (#217) 2023-05-26 15:26:56 +08:00
no-data refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
result test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
run-batch chore: remove useless __esModule (#30366) 2025-12-30 15:37:16 +08:00
run-once test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
index.tsx refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
info-modal.spec.tsx test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
info-modal.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
menu-dropdown.spec.tsx test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
menu-dropdown.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
types.ts feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00