Skip to content

feat(white-label): expose MSA gating on the customer portal - #7

Merged
rrader26 merged 1 commit into
mainfrom
feat/white-label-portal-gate
Jun 16, 2026
Merged

feat(white-label): expose MSA gating on the customer portal#7
rrader26 merged 1 commit into
mainfrom
feat/white-label-portal-gate

Conversation

@rrader26

Copy link
Copy Markdown

What

Backend contract for the portal-native MSA gate (lago-front PR ThinkfleetAI/lago-front#7).

Adds to CustomerPortalCustomer:

  • mustSignAgreement: Boolean! — true while a pending white_label_agreement exists for the customer
  • agreementSigningUrl: String — the hosted gate URL for that agreement

Also adds WhiteLabelAgreement#signing_url (centralizes the gate-URL logic) and reuses it in the flobyte:provision_whitelabel rake task. The portal blocks all sections until the customer signs; signing still happens on the hosted gate page (reused).

Reuses everything from #5 — table, WhiteLabel::ActivateService, MSA/Terms docs.

🤖 Generated with Claude Code

Adds `mustSignAgreement` + `agreementSigningUrl` to the CustomerPortalCustomer
GraphQL type so the portal can block all sections until the customer signs the
MSA. Signing happens on the existing hosted gate page (reused, kept as the
signing surface). Adds WhiteLabelAgreement#signing_url helper and reuses it in
the provisioning rake task.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit 6a7c2a6 into main Jun 16, 2026
0 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants