refactor(web): consolidate query/mutation guidance and deprecate use-base wrappers (#33456)

Signed-off-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
yyh
2026-03-16 13:38:29 +08:00
committed by GitHub
parent 3920d67b8e
commit 7ac482d776
11 changed files with 312 additions and 209 deletions

View File

@@ -8,6 +8,10 @@
- In new or modified code, use only overlay primitives from `@/app/components/base/ui/*`.
- Do not introduce deprecated overlay imports from `@/app/components/base/*`; when touching legacy callers, prefer migrating them and keep the allowlist shrinking (never expanding).
## Query & Mutation (Mandatory)
- `frontend-query-mutation` is the source of truth for Dify frontend contracts, query and mutation call-site patterns, conditional queries, invalidation, and mutation error handling.
## Automated Test Generation
- Use `./docs/test.md` as the canonical instruction set for generating frontend automated tests.