Crew repair (platform)

A platform-owner tool for fixing crews from outside a tenant: install a lead, move pending acceptances to a crew that has one, rename, or delete an empty crew.

What it is

A capability-gated console listing every crew in a tenant with its lead, members, pending and active acceptance counts, and a problems list flagging crews that need attention — then four repair actions.

Also called: crew has no lead · orphaned crew · move contracts to another crew · fix a broken crew

See it
Crew repair (platform)
Area
Platform & Admin
Group
Support tooling
System
Team & Crews
Solves
3 named problems
01GET returns crews with members resolved from Clerk publicMetadata.crewId plus acceptance counts and problem flags.
02set_lead updates crews.lead_user_id, writes the new lead's Clerk metadata (role, crew, org) and upserts crew_members_sync so they appear in TeamView.
03reassign_acceptances bulk-moves pending and active assignments between two crews in the same tenant.
The repair modal listing crews with problem badges, each row offering Set Lead, Reassign Acceptances, Rename and Delete. Sample data — no customer information appears here.
How it works
  1. 1GET returns crews with members resolved from Clerk publicMetadata.crewId plus acceptance counts and problem flags.
  2. 2set_lead updates crews.lead_user_id, writes the new lead's Clerk metadata (role, crew, org) and upserts crew_members_sync so they appear in TeamView.
  3. 3reassign_acceptances bulk-moves pending and active assignments between two crews in the same tenant.
  4. 4rename changes the display name only; the id stays.
  5. 5delete is refused with a 409 and the blocking counts unless the crew has no members, no acceptances and no signatures.
Why we built it

A crew holding six jobs waiting on a signature, with no members and no lead, is work that nobody in the company can sign off — and the builder's own screens cannot get him out of it, because every fix needs a lead who is not there. Support repairs it from outside: either install a lead so the waiting work can be signed, or move the work to a crew that already has one. It exists because orphaned crews holding live jobs is a recurring class of problem rather than a one-off.

The problem
  • Work stranded on a crew with no leader or members.
  • Tenant admins unable to repair their own data.
  • Destructive deletes that would orphan signed records.
Sound familiar?
What you get
Stuck tenants unblocked without database surgery.
Deletion refused with the exact blocking counts.
Repairs propagate to the tenant's own Team view.

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →