dify/web/app/components/step-by-step-tour
yyh 66a545fc6d
refactor: centralize deployment edition in system features (#39454)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: GareArc <garethcxy@dify.ai>
2026-07-24 07:15:02 +00:00
..
__tests__ refactor: centralize deployment edition in system features (#39454) 2026-07-24 07:15:02 +00:00
analytics.ts
coachmark.tsx
dropdown-menu.ts
floating-widget.tsx
mount.tsx refactor: centralize deployment edition in system features (#39454) 2026-07-24 07:15:02 +00:00
README.md
state.ts refactor: centralize deployment edition in system features (#39454) 2026-07-24 07:15:02 +00:00
storage.ts
target-registry.ts
tasks.ts
types.ts
use-coachmark-position.ts
use-target-rect.ts
use-tour-target.ts

Step-by-step Tour

This directory owns the cross-route Step-by-step Tour capability.

  • state.ts owns the server query graph, the in-memory tour session, and domain commands.
  • storage.ts owns only the persisted shell preference.
  • mount.tsx composes the checklist, coachmarks, navigation, and analytics.
  • Route consumers resolve only the guide branch and targets that depend on their page data.

Server state remains canonical in the TanStack Query cache. Components consume narrow derived atoms and write-only commands instead of a combined account-state facade.