Platform architecture overhaul — signoff inbox, discipline routing, trial system, onboarding fork #3857
ccantynzcommented Jun 3, 2026
Originally written by @vercel[bot] on GitHub.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| marco-reid-com | Preview, Comment | Jun 3, 2026 10:27am |
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/MarcoReid.com/pull/86
What this fixes
The platform had coherent auth but no real architecture beneath it. Every user saw the same dashboard. Professionals had no inbox. Trial accounts were marketing fiction. Onboarding was a skippable form that did nothing. This PR fixes all of it.
Changes
Professional signoff inbox (
SignoffInbox.tsx+/signoffspage)/signoffswith Pending / Under Review / Completed filter tabsPATCH /api/signoffs/[id]Discipline-specific dashboard (
DisciplineModules.tsx)practiceAreafield (keyword matching)Real trial system (
lib/seed-demo.ts+TrialBanner)isTrialAccount,trialStartedAt,trialEndsAtadded to User schemaisTrial: true— sets 14-day window and callsseedDemoData()seedDemoData()creates: Patel Family Trust demo client, active matter, 1.5h time entry, $15k trust account, draft invoice — all in a single transaction, fire-and-forget (never blocks registration)TrialBannershows days remaining with "Upgrade now →" CTA, dismissable per session/trial-expiredSchema additions (User model)
Onboarding API extended
POST /api/me/onboardingnow accepts:userType,discipline,professionalBody,registrationNumber,admissionJurisdiction,bio,headline,consumerNeeds— maps to existing Professional model fieldsStill incoming (same PR)
Test plan
/generateafter completion/trial-expiredhttps://claude.ai/code/session_013xYaNLb66Q87o1azuQoSLA
Generated by Claude Code