dify/web/app/components/datasets
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
..
api test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
common refactor(web): consolidate download helpers (#31664) 2026-01-29 16:02:49 +08:00
create Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-29 21:25:28 +08:00
create-from-pipeline refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
documents Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-01-29 21:25:28 +08:00
external-api fix: more doc link fix (#31395) 2026-01-22 16:13:10 +08:00
external-knowledge-base fix: check and update doc links (#30849) 2026-01-22 16:13:09 +08:00
extra-info test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
formatted-text chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
hit-testing feat: summary index (#31523) 2026-01-28 11:09:34 +08:00
list refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:06:08 +08:00
metadata refactor: Refactor context generation modal into composable components 2026-01-22 01:34:44 +08:00
preview test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
rename-modal test: add tests for dataset list (#31231) 2026-01-20 13:07:00 +08:00
settings feat: summary index (#31523) 2026-01-28 11:09:34 +08:00
chunk.spec.tsx test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
chunk.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
loading.spec.tsx test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
loading.tsx fix oxlint warnings (#26634) 2025-10-09 09:23:34 +08:00
no-linked-apps-panel.spec.tsx test: add comprehensive tests (#31649) 2026-01-29 11:16:26 +08:00
no-linked-apps-panel.tsx fix: check and update doc links (#30849) 2026-01-22 16:13:09 +08:00