dify/web/context
yyh 915a6cc090
refactor!: replace Zustand global store with TanStack Query for systemFeatures
Follow-up to SSR prefetch migration. 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 consumers to import from @/hooks/use-global-public
- Simplify global-public-context.tsx to a thin provider component
- Update 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
- Regenerate eslint-suppressions.json for main branch

BREAKING CHANGE: useGlobalPublicStore is removed. Use useSystemFeatures()
from @/hooks/use-global-public instead.
2026-02-01 19:14:58 +08:00
..
hooks refactor(web): extract isServer/isClient utility & upgrade Node.js to 22.12.0 (#30803) 2026-01-12 12:57:43 +08:00
access-control-store.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
app-context.tsx refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
app-list-context.ts feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
dataset-detail.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
datasets-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
debug-configuration.ts feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
event-emitter.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
explore-context.ts feat: frontend part of support try apps (#31287) 2026-01-22 18:16:37 +08:00
external-api-panel-context.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
external-knowledge-api-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
global-public-context.tsx refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
i18n.spec.ts fix: following docs link fix (#31390) 2026-01-22 15:02:37 +08:00
i18n.ts fix: trigger doc link (#31754) 2026-01-30 17:30:24 +08:00
mitt-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
modal-context.test.tsx chore: remove useless __esModule (#30366) 2025-12-30 15:37:16 +08:00
modal-context.tsx feat(web): migrate from es-toolkit/compat to native es-toolkit (#30244) (#30246) 2025-12-31 11:13:22 +08:00
provider-context-mock.spec.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
provider-context-mock.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
provider-context.tsx revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
query-client-server.ts refactor: marketplace state management (#30702) 2026-01-09 14:31:24 +08:00
query-client.tsx refactor(web): extract isServer/isClient utility & upgrade Node.js to 22.12.0 (#30803) 2026-01-12 12:57:43 +08:00
web-app-context.tsx refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
workspace-context.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00