Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: migrate to eslint-better-tailwind (#31969)
Stephen Zhou7202a24bcf1a
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.ymlindex 4a8c61e7d2c..4571fd1cd12 100644--- a/.github/workflows/autofix.yml+++ b/.github/workflows/autofix.yml@@ -79,29 +79,6 @@ jobs:find . -name "*.py" -type f -exec sed -i.bak -E 's/"([^"]+)" \| None/Optional["\1"]/g; s/'"'"'([^'"'"']+)'"'"' \| None/Optional['"'"'\1'"'"']/g' {} \;find . -name "*.py.bak" -type f -delete- - name: Install pnpm- uses: pnpm/action-setup@v4- with:- package_json_file: web/package.json- run_install: false-- - name: Setup Node.js- uses: actions/setup-node@v6- with:- node-version: 24- cache: pnpm- cache-dependency-path: ./web/pnpm-lock.yaml-- - name: Install web dependencies- run: |- cd web- pnpm install --frozen-lockfile-- - name: ESLint autofix- run: |- cd web- pnpm lint:fix || true-# mdformat breaks YAML front matter in markdown files. Add --exclude for directories containing YAML front matter.- name: mdformatrun: |diff --git a/web/app/components/base/effect/index.stories.tsx b/web/app/components/base/effect/index.stories.tsxindex 36a0e668cfd..8452e9aefea 100644--- a/web/app/components/base/effect/index.stories.tsx+++ b/web/app/components/base/effect/index.stories.tsx@@ -1,4 +1,3 @@-/* eslint-disable tailwindcss/classnames-order */import type { Meta, StoryObj } from '@storybook/nextjs-vite'import Effect from '.'@@ -29,8 +28,8 @@ type Story = StoryObj<typeof meta>export const Playground: Story = {render: () => (<div className="relative h-40 w-72 overflow-hidden rounded-2xl border border-divider-subtle bg-background-default-subtle">- <Effect className="top-6 left-8" />- <Effect className="top-14 right-10 bg-util-colors-purple-brand-purple-brand-500" />+ <Effect className="left-8 top-6" />+ <Effect className="bg-util-colors-purple-brand-purple-brand-500 right-10 top-14" /><div className="absolute inset-x-0 bottom-4 flex justify-center text-xs text-text-secondary">Accent glow</div>diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsxindex f0a1fb64a9e..9bc97d9970f 100644--- a/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsx+++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/error-message.tsx@@ -14,7 +14,6 @@ const ErrorMessage = ({errorMsg,}: ErrorMessageProps) => {return (- // eslint-disable-next-line tailwindcss/migration-from-tailwind-2<div className={cn('flex gap-x-0.5 rounded-xl border-[0.5px] border-components-panel-border bg-opacity-40 bg-toast-error-bg p-2 shadow-xs shadow-shadow-shadow-3',className,diff --git a/web/docs/lint.md b/web/docs/lint.mdindex 051f9e6ecdd..a0ec9d58ada 100644--- a/web/docs/lint.md+++ b/web/docs/lint.md@@ -38,6 +38,11 @@ pnpm lint:tssThis command lints the entire project and is intended for final verification before committing or pushing changes.+### Introducing New Plugins or Rules++If a new rule causes many existing code errors or automatic fixes generate too many diffs, do not use the `--fix` option for automatic fixes.+You can introduce the rule first, then use the `--suppress-all` option to temporarily suppress these errors, and gradually fix them in subsequent changes.+## Type CheckYou should be able to see suggestions from TypeScript in your editor for all open files.diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.jsonindex 2a35bf49b6e..e38c1905db5 100644--- a/web/eslint-suppressions.json+++ b/web/eslint-suppressions.json@@ -81,6 +81,11 @@"count": 1}},+ "app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx": {"no-console": {"count": 19@@ -120,6 +125,9 @@}},"app/account/(commonLayout)/account-page/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 1}@@ -259,6 +267,9 @@"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 3},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 6}@@ -273,6 +284,11 @@"count": 2}},+ "app/components/app/configuration/config-prompt/confirm-add-var/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config-prompt/conversation-history/edit-modal.tsx": {"ts/no-explicit-any": {"count": 1@@ -283,6 +299,11 @@"count": 1}},+ "app/components/app/configuration/config-prompt/message-type-selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config-prompt/simple-prompt-input.tsx": {"ts/no-explicit-any": {"count": 3@@ -293,16 +314,46 @@"count": 6}},+ "app/components/app/configuration/config-var/config-select/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/app/configuration/config-var/input-type-icon.tsx": {+ "tailwindcss/enforce-consistent-class-order": {+ "count": 1+ }+ },+ "app/components/app/configuration/config-var/select-type-item/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config-var/select-var-type.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/app/configuration/config-var/var-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config-vision/index.spec.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/app/configuration/config-vision/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },+ "app/components/app/configuration/config-vision/param-config-content.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config/agent-setting-button.spec.tsx": {"ts/no-explicit-any": {"count": 2@@ -322,6 +373,9 @@}},"app/components/app/configuration/config/agent/agent-tools/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 9}@@ -335,11 +389,22 @@"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 4}},+ "app/components/app/configuration/config/agent/prompt-editor.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config/assistant-type-picker/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 3+ },"ts/no-explicit-any": {"count": 1}@@ -352,6 +417,11 @@"count": 1}},+ "app/components/app/configuration/config/automatic/idea-output.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config/automatic/instruction-editor.tsx": {"ts/no-explicit-any": {"count": 2@@ -367,10 +437,18 @@"count": 1}},+ "app/components/app/configuration/config/automatic/version-selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/config/code-generator/get-code-generator-res.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 4},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}@@ -390,11 +468,26 @@"count": 6}},+ "app/components/app/configuration/ctrl-btn-group/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/configuration/dataset-config/card-item/index.spec.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/app/configuration/dataset-config/context-var/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/app/configuration/dataset-config/context-var/var-picker.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 4+ }+ },"app/components/app/configuration/dataset-config/index.spec.tsx": {"ts/no-explicit-any": {"count": 37@@ -418,6 +511,9 @@"app/components/app/configuration/dataset-config/select-dataset/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 2+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2}},"app/components/app/configuration/dataset-config/settings-modal/index.tsx": {@@ -496,6 +592,9 @@"style/multiline-ternary": {"count": 2},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 24}@@ -511,15 +610,28 @@}},"app/components/app/configuration/tools/external-data-tool-modal.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}},+ "app/components/app/configuration/tools/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/create-app-dialog/app-card/index.spec.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/app/create-app-dialog/app-card/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/create-app-dialog/app-list/index.spec.tsx": {"ts/no-explicit-any": {"count": 1@@ -546,6 +658,11 @@"count": 1}},+ "app/components/app/create-from-dsl-modal/uploader.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/log/filter.tsx": {"react-refresh/only-export-components": {"count": 1@@ -577,10 +694,18 @@"count": 1}},+ "app/components/app/overview/apikey-info-panel/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 3+ }+ },"app/components/app/overview/app-card.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 3},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -593,6 +718,9 @@"app/components/app/overview/embedded/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/app/overview/settings/index.tsx": {@@ -625,10 +753,18 @@}},"app/components/app/text-generate/item/result-tab.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}},+ "app/components/app/text-generate/saved-items/no-data/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/app/workflow-log/filter.tsx": {"react-refresh/only-export-components": {"count": 1@@ -718,6 +854,11 @@"count": 2}},+ "app/components/base/alert.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/amplitude/AmplitudeProvider.tsx": {"react-refresh/only-export-components": {"count": 1@@ -733,6 +874,11 @@"count": 1}},+ "app/components/base/app-icon/index.tsx": {+ "tailwindcss/enforce-consistent-class-order": {+ "count": 15+ }+ },"app/components/base/audio-btn/audio.ts": {"node/prefer-global/buffer": {"count": 1@@ -754,6 +900,11 @@"count": 1}},+ "app/components/base/auto-height-textarea/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/avatar/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -776,6 +927,12 @@},"react/no-nested-component-definitions": {"count": 1+ },+ "tailwindcss/enforce-consistent-class-order": {+ "count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/base/button/add-button.stories.tsx": {@@ -818,6 +975,11 @@"count": 2}},+ "app/components/base/chat/chat-with-history/header/operation.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/chat/chat-with-history/hooks.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 4@@ -979,6 +1141,14 @@"count": 1}},+ "app/components/base/divider/index.tsx": {+ "tailwindcss/enforce-consistent-class-order": {+ "count": 2+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/emoji-picker/Inner.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -1015,6 +1185,14 @@"app/components/base/features/new-feature-panel/conversation-opener/modal.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/base/features/new-feature-panel/dialog-wrapper.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/base/features/new-feature-panel/feature-card.tsx": {@@ -1047,6 +1225,11 @@"count": 1}},+ "app/components/base/file-thumb/index.tsx": {+ "tailwindcss/enforce-consistent-class-order": {+ "count": 1+ }+ },"app/components/base/file-uploader/dynamic-pdf-preview.tsx": {"ts/no-explicit-any": {"count": 1@@ -1055,6 +1238,14 @@"app/components/base/file-uploader/file-list-in-log.tsx": {"react/no-missing-key": {"count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/base/file-uploader/file-uploader-in-chat-input/file-image-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/base/file-uploader/hooks.ts": {@@ -1222,6 +1413,14 @@"app/components/base/input/index.tsx": {"react-refresh/only-export-components": {"count": 1+ },+ "tailwindcss/enforce-consistent-class-order": {+ "count": 2+ }+ },+ "app/components/base/linked-apps-panel/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/base/logo/dify-logo.tsx": {@@ -1328,6 +1527,9 @@"regexp/no-super-linear-backtracking": {"count": 3},+ "tailwindcss/enforce-consistent-class-order": {+ "count": 2+ },"ts/no-explicit-any": {"count": 2}@@ -1382,6 +1584,9 @@"app/components/base/node-status/index.tsx": {"react-refresh/only-export-components": {"count": 1+ },+ "tailwindcss/enforce-consistent-class-order": {+ "count": 1}},"app/components/base/notion-connector/index.stories.tsx": {@@ -1440,26 +1645,89 @@"count": 1}},+ "app/components/base/prompt-editor/plugins/component-picker-block/prompt-option.tsx": {+ "tailwindcss/no-duplicate-classes": {+ "count": 2+ }+ },"app/components/base/prompt-editor/plugins/context-block/component.tsx": {+ "tailwindcss/no-duplicate-classes": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}},+ "app/components/base/prompt-editor/plugins/context-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/current-block/component.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/current-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/error-message-block/component.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/error-message-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },"app/components/base/prompt-editor/plugins/history-block/component.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/base/prompt-editor/plugins/history-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/last-run-block/component.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/last-run-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },"app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/base/prompt-editor/plugins/query-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },"app/components/base/prompt-editor/plugins/update-block.tsx": {"ts/no-explicit-any": {"count": 2}},+ "app/components/base/prompt-editor/plugins/variable-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 2+ }+ },+ "app/components/base/prompt-editor/plugins/workflow-variable-block/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 4+ }+ },"app/components/base/prompt-editor/plugins/workflow-variable-block/node.tsx": {"ts/no-explicit-any": {"count": 5@@ -1527,6 +1795,11 @@"count": 1}},+ "app/components/base/select/locale.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/slider/index.stories.tsx": {"no-console": {"count": 2@@ -1535,6 +1808,11 @@"count": 1}},+ "app/components/base/slider/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/sort/index.tsx": {"ts/no-explicit-any": {"count": 2@@ -1556,6 +1834,14 @@"app/components/base/switch/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/base/tab-slider-plain/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2}},"app/components/base/tab-slider/index.tsx": {@@ -1571,6 +1857,11 @@"count": 1}},+ "app/components/base/tag-management/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/base/text-generation/hooks.ts": {"ts/no-explicit-any": {"count": 1@@ -1587,6 +1878,9 @@"app/components/base/textarea/index.tsx": {"react-refresh/only-export-components": {"count": 1+ },+ "tailwindcss/enforce-consistent-class-order": {+ "count": 3}},"app/components/base/toast/index.tsx": {@@ -1607,6 +1901,11 @@"count": 1}},+ "app/components/base/voice-input/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/base/voice-input/utils.ts": {"ts/no-explicit-any": {"count": 4@@ -1657,6 +1956,11 @@"count": 1}},+ "app/components/billing/pricing/plans/self-hosted-plan-item/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/billing/upgrade-btn/index.spec.tsx": {"ts/no-explicit-any": {"count": 9@@ -1673,6 +1977,9 @@}},"app/components/custom/custom-web-app-brand/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}@@ -1712,6 +2019,11 @@"count": 1}},+ "app/components/datasets/create-from-pipeline/header.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/create/file-preview/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -1727,6 +2039,11 @@"count": 1}},+ "app/components/datasets/create/step-one/upgrade-card.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/create/step-three/index.spec.tsx": {"ts/no-explicit-any": {"count": 7@@ -1759,6 +2076,9 @@}},"app/components/datasets/create/website/firecrawl/options.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -1775,6 +2095,9 @@}},"app/components/datasets/create/website/jina-reader/options.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -1791,6 +2114,9 @@}},"app/components/datasets/create/website/watercrawl/options.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -1890,6 +2216,16 @@"count": 2}},+ "app/components/datasets/documents/create-from-pipeline/left-header.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/datasets/documents/create-from-pipeline/preview/web-preview.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/documents/create-from-pipeline/process-documents/form.tsx": {"ts/no-explicit-any": {"count": 3@@ -1900,6 +2236,11 @@"count": 2}},+ "app/components/datasets/documents/detail/batch-modal/csv-uploader.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/documents/detail/batch-modal/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -1948,6 +2289,11 @@"count": 6}},+ "app/components/datasets/documents/detail/settings/pipeline-settings/left-header.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/documents/detail/settings/pipeline-settings/process-documents/index.tsx": {"ts/no-explicit-any": {"count": 3@@ -1983,6 +2329,16 @@"count": 1}},+ "app/components/datasets/hit-testing/components/child-chunks-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/datasets/hit-testing/components/records.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 3+ }+ },"app/components/datasets/hit-testing/components/score.tsx": {"unicorn/prefer-number-properties": {"count": 1@@ -1993,11 +2349,21 @@"count": 1}},+ "app/components/datasets/metadata/edit-metadata-batch/edit-row.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/metadata/edit-metadata-batch/input-combined.tsx": {"ts/no-explicit-any": {"count": 2}},+ "app/components/datasets/metadata/edit-metadata-batch/input-has-set-multiple-value.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/datasets/metadata/hooks/use-edit-dataset-metadata.ts": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -2018,6 +2384,21 @@"count": 1}},+ "app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/datasets/metadata/metadata-dataset/select-metadata.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },+ "app/components/datasets/metadata/metadata-document/info-group.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/datasets/settings/permission-selector/index.tsx": {"react/no-missing-key": {"count": 1@@ -2052,6 +2433,11 @@"count": 1}},+ "app/components/explore/category.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/explore/create-app-modal/index.tsx": {"ts/no-explicit-any": {"count": 1@@ -2075,6 +2461,16 @@"count": 1}},+ "app/components/explore/try-app/app/text-generation.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/explore/try-app/preview/basic-app-preview.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/explore/try-app/tab.tsx": {"react-refresh/only-export-components": {"count": 1@@ -2116,6 +2512,11 @@"count": 1}},+ "app/components/header/account-dropdown/workplace-selector/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/header/account-setting/data-source-page-new/card.tsx": {"ts/no-explicit-any": {"count": 2@@ -2230,6 +2631,9 @@}},"app/components/header/account-setting/model-provider-page/model-modal/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 5}@@ -2244,11 +2648,21 @@"count": 1}},+ "app/components/header/account-setting/model-provider-page/model-parameter-modal/presets-parameter.tsx": {+ "tailwindcss/enforce-consistent-class-order": {+ "count": 1+ }+ },"app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx": {"ts/no-explicit-any": {"count": 2}},+ "app/components/header/account-setting/model-provider-page/model-parameter-modal/trigger.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/header/account-setting/model-provider-page/provider-added-card/cooldown-timer.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 2@@ -2295,6 +2709,26 @@"count": 1}},+ "app/components/header/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/header/nav/nav-selector/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/plugins/base/key-value-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/plugins/card/base/corner-mark.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/plugins/install-plugin/hooks.ts": {"ts/no-explicit-any": {"count": 4@@ -2341,6 +2775,16 @@"count": 2}},+ "app/components/plugins/marketplace/list/card-wrapper.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/plugins/marketplace/list/list-with-collection.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/plugins/marketplace/sort-dropdown/index.spec.tsx": {"unused-imports/no-unused-vars": {"count": 1@@ -2469,6 +2913,11 @@"count": 1}},+ "app/components/plugins/plugin-detail-panel/subscription-list/index.tsx": {+ "react-refresh/only-export-components": {+ "count": 1+ }+ },"app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.tsx": {"ts/no-explicit-any": {"count": 2@@ -2537,6 +2986,11 @@"count": 7}},+ "app/components/plugins/reference-setting-modal/auto-update-setting/tool-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/plugins/reference-setting-modal/index.spec.tsx": {"ts/no-explicit-any": {"count": 7@@ -2617,6 +3071,11 @@"count": 4}},+ "app/components/rag-pipeline/components/publish-as-knowledge-pipeline-modal.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/rag-pipeline/components/rag-pipeline-children.tsx": {"ts/no-explicit-any": {"count": 1@@ -2700,6 +3159,11 @@"count": 1}},+ "app/components/share/text-generation/result/header.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 3+ }+ },"app/components/share/text-generation/result/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 3@@ -2732,6 +3196,9 @@}},"app/components/tools/edit-custom-collection-modal/get-schema.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 1}@@ -2740,15 +3207,31 @@"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 4},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 2}},"app/components/tools/edit-custom-collection-modal/test-api.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}},+ "app/components/tools/labels/filter.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/tools/labels/selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/tools/mcp/create-card.tsx": {"ts/no-explicit-any": {"count": 1@@ -2770,6 +3253,9 @@}},"app/components/tools/mcp/provider-card.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 3}@@ -2785,6 +3271,9 @@}},"app/components/tools/setting/build-in/config-credentials.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 3}@@ -2794,6 +3283,16 @@"count": 4}},+ "app/components/tools/workflow-tool/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/tools/workflow-tool/method-selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow-app/components/workflow-children.tsx": {"no-console": {"count": 1@@ -2862,15 +3361,13 @@"count": 1}},- "app/components/workflow/block-selector/constants.tsx": {- "react-refresh/only-export-components": {- "count": 1- }- },"app/components/workflow/block-selector/featured-tools.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 2},+ "tailwindcss/no-duplicate-classes": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}@@ -2879,6 +3376,9 @@"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 2},+ "tailwindcss/no-duplicate-classes": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}@@ -2898,6 +3398,11 @@"count": 1}},+ "app/components/workflow/block-selector/market-place-plugin/item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/block-selector/rag-tool-recommendations/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -2934,6 +3439,9 @@"app/components/workflow/block-selector/view-type-select.tsx": {"react-refresh/only-export-components": {"count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/workflow/candidate-node-main.tsx": {@@ -2951,6 +3459,11 @@"count": 1}},+ "app/components/workflow/header/header-in-restoring.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/header/run-mode.tsx": {"no-console": {"count": 1@@ -3085,6 +3598,11 @@"count": 8}},+ "app/components/workflow/nodes/_base/components/before-run-form/panel-wrap.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -3122,6 +3640,9 @@}},"app/components/workflow/nodes/_base/components/input-support-select-var.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -3159,9 +3680,15 @@"app/components/workflow/nodes/_base/components/node-handle.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1+ },+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/workflow/nodes/_base/components/prompt/editor.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 4}@@ -3172,6 +3699,9 @@}},"app/components/workflow/nodes/_base/components/selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 2}@@ -3191,18 +3721,34 @@"count": 32}},+ "app/components/workflow/nodes/_base/components/variable/var-full-path-panel.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 2},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 3}},+ "app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 3+ }+ },"app/components/workflow/nodes/_base/components/workflow-panel/index.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 3},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 6}@@ -3255,6 +3801,9 @@}},"app/components/workflow/nodes/_base/node.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 3}@@ -3413,6 +3962,11 @@"count": 1}},+ "app/components/workflow/nodes/http/components/api-input.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx": {"ts/no-explicit-any": {"count": 2@@ -3428,6 +3982,11 @@"count": 1}},+ "app/components/workflow/nodes/http/panel.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/workflow/nodes/http/use-config.ts": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -3441,11 +4000,26 @@"count": 5}},+ "app/components/workflow/nodes/if-else/components/condition-files-list-value.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/if-else/components/condition-list/condition-input.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/workflow/nodes/if-else/components/condition-number-input.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/workflow/nodes/if-else/components/condition-wrap.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/workflow/nodes/if-else/default.ts": {"ts/no-explicit-any": {"count": 1@@ -3466,6 +4040,11 @@"count": 1}},+ "app/components/workflow/nodes/iteration/panel.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/iteration/use-single-run-form-params.ts": {"ts/no-explicit-any": {"count": 6@@ -3491,11 +4070,21 @@"count": 3}},+ "app/components/workflow/nodes/knowledge-retrieval/components/dataset-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/workflow/nodes/knowledge-retrieval/components/retrieval-config.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ }+ },"app/components/workflow/nodes/knowledge-retrieval/default.ts": {"ts/no-explicit-any": {"count": 1@@ -3521,12 +4110,20 @@"count": 5}},+ "app/components/workflow/nodes/list-operator/components/extract-input.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/list-operator/components/filter-condition.tsx": {"ts/no-explicit-any": {"count": 1}},"app/components/workflow/nodes/list-operator/components/sub-variable-picker.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -3609,11 +4206,26 @@"count": 10}},+ "app/components/workflow/nodes/loop/components/condition-files-list-value.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/loop/components/condition-list/condition-input.tsx": {"ts/no-explicit-any": {"count": 1}},+ "app/components/workflow/nodes/loop/components/condition-number-input.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/workflow/nodes/loop/components/condition-wrap.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx": {"ts/no-explicit-any": {"count": 3@@ -3695,6 +4307,11 @@"count": 8}},+ "app/components/workflow/nodes/start/node.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/start/panel.tsx": {"ts/no-explicit-any": {"count": 2@@ -3730,6 +4347,11 @@"count": 1}},+ "app/components/workflow/nodes/tool/components/copy-id.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/tool/components/input-var-list.tsx": {"ts/no-explicit-any": {"count": 7@@ -3760,6 +4382,11 @@"count": 7}},+ "app/components/workflow/nodes/tool/node.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/nodes/tool/output-schema-utils.ts": {"ts/no-explicit-any": {"count": 4@@ -3849,6 +4476,9 @@}},"app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 1}@@ -3912,6 +4542,9 @@"react-refresh/only-export-components": {"count": 1},+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 2+ },"ts/no-explicit-any": {"count": 5},@@ -3965,11 +4598,41 @@"count": 4}},+ "app/components/workflow/panel/version-history-panel/context-menu/menu-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/workflow/panel/version-history-panel/delete-confirm-modal.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/workflow/panel/version-history-panel/filter/index.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/panel/version-history-panel/index.spec.tsx": {"ts/no-explicit-any": {"count": 2}},+ "app/components/workflow/panel/version-history-panel/loading/item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/workflow/panel/version-history-panel/restore-confirm-modal.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },+ "app/components/workflow/panel/version-history-panel/version-history-item.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/panel/workflow-preview.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -4001,6 +4664,11 @@"count": 1}},+ "app/components/workflow/run/loop-result-panel.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/components/workflow/run/node.tsx": {"react-hooks-extra/no-direct-set-state-in-use-effect": {"count": 1@@ -4017,6 +4685,9 @@}},"app/components/workflow/run/result-text.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ },"ts/no-explicit-any": {"count": 2}@@ -4193,7 +4864,12 @@},"app/components/workflow/workflow-history-store.tsx": {"react-refresh/only-export-components": {- "count": 2+ "count": 3+ }+ },+ "app/components/workflow/workflow-preview/components/nodes/base.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1}},"app/components/workflow/workflow-preview/components/nodes/constants.ts": {@@ -4206,6 +4882,11 @@"count": 5}},+ "app/education-apply/role-selector.tsx": {+ "tailwindcss/no-unnecessary-whitespace": {+ "count": 1+ }+ },"app/education-apply/search-input.tsx": {"ts/no-explicit-any": {"count": 1@@ -4231,6 +4912,11 @@"count": 7}},+ "app/install/installForm.tsx": {+ "tailwindcss/enforce-consistent-class-order": {+ "count": 1+ }+ },"app/reset-password/layout.tsx": {"ts/no-explicit-any": {"count": 1@@ -4682,4 +5368,4 @@"count": 2}}-}+}\ No newline at end of filediff --git a/web/eslint.config.mjs b/web/eslint.config.mjsindex 3f3bef8c03c..8d885e1ebc8 100644--- a/web/eslint.config.mjs+++ b/web/eslint.config.mjs@@ -1,9 +1,9 @@// @ts-checkimport antfu from '@antfu/eslint-config'import pluginQuery from '@tanstack/eslint-plugin-query'+import tailwindcss from 'eslint-plugin-better-tailwindcss'import sonar from 'eslint-plugin-sonarjs'import storybook from 'eslint-plugin-storybook'-import tailwind from 'eslint-plugin-tailwindcss'import dify from './eslint-rules/index.js'export default antfu(@@ -23,7 +23,7 @@ export default antfu(},},nextjs: true,- ignores: ['public', 'types/doc-paths.ts'],+ ignores: ['public', 'types/doc-paths.ts', 'eslint-suppressions.json'],typescript: {overrides: {'ts/consistent-type-definitions': ['error', 'type'],@@ -66,42 +66,16 @@ export default antfu(sonarjs: sonar,},},- tailwind.configs['flat/recommended'],{- settings: {- tailwindcss: {- // These are the default values but feel free to customize- callees: ['classnames', 'clsx', 'ctl', 'cn', 'classNames'],- config: 'tailwind.config.js', // returned from `loadConfig()` utility if not provided- cssFiles: [- '**/*.css',- '!**/node_modules',- '!**/.*',- '!**/dist',- '!**/build',- '!**/.storybook',- '!**/.next',- '!**/.public',- ],- cssFilesRefreshRate: 5_000,- removeDuplicates: true,- skipClassAttribute: false,- whitelist: [],- tags: [], // can be set to e.g. ['tw'] for use in tw`bg-blue`- classRegex: '^class(Name)?$', // can be modified to support custom attributes. E.g. "^tw$" for `twin.macro`- },+ files: ['**/*.{ts,tsx}'],+ plugins: {+ tailwindcss,},rules: {- // due to 1k lines of tailwind config, these rule have performance issue- 'tailwindcss/no-contradicting-classname': 'off',- 'tailwindcss/enforces-shorthand': 'off',- 'tailwindcss/no-custom-classname': 'off',- 'tailwindcss/no-unnecessary-arbitrary-value': 'off',-- 'tailwindcss/no-arbitrary-value': 'off',- 'tailwindcss/classnames-order': 'warn',- 'tailwindcss/enforces-negative-arbitrary-values': 'warn',- 'tailwindcss/migration-from-tailwind-2': 'warn',+ 'tailwindcss/enforce-consistent-class-order': 'error',+ 'tailwindcss/no-duplicate-classes': 'error',+ 'tailwindcss/no-unnecessary-whitespace': 'error',+ 'tailwindcss/no-unknown-classes': 'warn',},},{diff --git a/web/package.json b/web/package.jsonindex c85de48b5d9..bde1135bdb0 100644--- a/web/package.json+++ b/web/package.json@@ -154,7 +154,7 @@"sharp": "0.33.5","sortablejs": "1.15.6","string-ts": "2.3.1",- "tailwind-merge": "2.6.0",+ "tailwind-merge": "2.6.1","tldts": "7.0.17","ufo": "1.6.3","use-context-selector": "2.0.0",@@ -166,7 +166,7 @@"devDependencies": {"@antfu/eslint-config": "7.2.0","@chromatic-com/storybook": "5.0.0",- "@eslint-react/eslint-plugin": "2.8.1",+ "@eslint-react/eslint-plugin": "2.9.4","@mdx-js/loader": "3.1.1","@mdx-js/react": "3.1.1","@next/bundle-analyzer": "16.1.5",@@ -180,7 +180,7 @@"@storybook/addon-themes": "10.2.0","@storybook/nextjs-vite": "10.2.0","@storybook/react": "10.2.0",- "@tanstack/eslint-plugin-query": "5.91.3",+ "@tanstack/eslint-plugin-query": "5.91.4","@tanstack/react-devtools": "0.9.2","@tanstack/react-form-devtools": "0.2.12","@tanstack/react-query-devtools": "5.90.2",@@ -213,11 +213,11 @@"cross-env": "10.1.0","esbuild": "0.27.2","eslint": "9.39.2",+ "eslint-plugin-better-tailwindcss": "4.1.1","eslint-plugin-react-hooks": "7.0.1",- "eslint-plugin-react-refresh": "0.4.26",+ "eslint-plugin-react-refresh": "0.5.0","eslint-plugin-sonarjs": "3.0.6",- "eslint-plugin-storybook": "10.2.1",- "eslint-plugin-tailwindcss": "3.18.2",+ "eslint-plugin-storybook": "10.2.6","husky": "9.1.7","jsdom": "27.3.0","jsdom-testing-mocks": "1.16.0",@@ -229,7 +229,7 @@"sass": "1.93.2","serwist": "9.5.4","storybook": "10.2.0",- "tailwindcss": "3.4.18",+ "tailwindcss": "3.4.19","tsx": "4.21.0","typescript": "5.9.3","uglify-js": "3.19.3",diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex d7ba2570d46..7024688aded 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -127,7 +127,7 @@ importers:version: 3.2.5'@tailwindcss/typography':specifier: 0.5.19'@tanstack/react-form':specifier: 1.23.7@@ -342,8 +342,8 @@ importers:specifier: 2.3.1version: 2.3.1tailwind-merge:- specifier: 2.6.0- version: 2.6.0+ specifier: 2.6.1+ version: 2.6.1tldts:specifier: 7.0.17version: 7.0.17@@ -368,13 +368,13 @@ importers:devDependencies:'@antfu/eslint-config':specifier: 7.2.0- version: 7.2.0(@eslint-react/[email protected]([email protected]([email protected]))([email protected]))(@next/[email protected])(@vue/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected])+ version: 7.2.0(@eslint-react/[email protected]([email protected]([email protected]))([email protected]))(@next/[email protected])(@vue/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected])'@chromatic-com/storybook':specifier: 5.0.0version: 5.0.0([email protected](@testing-library/[email protected])([email protected]([email protected]))([email protected]))'@eslint-react/eslint-plugin':- specifier: 2.8.1+ specifier: 2.9.4'@mdx-js/loader':specifier: 3.1.1@@ -415,8 +415,8 @@ importers:specifier: 10.2.0version: 10.2.0([email protected]([email protected]))([email protected])([email protected](@testing-library/[email protected])([email protected]([email protected]))([email protected]))([email protected])'@tanstack/eslint-plugin-query':- specifier: 5.91.3+ specifier: 5.91.4'@tanstack/react-devtools':specifier: 0.9.2version: 0.9.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])@@ -513,21 +513,21 @@ importers:eslint:specifier: 9.39.2version: 9.39.2([email protected])+ eslint-plugin-better-tailwindcss:+ specifier: 4.1.1+ version: 4.1.1([email protected]([email protected]))([email protected]([email protected])([email protected]))([email protected])eslint-plugin-react-hooks:specifier: 7.0.1version: 7.0.1([email protected]([email protected]))eslint-plugin-react-refresh:- specifier: 0.4.26- version: 0.4.26([email protected]([email protected]))+ specifier: 0.5.0+ version: 0.5.0([email protected]([email protected]))eslint-plugin-sonarjs:specifier: 3.0.6version: 3.0.6([email protected]([email protected]))eslint-plugin-storybook:- specifier: 10.2.1- version: 10.2.1([email protected]([email protected]))([email protected](@testing-library/[email protected])([email protected]([email protected]))([email protected]))([email protected])- eslint-plugin-tailwindcss:- specifier: 3.18.2+ specifier: 10.2.6+ version: 10.2.6([email protected]([email protected]))([email protected](@testing-library/[email protected])([email protected]([email protected]))([email protected]))([email protected])husky:specifier: 9.1.7version: 9.1.7@@ -562,8 +562,8 @@ importers:specifier: 10.2.0version: 10.2.0(@testing-library/[email protected])([email protected]([email protected]))([email protected])tailwindcss:- specifier: 3.4.18- version: 3.4.18([email protected])([email protected])+ specifier: 3.4.19+ version: 3.4.19([email protected])([email protected])tsx:specifier: 4.21.0version: 4.21.0@@ -1124,40 +1124,40 @@ packages:resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}- '@eslint-react/[email protected]':- resolution: {integrity: sha512-4D442lxeFvvd9PMvBbA621rfz/Ne8Kod8RW0/FLKO0vx+IOxm74pP6be1uU56rqL9TvoIHxjclBjfgXplEF+Yw==}+ '@eslint-react/[email protected]':+ resolution: {integrity: sha512-WI9iq5ePTlcWo0xhSs4wxLUC6u4QuBmQkKeSiXexkEO8C2p8QE7ECNIXhRVkYs3p3AKH5xTez9V8C/CBIGxeXA==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@eslint-react/[email protected]':- resolution: {integrity: sha512-zF73p8blyuX+zrfgyTtpKesichYzK+G54TEjFWtzagWIbnqQjtVscebL/eGep72oWzAOd5B04ACBvJ2hW4fp5g==}+ '@eslint-react/[email protected]':+ resolution: {integrity: sha512-Ob+Dip1vyR9ch9XL7LUAsGXc0UUf9Kuzn9BEiwOLT7l+cF91ieKeCvIzNPp0LmTuanPfQweJ9iDT9i295SqBZA==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@eslint-react/[email protected]':- resolution: {integrity: sha512-ZASOs8oTZJSiu1giue7V87GEKQvlKLfGfLppal6Rl+aKnfIEz+vartmjpH12pkFQZ9ESRyHzYbU533S6pEDoNg==}+ '@eslint-react/[email protected]':+ resolution: {integrity: sha512-7AOmozmfa0HgXY9O+J+iX3ciZfViz+W+jhRe2y0YqqkDR7PwV2huzhk/Bxq6sRzzf2uFHqoh/AQNZUhRJ3A05A==}engines: {node: '>=20.19.0'}- '@eslint-react/[email protected]':- resolution: {integrity: sha512-ob+SSDnTPnA5dhiWWJLfyHRLEzWnjilCsohgo5s9PPKF5b5bjxG+c/rwqhQwT3M9Ey83mGNdkrLzt00SOfr4pw==}+ '@eslint-react/[email protected]':+ resolution: {integrity: sha512-B1LOEUBuT4L7EmY3E9F7+K8Jdr9nAzx66USz4uWEtg8ZMn82E2O5TzOBPw6eeL0O9BoyLBoslZotXNQVazR2dA==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@eslint-react/[email protected]':- resolution: {integrity: sha512-NDmJBiMiPDXR6qeZzYOtiILHxWjYwBHxquQ/bMQkWcWK+1qF5LeD8UTRcWtBpZoMPi3sNBWwR3k2Sc5HWZpJ7g==}+ '@eslint-react/[email protected]':+ resolution: {integrity: sha512-PU7C4JzDZ6OffAWD+HwJdvzGSho25UPYJRyb4wZ/pDaI8QPTDj8AtKWKK69SEOQl2ic89ht1upjQX+jrXhN15w==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@eslint-react/[email protected]':- resolution: {integrity: sha512-iHIdEBz6kgW4dEFdhEjpy9SEQ6+d4RYg+WBzHg5J5ktT2xSQFi77Dq6Wtemik6QvvAPnYLRseQxgW+m+1rQlfA==}+ '@eslint-react/[email protected]':+ resolution: {integrity: sha512-Qiih6hT+D2vZmCbAGUooReKlqXjtb/g3SzYj2zNlci6YcWxsQB/pqhR0ayU2AOdW6U9YdeCCfPIwBBQ4AEpyBA==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0@@ -1208,6 +1208,10 @@ packages:resolution: {integrity: sha512-r18fEAj9uCk+VjzGt2thsbOmychS+4kxI14spVNibUO2vqKX7obOG+ymZljAwuPZl+S3clPGwCwTDtrdqTiY6Q==}engines: {node: ^20.19.0 || ^22.13.0 || >=24}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-s0f40zY7dlMp8i0Jf0u6l/aSswS0WRAgkhgETgiCJRcxIWb4S/Sp9uScKHWbkM3BnoFLbJbmOYk5AZUDFVxaLA==}+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}+'@eslint/[email protected]':resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -2867,10 +2871,14 @@ packages:peerDependencies:solid-js: 1.9.11- '@tanstack/[email protected]':- resolution: {integrity: sha512-5GMGZMYFK9dOvjpdedjJs4hU40EdPuO2AjzObQzP7eOSsikunCfrXaU3oNGXSsvoU9ve1Z1xQZZuDyPi0C1M7Q==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-8a+GAeR7oxJ5laNyYBQ6miPK09Hi18o5Oie/jx8zioXODv/AUFLZQecKabPdpQSLmuDXEBPKFh+W5DKbWlahjQ==}peerDependencies:eslint: ^8.57.0 || ^9.0.0+ typescript: ^5.0.0+ peerDependenciesMeta:+ typescript:+ optional: true'@tanstack/[email protected]':resolution: {integrity: sha512-e+HzSD49NWr4aIqJWtPPzmi+/phBJAP3nSPN8dvxwmJWqAxuB/cH138EcmCFf3+oA7j3BXvwvTY0I+8UweGPjQ==}@@ -3378,6 +3386,11 @@ packages:'@ungap/[email protected]':resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}+ '@valibot/[email protected]':+ resolution: {integrity: sha512-GE7DmSr1C2UCWPiV0upRH6mv0cCPsqYGs819fb6srCS1tWhyXrkGGe+zxUiwzn/L1BOfADH4sNjY/YHCuP8phQ==}+ peerDependencies:+ valibot: ^1.2.0+'@vitejs/[email protected]':resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==}engines: {node: ^20.19.0 || >=22.12.0}@@ -4443,6 +4456,19 @@ packages:peerDependencies:eslint: '*'+ resolution: {integrity: sha512-ctw461TGJi8iM0P01mNVjSW7jeUAdyUgmrrd59np5/VxqX50nayMbwKZkfmjWpP1PWOqlh4CSMOH/WW6ICWmJw==}+ engines: {node: ^20.19.0 || ^22.12.0 || >=23.0.0}+ peerDependencies:+ eslint: ^7.0.0 || ^8.0.0 || ^9.0.0+ oxlint: ^1.35.0+ tailwindcss: ^3.3.0 || ^4.1.17+ peerDependenciesMeta:+ eslint:+ optional: true+ oxlint:+ optional: true+resolution: {integrity: sha512-EW4eg/a7TKEhG0s5IEti72kh3YOTlnhfFNuctq5WnB1fst37/IHTd5OkD+vnlRf3opTvUcSRihAateP6bT5ZcA==}peerDependencies:@@ -4493,15 +4519,15 @@ packages:peerDependencies:eslint: ^9.0.0- resolution: {integrity: sha512-VAVs3cp/0XTxdjTeLePtZVadj+om+N1VNVy7hyzSPACfh5ncAicC0zOIc5MB15KUWCj8PoG/ZnVny0YqeubgRg==}+ resolution: {integrity: sha512-lRa3iN082cX3HRKdbKSESmlj+z4zMR10DughwagV7h+IOd3O07UGnYQhenH08GMSyLy1f2D6QJmKBLGbx2p20g==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- resolution: {integrity: sha512-YeZLGzcib6UxlY7Gf+3zz8Mfl7u+OoVj3MukGaTuU6zkm1XQMI8/k4o16bKHuWtUauhn7Udl1bLAWfLgQM5UFw==}+ resolution: {integrity: sha512-8hQArFHpXubT+i++8TwIL24vQ5b/ZcnVT3EFOSvy1TdBZw8NqrcFNBVqywQ6YUWX0utuPiTQgeJB0qnBF7gx4g==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0@@ -4513,27 +4539,34 @@ packages:peerDependencies:eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0- resolution: {integrity: sha512-fVj+hSzIe2I6HyPTf1nccMBXq72c4jbM3gk0T+szo/wewEF8/LgenjfquJoxHPpheb1fujFgdlo5HBhsilAX7Q==}+ resolution: {integrity: sha512-Ow9ikJ49tDjeTaO2wfUYlSlVBsbG8AZVqoVFu4HH69FZe6I5LEdjZf/gdXnN2W+/JAy7Ru5vYQ8H8LU3tTZERg==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- resolution: {integrity: sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==}+ resolution: {integrity: sha512-ZYvmh7VfVgqR/7wR71I3Zl6hK/C5CcxdWYKZSpHawS5JCNgE4efhQWg/+/WPpgGAp9Ngp/rRZYyaIwmPQBq/lA==}peerDependencies:- eslint: '>=8.40'+ eslint: '>=9'- resolution: {integrity: sha512-NYsZKW1aJZ2XZuYTPzbwYLShvGcuXKRV/5TW61VO56gik/btil4Snt5UtyxshHbvT/zXx/Z+QsHul51/XM4/Qw==}+ resolution: {integrity: sha512-RwBYSLkcGXQV6SQYABdHLrafUmpfdPBYsAa/kvg6smqEn+/vPKSk0I+uAuzkmiw4y4KXW94Q9rlIdJlzOMdJfQ==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- resolution: {integrity: sha512-4IpCMrsb63AVEa9diOApIm+T3wUGIzK+EB5vyYocO31YYPJ16+R7Fh4lV3S3fOuX1+aQ+Ad4SE0cYuZ2pF2Tlg==}+ resolution: {integrity: sha512-/k++qhGoYtMNZrsQT+M08fCGi/VurL1fE/LNiz2fMwOIU7KjXD9N0kGWPFdIAISnYXGzOg53O5WW/mnNR78emQ==}+ engines: {node: '>=20.19.0'}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0+ typescript: '>=4.8.4 <6.0.0'++ resolution: {integrity: sha512-a078MHeM/FdjRu3KJsFX+PCHewZyC77EjAO7QstL/vvwjsFae3PCWMZ8Q4b+mzUsT4FkFxi5mEW43ZHksPWDFw==}engines: {node: '>=20.19.0'}peerDependencies:eslint: ^8.57.0 || ^9.0.0@@ -4550,17 +4583,11 @@ packages:peerDependencies:eslint: ^8.0.0 || ^9.0.0- resolution: {integrity: sha512-5+V+dlzTuZfNKUD8hPbLvCVtggcWfI2lDGTpiq0AENrHeAgcztj17wwDva96lbg/sAG20uX71l8HQo3s/GmpHw==}+ resolution: {integrity: sha512-Ykf0hDS97oJlQel21WG+SYtGnzFkkSfifupJ92NQtMMSMLXsWm4P0x8ZQqu9/EQa+dUkGoj9EWyNmmbB/54uhA==}peerDependencies:eslint: '>=8'- storybook: ^10.2.1-- resolution: {integrity: sha512-QbkMLDC/OkkjFQ1iz/5jkMdHfiMu/uwujUHLAJK5iwNHD8RTxVTlsUezE0toTZ6VhybNBsk+gYGPDq2agfeRNA==}- engines: {node: '>=18.12.0'}- peerDependencies:- tailwindcss: ^3.4.0+ storybook: ^10.2.6resolution: {integrity: sha512-GlCBX+R313RvFY2Tj0ZmvzCEv8FDp1z2itvTFTV4bW/Bkbl3xEp9inWNsRWH3SiDUlxo8Pew31ILEp/3J0WxaA==}@@ -5585,6 +5612,9 @@ packages:resolution: {integrity: sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==}+ resolution: {integrity: sha512-786vq1+4079JSeu2XdcDjrhi/Ry7BWtjDl9WtGPWLiIHb2T66GvIVflZTBoSNZ5JqTtJGYEVMuFA/lbQlMOyDQ==}+resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==}@@ -6850,11 +6880,15 @@ packages:resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}engines: {node: '>=20'}- resolution: {integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==}+ resolution: {integrity: sha512-FzD187HuFIZEyeR7Xy6sJbJll2d4SybS90satC8SKIuaNRC05CxMvdzN7BUsfDQffcnabckRM5OIcfArjsZ0mg==}+ engines: {node: '>=18.18'}- resolution: {integrity: sha512-6A2rnmW5xZMdw11LYjhcI5846rt9pbLSabY5XPxo+XWdxwZaFEn47Go4NzFiHu9sNNmr/kXivP1vStfvMaK1GQ==}+ resolution: {integrity: sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==}++ resolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==}engines: {node: '>=14.0.0'}hasBin: true@@ -7003,6 +7037,10 @@ packages:typescript:optional: true+ resolution: {integrity: sha512-zbem3rfRS8BgeNK50Zz5SIQgXzLafiHjOwUAvk/38/o1jHn/V5QAgVUcz884or7WYcPaH3N2CIfUc2u0ul7UcA==}+ engines: {node: '>=10.13.0'}+resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==}engines: {node: '>=6'}@@ -7171,6 +7209,14 @@ packages:resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}hasBin: true+ resolution: {integrity: sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg==}+ peerDependencies:+ typescript: '>=5'+ peerDependenciesMeta:+ typescript:+ optional: true+resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==}@@ -7694,7 +7740,7 @@ snapshots:idb: 8.0.3tslib: 2.8.1- '@antfu/[email protected](@eslint-react/[email protected]([email protected]([email protected]))([email protected]))(@next/[email protected])(@vue/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected])':+ '@antfu/[email protected](@eslint-react/[email protected]([email protected]([email protected]))([email protected]))(@next/[email protected])(@vue/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])([email protected])':dependencies:'@antfu/install-pkg': 1.1.0'@clack/prompts': 0.11.0@@ -7734,10 +7780,10 @@ snapshots:vue-eslint-parser: 10.2.0([email protected]([email protected]))yaml-eslint-parser: 2.0.0optionalDependencies:'@next/eslint-plugin-next': 16.1.6eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))- eslint-plugin-react-refresh: 0.4.26([email protected]([email protected]))+ eslint-plugin-react-refresh: 0.5.0([email protected]([email protected]))transitivePeerDependencies:- '@eslint/json'- '@vue/compiler-sfc'@@ -8137,9 +8183,9 @@ snapshots:'@eslint-community/[email protected]': {}dependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/types': 8.54.0'@typescript-eslint/typescript-estree': 8.54.0([email protected])@@ -8149,12 +8195,12 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0@@ -8164,30 +8210,31 @@ snapshots:transitivePeerDependencies:- supports-color- '@eslint-react/[email protected]': {}+ '@eslint-react/[email protected]': {}dependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0eslint: 9.39.2([email protected])- eslint-plugin-react-naming-convention: 2.8.1([email protected]([email protected]))([email protected])+ eslint-plugin-react-naming-convention: 2.9.4([email protected]([email protected]))([email protected])ts-api-utils: 2.4.0([email protected])typescript: 5.9.3transitivePeerDependencies:- supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4eslint: 9.39.2([email protected])ts-pattern: 5.9.0@@ -8196,11 +8243,11 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0@@ -8258,6 +8305,11 @@ snapshots:dependencies:'@types/json-schema': 7.0.15+ '@eslint/[email protected]':+ dependencies:+ mdn-data: 2.23.0+ source-map-js: 1.2.1+'@eslint/[email protected]':dependencies:ajv: 6.12.6@@ -9902,10 +9954,10 @@ snapshots:dependencies:'@swc/counter': 0.1.3dependencies:postcss-selector-parser: 6.0.10- tailwindcss: 3.4.18([email protected])([email protected])+ tailwindcss: 3.4.19([email protected])([email protected])'@tanstack/[email protected]':dependencies:@@ -9957,13 +10009,14 @@ snapshots:- csstype- utf-8-validatedependencies:eslint: 9.39.2([email protected])+ optionalDependencies:+ typescript: 5.9.3transitivePeerDependencies:- supports-color- - typescript'@tanstack/[email protected]':dependencies:@@ -10593,6 +10646,10 @@ snapshots:'@ungap/[email protected]': {}+ dependencies:+ valibot: 1.2.0([email protected])+'@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.28.6@@ -11747,6 +11804,22 @@ snapshots:dependencies:eslint: 9.39.2([email protected])+ [email protected]([email protected]([email protected]))([email protected]([email protected])([email protected]))([email protected]):+ dependencies:+ '@eslint/css-tree': 3.6.8+ '@valibot/to-json-schema': 1.5.0([email protected]([email protected]))+ enhanced-resolve: 5.18.4+ jiti: 2.6.1+ synckit: 0.11.12+ tailwind-csstree: 0.1.4+ tailwindcss: 3.4.19([email protected])([email protected])+ tsconfig-paths-webpack-plugin: 4.2.0+ valibot: 1.2.0([email protected])+ optionalDependencies:+ eslint: 9.39.2([email protected])+ transitivePeerDependencies:+ - typescript+dependencies:'@es-joy/jsdoccomment': 0.78.0@@ -11835,37 +11908,35 @@ snapshots:yaml: 2.8.2yaml-eslint-parser: 2.0.0dependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0compare-versions: 6.1.1eslint: 9.39.2([email protected])- string-ts: 2.3.1ts-pattern: 5.9.0typescript: 5.9.3transitivePeerDependencies:- supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0eslint: 9.39.2([email protected])- string-ts: 2.3.1ts-pattern: 5.9.0typescript: 5.9.3transitivePeerDependencies:@@ -11882,13 +11953,13 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0@@ -11901,35 +11972,47 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ eslint: 9.39.2([email protected])+dependencies:+ '@typescript-eslint/types': 8.54.0eslint: 9.39.2([email protected])+ ts-pattern: 5.9.0+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0birecord: 0.1.1eslint: 9.39.2([email protected])- string-ts: 2.3.1ts-pattern: 5.9.0typescript: 5.9.3transitivePeerDependencies:- supports-colordependencies:- '@eslint-react/eff': 2.8.1+ '@eslint-react/eff': 2.9.4'@typescript-eslint/scope-manager': 8.54.0'@typescript-eslint/types': 8.54.0@@ -11937,7 +12020,6 @@ snapshots:compare-versions: 6.1.1eslint: 9.39.2([email protected])- string-ts: 2.3.1ts-api-utils: 2.4.0([email protected])ts-pattern: 5.9.0typescript: 5.9.3@@ -11969,21 +12051,15 @@ snapshots:semver: 7.7.3typescript: 5.9.3- [email protected]([email protected]([email protected]))([email protected](@testing-library/[email protected])([email protected]([email protected]))([email protected]))([email protected]):+ [email protected]([email protected]([email protected]))([email protected](@testing-library/[email protected])([email protected]([email protected]))([email protected]))([email protected]):dependencies:eslint: 9.39.2([email protected])storybook: 10.2.0(@testing-library/[email protected])([email protected]([email protected]))([email protected])transitivePeerDependencies:- supports-color- typescript- dependencies:- fast-glob: 3.3.3- postcss: 8.5.6- tailwindcss: 3.4.18([email protected])([email protected])-dependencies:'@eslint/core': 1.0.1@@ -13250,6 +13326,8 @@ snapshots:+ [email protected]: {}+@@ -14863,9 +14941,11 @@ snapshots:- [email protected]: {}+ [email protected]: {}+ [email protected]: {}+dependencies:'@alloc/quick-lru': 5.2.0arg: 5.0.2@@ -15020,6 +15100,13 @@ snapshots:optionalDependencies:typescript: 5.9.3+ dependencies:+ chalk: 4.1.2+ enhanced-resolve: 5.18.4+ tapable: 2.3.0+ tsconfig-paths: 4.2.0+dependencies:json5: 2.2.3@@ -15185,6 +15272,10 @@ snapshots:+ optionalDependencies:+ typescript: 5.9.3+dependencies:'@types/unist': 3.0.3diff --git a/web/utils/classnames.spec.ts b/web/utils/classnames.spec.tsdeleted file mode 100644index 1b8f487856c..00000000000--- a/web/utils/classnames.spec.ts+++ /dev/null@@ -1,157 +0,0 @@-/**- * Test suite for the classnames utility function- * This utility combines the classnames library with tailwind-merge- * to handle conditional CSS classes and merge conflicting Tailwind classes- */-import { cn } from './classnames'--describe('classnames', () => {- /**- * Tests basic classnames library features:- * - String concatenation- * - Array handling- * - Falsy value filtering- * - Object-based conditional classes- */- it('classnames libs feature', () => {- expect(cn('foo')).toBe('foo')- expect(cn('foo', 'bar')).toBe('foo bar')- expect(cn(['foo', 'bar'])).toBe('foo bar')-- expect(cn(undefined)).toBe('')- expect(cn(null)).toBe('')- expect(cn(false)).toBe('')-- expect(cn({- foo: true,- bar: false,- baz: true,- })).toBe('foo baz')- })-- /**- * Tests tailwind-merge functionality:- * - Conflicting class resolution (last one wins)- * - Modifier handling (hover, focus, etc.)- * - Important prefix (!)- * - Custom color classes- * - Arbitrary values- */- it('tailwind-merge', () => {- /* eslint-disable tailwindcss/classnames-order */- expect(cn('p-0')).toBe('p-0')- expect(cn('text-right text-center text-left')).toBe('text-left')- expect(cn('pl-4 p-8')).toBe('p-8')- expect(cn('m-[2px] m-[4px]')).toBe('m-[4px]')- expect(cn('m-1 m-[4px]')).toBe('m-[4px]')- expect(cn('overflow-x-auto hover:overflow-x-hidden overflow-x-scroll')).toBe(- 'hover:overflow-x-hidden overflow-x-scroll',- )- expect(cn('h-10 h-min')).toBe('h-min')- expect(cn('bg-grey-5 bg-hotpink')).toBe('bg-hotpink')-- expect(cn('hover:block hover:inline')).toBe('hover:inline')-- expect(cn('font-medium !font-bold')).toBe('font-medium !font-bold')- expect(cn('!font-medium !font-bold')).toBe('!font-bold')-- expect(cn('text-gray-100 text-primary-200')).toBe('text-primary-200')- expect(cn('text-some-unknown-color text-components-input-bg-disabled text-primary-200')).toBe('text-primary-200')- expect(cn('bg-some-unknown-color bg-components-input-bg-disabled bg-primary-200')).toBe('bg-primary-200')-- expect(cn('border-t border-white/10')).toBe('border-t border-white/10')- expect(cn('border-t border-white')).toBe('border-t border-white')- expect(cn('text-3.5xl text-black')).toBe('text-3.5xl text-black')- })-- /**- * Tests the integration of classnames and tailwind-merge:- * - Object-based conditional classes with Tailwind conflict resolution- */- it('classnames combined with tailwind-merge', () => {- expect(cn('text-right', {- 'text-center': true,- })).toBe('text-center')-- expect(cn('text-right', {- 'text-center': false,- })).toBe('text-right')- })-- /**- * Tests handling of multiple mixed argument types:- * - Strings, arrays, and objects in a single call- * - Tailwind merge working across different argument types- */- it('multiple mixed argument types', () => {- expect(cn('foo', ['bar', 'baz'], { qux: true, quux: false })).toBe('foo bar baz qux')- expect(cn('p-4', ['p-2', 'm-4'], { 'text-left': true, 'text-right': true })).toBe('p-2 m-4 text-right')- })-- /**- * Tests nested array handling:- * - Deep array flattening- * - Tailwind merge with nested structures- */- it('nested arrays', () => {- expect(cn(['foo', ['bar', 'baz']])).toBe('foo bar baz')- expect(cn(['p-4', ['p-2', 'text-center']])).toBe('p-2 text-center')- })-- /**- * Tests empty input handling:- * - Empty strings, arrays, and objects- * - Mixed empty and non-empty values- */- it('empty inputs', () => {- expect(cn('')).toBe('')- expect(cn([])).toBe('')- expect(cn({})).toBe('')- expect(cn('', [], {})).toBe('')- expect(cn('foo', '', 'bar')).toBe('foo bar')- })-- /**- * Tests number input handling:- * - Truthy numbers converted to strings- * - Zero treated as falsy- */- it('numbers as inputs', () => {- expect(cn(1)).toBe('1')- expect(cn(0)).toBe('')- expect(cn('foo', 1, 'bar')).toBe('foo 1 bar')- })-- /**- * Tests multiple object arguments:- * - Object merging- * - Tailwind conflict resolution across objects- */- it('multiple objects', () => {- expect(cn({ foo: true }, { bar: true })).toBe('foo bar')- expect(cn({ foo: true, bar: false }, { bar: true, baz: true })).toBe('foo bar baz')- expect(cn({ 'p-4': true }, { 'p-2': true })).toBe('p-2')- })-- /**- * Tests complex edge cases:- * - Mixed falsy values- * - Nested arrays with falsy values- * - Multiple conflicting Tailwind classes- */- it('complex edge cases', () => {- expect(cn('foo', null, undefined, false, 'bar', 0, 1, '')).toBe('foo bar 1')- expect(cn(['foo', null, ['bar', undefined, 'baz']])).toBe('foo bar baz')- expect(cn('text-sm', { 'text-lg': false, 'text-xl': true }, 'text-2xl')).toBe('text-2xl')- })-- /**- * Tests important (!) modifier behavior:- * - Important modifiers in objects- * - Conflict resolution with important prefix- */- it('important modifier with objects', () => {- expect(cn({ '!font-medium': true }, { '!font-bold': true })).toBe('!font-bold')- expect(cn('font-normal', { '!font-bold': true })).toBe('font-normal !font-bold')- })-})