Admin Tools
One-off data utilities. Admin only.
Planning Hub
Every active plan, roadmap, and to-do — Payments Rollout, User Flow Improvements, Ledger Reports, Email Setup, follow-ups, quick TODOs. Start here when you're wondering "what are we working on?"
Style Guide
Brand reference + UI component library. Colors, typography, buttons, forms, badges, tables — everything we use across the portal.
User Flow Reference
All five paths a person can take to become an active user — public sign-up, admin invite, login handshake, convert, direct create — with mockups of every screen.
Rebuild Managed Groups
Recomputes membership for the standing message groups — Everyone, Leaders, Dads, and Moms — plus every member’s Support thread, from current roster data. “Dads” means the men of the troop (father, grandfather, other male family, male volunteer) and “Moms” the women (mother, grandmother, other female family); a person joins only if they have their own login. Membership normally updates on its own whenever a user or family record changes; run this if a group’s member list looks wrong, or after roles are corrected in bulk.
Clean Up Orphaned Support Threads
Every member gets a managed Support thread. When an account is deleted (an old test login, a family that left), its Support thread stays behind in every admin’s inbox with nobody on the other end. Support threads can’t be deleted from the app on purpose — that would take a real member’s private line to leadership with it — so use this instead. It removes the thread and its messages. Scan first.
Messaging & Comments Access
Messages and announcement/event comments are gated behind troop dues. Access turns on automatically when any trailman in a family has current-year dues paid. Use this to override a family manually — e.g. turn a family on who paid by cash, or off. Leave it on Auto to follow their dues. Enter any member's email to find their family.
One-time / maintenance: recompute the access flag for every family from their current dues.
Recover Stripe Payout Fees
Scans every Stripe payout for standalone Stripe fees (e.g. the monthly Financial Connections “Connections Verification” billing for ACH bank verification) that never made it into the ledger — they aren't tied to a payment, so the payment webhooks can't see them. Creates the missing Bank Fees expense rows, grouped with their payout; fees on already-reconciled payouts are marked bank-cleared. New payouts record these automatically going forward.
Trail Life Connect Sync (TLUSA Registration)
Pulls the Troop Members export and member lists from traillifeconnect.com and updates each trailman's TLUSA Registration (from his membership expiration), member number, consent waiver and TLC profile ID, plus each adult's Registered Adult status and pending steps. Matches by stored profile ID, then by name.
TLC now requires a passkey to sign in, so the sync runs from Brett's signed-in Chrome: automatically every night at 4:30 AM (Mac launch agent + the Grace site sync extension), or any time from TLC with the Sync Grace site bookmark. The dashboard shows when it last ran; you'll get an email if the data goes a week without a sync.
Advance All Grades (Yearly Rollover)
Bumps every trailman's grade field one level (Pre-K4 → Kindergarten → 1st → … → 12th). Run this each summer once families have been promoted to their new school grade. 12th-graders are skipped (no advancement, since they age out of the program). Trailmen with no grade or with a non-canonical grade are also skipped.
Rarely needed — data repair
The bugs behind these were fixed at the source, so they should never be needed again. They stay because when data does break this way, there is no other way to fix it.
Repair Family Head
A family's name resolves only when there's a users doc whose document ID equals its familyId.
If a family was created against a now-deleted Auth user, the head reference is orphaned and the family shows as
Family ABC123 instead of Smith Family.
This tool re-points every users and family_members doc with familyId == old to use a new familyId.
Use the document ID of the user who should be the new head.
Attach Phone to Existing User
Firebase treats phone and email sign-ins as separate Auth users by default — same person, two UIDs. This tool attaches a phone number to an existing email-user account so both sign-in methods resolve to the same UID.
Phone must be E.164 format: +1XXXXXXXXXX. If the phone is already attached to another Auth user, delete that user from Firebase Auth Console first.
Reassign User UID in Ledger / Payments
Rewrites every payments.payerUid and ledger.payerUserId from a stale UID to a current one. Use after deleting a duplicate user to relink any orphan rows.