Flow Sync
<- back to stuff i built
customer operations

Flow Sync

A role-based onboarding tracker that moves customers from sales handoff to completed Customer Success onboarding.

tldr

A role-aware onboarding workspace where Sales, CSMs, Senior CSMs, and Admins see the same customer journey through different next actions, backed by database-enforced permissions.

the problem

Onboarding handoffs fail when responsibility lives in a shared spreadsheet or a Slack thread. The system needs to show the next owner clearly while ensuring the database, not just the frontend, enforces access.

what it is

A role-based onboarding tracker that moves customers from sales handoff to completed Customer Success onboarding.

why it is useful

It replaces spreadsheet-and-Slack handoffs with one shared workflow where every role sees the next action they own.

architecture

A React single-page app talks directly to Supabase for auth, Postgres, row-level security, SQL functions, and triggers. The UI chooses a dashboard by role, while database policies independently enforce the same permissions.

how it works

  1. A user signs in and is routed to the dashboard for their role.
  2. The onboarding record moves through defined stages with validation and ownership visible to the team.
  3. Database functions and triggers normalize data and record stage history.
  4. Row-level security ensures a frontend role switch cannot grant access the user does not have.

implementation notes

  • Routes the same onboarding session differently for Sales, CSM, Senior CSM, and Admin.
  • Normalizes URLs in a database trigger before storage.
  • Uses stage history and validation tables as foundations for workflow auditing.
  • Keeps authorization in the database instead of trusting the frontend alone.

engineering decisions

  • Treats authorization as a database concern, not a UI convention.
  • Uses stage history and validation tables as foundations for workflow auditing.
  • Normalizes URLs in a database trigger so stored data remains consistent regardless of the input surface.

stack

ReactTypeScriptViteSupabasePostgres RLSshadcn/uiTailwind CSS