Skip to content

Cinematic login, /welcome (founder) and /join (member) screens #1403

Backlog

Description

@athvin

Why

The owner wants the new front door to feel like the cinematic marketing site, so that signing in and setting up reads as one continuous story with dupezero.com.

The two first-time paths also have to feel different within the first second, so nobody wonders whether they're in the right place:

  • /welcome (founder): "build something new". Empty ground, and records arriving.
  • /join (member): "step into a living workspace". The org's name, and its records making room.

Design decision, recorded here. The owner chose on 2026-11-28 to extend the marketing visual exception (brand blue, the Meridian Supply story, scenes) to the (auth) pages, /welcome, /join and the tour intro card in #1404. Coachmarks inside the app stay grayscale (#1405). This ticket updates the rules so the exception is written down and not just assumed.

What the user sees

  • /login. Meridian Supply's scattered records drift together behind the sign-in card and settle into one golden record. It plays once, with Replay.

    • The primary button is "Continue with Google".
    • "Use email and password" opens the existing form.
    • Each ?error= shows its one-line message.
  • /welcome has five beats. Each advances only on a real event:

    1. "Signed in as [email protected]". The identity card arrives.
    2. Name your workspace, with a live slug preview under the field.
    3. "What do you deduplicate?" Two choices, People or Accounts, each drawn with the record marks.
    4. The provisioning scene. Each piece lands only when /api/auth/signup/status reports that phase: the registry row, config, dataset, keys and active. Nothing is faked.
    5. "Your workspace is ready", leading into the founder tour offer (First-run state and the tour offer, per user per workspace #1404).
  • /join has four beats:

    1. The invite card: the workspace's name, the role, and who invited you.
    2. One line on what that role can do:
      • Viewer: "see results and records".
      • Steward: "review and decide matches".
      • Admin: "configure, invite and manage keys".
    3. Join.
    4. Land in the workspace, leading into the member tour offer.

    The workspace's existing records shuffle to make a space for the newcomer.

How

  1. Scope the tokens. The pages render inside a .marketing-site wrapper, so story.css tokens apply. Do not put brand tokens into globals.css.
  2. Reuse, don't rebuild.
    • ScenePlayback (frontend/src/components/marketing/scene/scene-playback.tsx) for the login poster.
    • marks.tsx and meridian.ts for records and values.
    • The click-driven clock pattern from demo/audit-story.tsx for beats that advance on events.
    • Follow the stageshow skill's workflow: plan, copy the closest gold example, build with kit/, rehearse.
  3. Drive the motion from state, not from time. Each /welcome beat is a state; transitions are triggered by user input or a status-phase change. If a phase arrives before its animation would finish, jump to it; never queue animations up.
  4. Craft rules from the house traps. These are mandatory:
    • About 8 keyframes or fewer per element, and only transform and opacity. WebKit re-resolves keyframes on every frame (flow-keyframes.ts).
    • Never swap in-flow elements at hydration. Lay interactive controls over the text instead (landing-page skill).
    • Every beat has a reduced-motion poster that reads on its own.
    • At 390px wide, a compact layout with no horizontal scroll.
    • Every target is 44px.
    • Only --foreground text may take opacity.
  5. Login page. Keep the existing Card, Input and Button form, moved behind the disclosure. Don't fork it.
  6. Marketing CTAs. "Get started" and "Try it" go to /login?intent=signup. With intent=signup, the login headline reads "Create your workspace".
  7. Update the written rules in this PR.
    • Name the new exception's scope in the landing-page skill, the frontend-design-system skill (§3.3 exceptions) and CLAUDE.md's paragraph on the marketing exceptions.
    • Change docs/feature-inventory.md:158 ("There is no sign-up") to describe Google signup.
  8. Rehearsal. scripts/film.mjs --gate at the shown width and at 390, ending in rehearsal passed. Add REHEARSAL.md next to the components.

Acceptance criteria

  • The axe SCREENS sweep covers /login (anonymous) and every /welcome and /join beat, with no serious or critical violations.
  • Visual baselines, scoped to sections and never fullPage, in both themes, for: the login poster, each /welcome beat poster, and /join.
  • Reduced motion: no animation runs, and every beat's poster is visible and complete.
  • The whole flow can be completed by keyboard alone, and keyboard-triggered steps don't animate (motion-guard.spec.ts).
  • WebKit (mobile-safari) holds 60fps through the login scene and the provisioning scene, measured with the frame probe used on the cinematic epic.
  • The provisioning scene never shows a phase before the status endpoint reports it. A test stubs a slow phase and asserts the scene waits.
  • At 390px there's no horizontal scroll (scrollWidth <= innerWidth).
  • The landing-page, frontend-design-system and CLAUDE.md exception wording has been updated, and make skills-check passes.
  • make frontend passes.

Out of scope

Depends on

#1400 (/join logic) and #1402 (status endpoint). The login restyle can start after #1399.

Where to start

  • frontend/src/components/marketing/scene/: scene-playback.tsx, marks.tsx, meridian.ts, scene.css.
  • frontend/src/components/marketing/demo/audit-story.tsx.
  • frontend/src/components/marketing/story.css.
  • frontend/src/app/(auth)/login/page.tsx.
  • Skills: stageshow, landing-page, frontend-design-system (references/motion.md), frontend-testing.

Estimate: 1.5 engineer-weeks.


Part of the E31 epic (#1396) (linked as parent). Decisions recorded 2026-11-28 with the owner.

Activity

  1. added
    post-mvp
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    post-mvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions