Skip to content

feat: transition type annotations on connections#18

Merged
trmquang93 merged 1 commit intomainfrom
feat/transition-annotations
Apr 1, 2026
Merged

feat: transition type annotations on connections#18
trmquang93 merged 1 commit intomainfrom
feat/transition-annotations

Conversation

@trmquang93
Copy link
Copy Markdown
Collaborator

Summary

  • Expands transition type options (adds fullScreenCover, fade, slideUp, slideLeft) and extracts them to constants.js as a single source of truth — eliminates duplicate hardcoded <option> lists in ConnectionEditModal and HotspotModal
  • Canvas connection badges now show a distinct SVG mini-icon per transition type alongside the label, making types visually distinguishable without hovering
  • navigation.md now outputs human-readable transition labels (e.g. "Full-screen cover" instead of fullScreenCover)
  • build-guide.md includes a Transition Types table with platform-specific implementation patterns for all 4 frameworks (SwiftUI, React Native, Flutter, Jetpack Compose), and expands the auto-platform path with per-type guidance

No file format change — transitionType field already exists and importFlow.js already backfills it for older files.

Closes backlog item 1.4 — Animation & Transition Annotations.

Test plan

  • npm run lint && npm test — all 292 tests pass, no lint errors
  • Open editor, edit a connection — verify dropdown shows all 10 transition types
  • Set a non-default transition on a connection — verify canvas badge shows icon + label
  • Generate instructions with platform set to swiftui — verify build-guide.md contains ### Transition Types table with .sheet(), .fullScreenCover(), etc.
  • Generate instructions with platform auto — verify step 7 lists all transition types
  • Verify navigation.md All Connections table shows "Full-screen cover" not fullScreenCover

Exposes the existing transitionType field with an expanded set of
transition options (push, modal, fullScreenCover, replace, pop, tab,
fade, slideUp, slideLeft, custom) in both ConnectionEditModal and
HotspotModal. Extracts TRANSITION_TYPES and TRANSITION_LABELS to
constants.js as a single source of truth.

Canvas connection badges now render a distinct SVG icon alongside the
transition label so types are visually distinguishable at a glance.
Navigation.md outputs human-readable transition labels. Build-guide.md
includes a platform-specific Transition Types table for all four
supported frameworks (SwiftUI, React Native, Flutter, Jetpack Compose)
as well as expanded per-type guidance in the auto-platform path.

No file format change — transitionType field already exists and
importFlow.js already backfills it.
@trmquang93 trmquang93 merged commit 0df3e21 into main Apr 1, 2026
1 check passed
@github-actions github-actions bot deleted the feat/transition-annotations branch April 1, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant