Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Frontend code review guidance from the Dify LLM application development platform repository.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/dify-invariants.md
1# Dify Invariants23Use these stable Dify-specific runtime rules in addition to the generic review packs.45This file is not a place for active feature notes. Do not add rules for one branch, one PR, or a short-lived product decision such as a specific agent-v2, plugin, model-provider, or onboarding task. Keep a rule here only when all of these are true:67- It is a stable Dify runtime invariant.8- Generic React, TypeScript, accessibility, dify-ui, query, or performance rules would not catch it.9- The failure mode is concrete enough to produce a file-line review finding.10- The rule is likely to remain valid across normal feature work.1112## Workflow Nodes And RAG Pipe1314Flag:1516- Node components under `web/app/components/workflow/nodes/[nodeName]/node.tsx` importing workflow store hooks that are unavailable in RAG Pipe template rendering.17- Node UI relying on provider context that is not mounted in every rendering surface.18- Store reads in render where React Flow `useNodes` / `useEdges` provide the actual node/edge source.1920Known failure mode: workflow node components can also render while creating a RAG Pipe from a template. In that context there may be no workflowStore provider, causing a blank screen.2122Prefer React Flow hooks for node/edge UI consumption. Use store APIs only where the provider is guaranteed and the code path is workflow-only.23