Skip to content

feat(growth): "Invite your crew" — invite screen, onboarding step, drawer and home entry points (#1398) - #1430

Merged
thinkclay merged 3 commits into
mainfrom
feat/invite-your-crew
Nov 24, 2026
Merged

thinkclay merged 3 commits into
mainfrom
feat/invite-your-crew

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #1398. Part of epic #1399. Depends on Scaffald/sdk#43: the submodule points at that branch, and I'll re-point it to the SDK's main once that merges.

What changes

/dashboard/invite (ROUTES.DASHBOARD.INVITE):

  • Your personal link, with Share (the OS share sheet on native, navigator.share or copy on web) and Copy.
  • Invite people. You type or paste emails and phone numbers, one per line or separated by commas or semicolons; names are allowed (Sam <sam@…>, Pat 555-…).
    • It shows how many entries it can read before sending, and anything it can't read stays in the box to fix.
    • Each result says what happened: emailed; a Text invite button for phones, which opens the inviter's own messaging app (Scaffald never texts them); or why it was skipped or not sent, including "Email invites aren't switched on yet".
  • Your invites: who you invited and whether they've joined or set up a profile, with the joined count.
  • ?from=onboarding retitles the page "One last thing" and adds Skip for now.

Entry points:

  • Onboarding now ends on this page for people who ticked Worker; everyone else still goes to the dashboard.
  • A footer row in the desktop drawer and an item in the phone account sheet.
  • A block in the second column of the worker home.

Plumbing:

.radium/scaffald-sdk.md fix: its examples imported useScaffaldJobsClient from @scaffald/sdk/react, which doesn't export it, so typecheck fails. The 54 existing hook files use ./jobs-sdk-context, and the doc now says so (per CLAUDE.md, a misleading .radium doc gets fixed in the same PR).

Not in this PR:

Tested

  • 25 scf-core unit tests for invites: the contact parser (quoted names with commas, Outlook-style Name <email>, junk), and the screen's link, counts, request, results, status list and disabled state.

  • Drawer and dashboard suites are green. The full scf-core:test has 1,727 passing; the only failures are the same 13 as on main, in MapStateProvider and clearAuthStorage, from localStorage being unavailable under my local Node 26.

  • App route tests and check-hardcoded-routes --all pass, and tsc is clean for scf-core and the app.

  • Browser check (headless) against this worktree's dev server, with the API running from this branch and a NevarMail stub, signed in as the local seed user:

    • the drawer row and the home block are present;
    • the link card shows /i/<code>;
    • a mixed list produced: an email sent, a Text invite button for the phone, the existing member skipped, and the unreadable entry kept in the box;
    • the status list fills in;
    • on the onboarding variant, Skip for now goes to the dashboard;
    • the phone-width layout renders.

    Test invites were deleted afterwards.

Pushed with SKIP_PREPUSH=1: the shared local edge runtime still serves another session's worktree. CI is the check.

🤖 Generated with Claude Code

…awer and home entry points (#1398)

/dashboard/invite (ROUTES.DASHBOARD.INVITE):
- Your personal link with Share (OS share sheet on native, navigator.share
  or copy on web) and Copy.
- "Invite people": type or paste emails and phone numbers, one per line or
  comma/semicolon separated, names allowed ("Sam <sam@…>", "Pat 555-…").
  Shows how many it can read before sending; what it can't read stays in
  the box. Sends through the SDK's new invites resource; each result says
  what happened: emailed, a "Text invite" button for phones (opens the
  inviter's own messaging app — Scaffald never texts them), or why it was
  skipped / not sent, including "email invites aren't switched on yet".
- "Your invites": who you invited and whether they joined or set up a
  profile, with the joined count.
- ?from=onboarding retitles it "One last thing" with "Skip for now".

Entry points: onboarding now ends on it for people who ticked "Worker"
(everyone else still goes to the dashboard); an "Invite your crew" footer
row in the desktop drawer and in the phone account sheet; an "Invite your
crew" block on the worker home's second column.

SDK: `client.invites` (Scaffald/sdk#43); the submodule points at that
branch until it merges. scf-core hooks in utils/invites-sdk-hooks.ts.

.radium/scaffald-sdk.md: its examples imported useScaffaldJobsClient from
@scaffald/sdk/react, which doesn't export it (typecheck fails); the 54
existing hook files use ./jobs-sdk-context. Fixed the doc.

Not here: a device contacts picker (expo-contacts needs a native build and
a permission string; its own issue), and the newsletter checkbox (#1396).

Tests: 25 scf-core unit tests for the invites feature (contact parsing,
the screen's states and requests), drawer and dashboard suites green, SDK
msw tests. Browser-checked headless against an api from this branch with
a NevarMail stub: drawer row, home block, link card, a mixed list
(emailed, text button, member skipped, unreadable kept), status list,
onboarding Skip, phone layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
thinkclay and others added 2 commits November 24, 2026 00:39
…sheet row (#1398)

- packages/sdk: main moved the SDK pointer to 147f790 (Scaffald/sdk#41,
  #42). Merged that into the invites branch (Scaffald/sdk#43) and point at
  the merge commit ab3eed0, so this keeps both.
- The 'Invite your crew' row in MobileAccountSheet used fontSize: 14 like
  its neighbours, which pushed the drawer over the literal-styling ratchet
  ceiling. It uses fontSize.md (14) from @scaffald/ui/tokens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thinkclay
thinkclay merged commit 2635c21 into main Nov 24, 2026
10 checks passed
@thinkclay
thinkclay deleted the feat/invite-your-crew branch November 24, 2026 06:07
thinkclay added a commit that referenced this pull request Nov 26, 2026
Office/Admin/Developers split (epic #1442: #1443, #1444, #1445, #1446)
and worker invites with reminders (#1430, #1438; migrations 400, 401).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

feat(growth): 'Invite your crew' — onboarding step, account menu, contacts picker, share sheet, status list

1 participant