Skip to content

Onboarding: connection terminal and flags table#7856

Draft
talissoncosta wants to merge 11 commits into
mainfrom
feat/onboarding-terminal-flags-table-7766
Draft

Onboarding: connection terminal and flags table#7856
talissoncosta wants to merge 11 commits into
mainfrom
feat/onboarding-terminal-flags-table-7766

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Contributes to #7766. Stacked on #7765 (renders into the single-page flow).

  • Verify terminal — a dark sdk-console whose checklist ticks as you act: copy the install snippet, copy the wire snippet, then the first evaluation flips the badge to LIVE and prints a connection receipt. Prop-driven, reduced-motion aware.
  • Flags table — the "Your flags" card reusing the product FeatureName / Tag / Switch, with a real Development toggle (updateFeatureState) and the flag's real tags. Bootstrap attaches an Onboarding tag so the badge shows out of the box.
  • Connection status routed through a single useOnboardingConnection seam, so the real first-evaluation signal (Onboarding: flag gating, resource setup and connection signal #7767) is a one-file change. A ?connected query param exercises the connected UI now.
  • Stories for both components.

How did you test this code?

  • StorybookOnboardingTerminal (Listening / InstallCopied / SnippetsCopied / Connected) and OnboardingFlagsTable (Connected / Waiting / Off / WithTag).
  • /getting-started — copied the install + wire snippets and watched the checklist tick; toggled the Dev flag and confirmed it persists; visited /getting-started?connected to see the LIVE / connected state.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Jun 23, 2026 8:17pm
flagsmith-frontend-staging Ready Ready Preview, Comment Jun 23, 2026 8:17pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Jun 23, 2026 8:17pm

Request Review

talissoncosta and others added 10 commits June 23, 2026 16:29
A prop-driven sdk console: amber LISTENING with an unchecked checklist and a
blinking cursor while waiting, green LIVE with a connection receipt once
connected. Always dark and reduced-motion aware, with stories for both states.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The 'Your flags' card reusing the product FeatureName / Tag / Switch, prop
driven with waiting and connected states. Connected lifts it with the accent
border and glow; waiting dims it. Stories cover the states and the toggle.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
#7766)

OnboardingFlow renders both below the connect panel. useOnboardingFlag resolves
the demo flag's Development feature state and toggles it via updateFeatureState
(persisted, no simulated output). Status is the pre-connection state for now;
the real first-evaluation signal lands in #7767.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…e glow (#7766)

Use --radius-xl / --radius-full instead of literal radii, and bring back the
mock's purple accent border + glow on the connected flags card, derived from
--color-border-action via oklch alpha so it still tracks the theme.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…nnection (#7766)

One seam for the verify connection status so #7767 only swaps the hook body.
Stubbed to the pre-connection state today, with a ?connected query-param escape
hatch to exercise the connected UI in the live flow before the real signal
exists.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Resolve the demo flag's tags (useGetTagsQuery) and pass them through to the
flags table, so a tag attached to the flag appears in the onboarding table
automatically rather than being hardcoded. The mock's 'Onboarding' tag shows
once such a tag is attached to the flag (resource setup / #7767).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…rap (#7766)

Best-effort find-or-create the 'Onboarding' tag and attach it to the demo flag,
so the flags table shows the badge from the design out of the box. ensureFlag
now returns the flag; tagging is wrapped so it never blocks the bootstrap.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ippets (#7766)

The terminal is now per-step (installCopied / snippetCopied / connected) instead
of a single status: copying the install or wire snippet ticks its checklist item
and the active step shows amber, the first evaluation flips it to LIVE. CodeCard
gains an onCopy that the connect panel threads up to the page.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…7766)

The toggle cell was 56px while the ENABLED header column is 96px (the design's
40px action cell filled the gap, which we dropped), so the toggle sat right of
the header. Widen the toggle cell to match, lining it up under ENABLED.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…#7766)

The Onboarding tag's colour was an off-palette hex; switch to a green from the
product tag palette (Constants.tagColors) so it's consistent with how tags are
coloured everywhere else.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Chrome offered contact autofill on the ghost inline-edit field, dropping a
person/chevron icon that overlapped the trailing edit pencil. A ghost field
is never a contact or credential input, so opt out of autofill and the
password-manager overlays (1Password, LastPass).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant