Repository navigation
feat(growth): "Invite your crew" — invite screen, onboarding step, drawer and home entry points (#1398) - #1430
Merged
Merged
Conversation
…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]>
…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]>
…rged (#1398) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mainonce that merges.What changes
/dashboard/invite(ROUTES.DASHBOARD.INVITE):navigator.shareor copy on web) and Copy.Sam <sam@…>,Pat 555-…).?from=onboardingretitles the page "One last thing" and adds Skip for now.Entry points:
Plumbing:
client.invitesin the SDK (feat: invites resource — create, list, link, preview, claim sdk#43).utils/invites-sdk-hooks.ts..radium/scaffald-sdk.mdfix: its examples importeduseScaffaldJobsClientfrom@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.radiumdoc gets fixed in the same PR).Not in this PR:
expo-contactsneeds a native build and a contacts permission string, so it gets its own issue.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:testhas 1,727 passing; the only failures are the same 13 as on main, inMapStateProviderandclearAuthStorage, fromlocalStoragebeing unavailable under my local Node 26.App route tests and
check-hardcoded-routes --allpass, 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:
/i/<code>;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