dify/web/__tests__
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
..
goto-anything refactor(web): remove useMixedTranslation, better resource loading (#30630) 2026-01-07 13:20:09 +08:00
check-i18n.test.ts chore: i18n namespace refactor in package.json and add missing translations (#30324) 2025-12-29 20:59:11 +08:00
description-validation.test.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
document-detail-navigation-fix.test.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
document-list-sorting.test.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
embedded-user-id-auth.test.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
embedded-user-id-store.test.tsx refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
i18n-upload-features.test.ts refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
navigation-utils.test.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
plugin-tool-workflow-error.test.tsx CI: add TS indentation check via esLint (#24810) 2025-09-01 15:31:59 +08:00
real-browser-flicker.test.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
unified-tags-logic.test.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
workflow-onboarding-integration.test.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
workflow-parallel-limit.test.tsx chore: remove useless __esModule (#30366) 2025-12-30 15:37:16 +08:00
xss-prevention.test.tsx chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00