dify/web/hooks
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
..
use-api-access-url.ts fix: check and update doc links (#30849) 2026-01-21 16:31:48 +08:00
use-app-favicon.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-async-window-open.spec.ts refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
use-async-window-open.ts Fix immediate window open defaults and error handling (#29417) 2025-12-10 19:12:14 +08:00
use-breakpoints.spec.ts refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
use-breakpoints.ts chore: lint require and how to import react (#30041) 2025-12-23 18:02:10 +08:00
use-document-title.spec.ts refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
use-document-title.ts refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
use-format-time-from-now.spec.ts refactor(i18n): about locales (#30336) 2025-12-30 14:38:23 +08:00
use-format-time-from-now.ts refactor(i18n): about locales (#30336) 2025-12-30 14:38:23 +08:00
use-global-public.ts refactor!: replace Zustand global store with TanStack Query for systemFeatures 2026-02-01 19:14:58 +08:00
use-i18n.ts fix: Refactor i18n config and fix plugin search box styling issue (#22945) 2025-07-25 15:01:28 +08:00
use-import-dsl.ts refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
use-knowledge.ts refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
use-metadata.ts refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
use-mitt.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-moderate.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-oauth.ts fix(web): restrict postMessage targetOrigin from wildcard to specific origins (#30690) 2026-01-08 17:23:27 +08:00
use-pay.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
use-query-params.spec.tsx refactor(web): extract isServer/isClient utility & upgrade Node.js to 22.12.0 (#30803) 2026-01-12 12:57:43 +08:00
use-query-params.ts refactor(web): extract isServer/isClient utility & upgrade Node.js to 22.12.0 (#30803) 2026-01-12 12:57:43 +08:00
use-theme.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
use-timestamp.spec.ts refactor(web): migrate to Vitest and esm (#29974) 2025-12-22 16:35:22 +08:00
use-timestamp.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00