Equity
Updated Terms and Conditions
+++ Changelog
We've updated our Terms and Conditions, effective November 18, 2026. You'll be asked to accept them the next time you sign in.
+++
New versions of the Terms and Conditions, Privacy Policy, and Data Processing Addendum take effect November 18, 2026. They will be published on withmantle.com but we do show the text in-app as part of clickthrough acceptance.
Scope
Make sure the registration click-through contains the new Terms and Conditions (attached).
2026-11-18 Mantle Terms and Conditions.docx
The Terms need to hyperlink to the Privacy Policy and DPA.
How to do it (simple version, one PR)
The in-app click-through is TermsModal (webapp/src/views/components/modals/termsModal.tsx), mounted in PlatformLayout for every authenticated route. It shows whenever userProfile.acceptedTerms is false, can't be dismissed, and loads its text from the static file webapp/public/terms.md (unchanged since 2023, 361cb4a19). Acceptance is a single boolean, users.accepted_terms (migration 000133), set by POST /api/users/self/terms.
Replace
webapp/public/terms.mdwith the attached T&C converted to Markdown (pandoc -t gfmgets close; keep the bold defined terms and numbered sections). The current file's section 2 links the Privacy Policy to an old Notion page. Point it, and any DPA reference, at the withmantle.com URLs above.Re-prompt existing users with a migration (next number,
000280on main today):UPDATE users SET accepted_terms = false;. Down is a no-op, since the old values can't be restored. Precedent for backfillingusersin a migration:000248.Login/sign-up notice (
authLegalNotice.tsx) already links tohttps://withmantle.com/resources/terms-of-use, so it picks up the new terms once the site publishes them. It doesn't name the Privacy Policy; add it beside Terms & Conditions if legal wants both at registration (authLegalNoticekeys inen.json).
Don't
Only edit
terms.md. Everyone who already accepted keepsaccepted_terms = trueand never sees the new text.Run the
UPDATEby hand in prod. A migration is reviewed and ships in the same deploy as the new text, so nobody accepts the old text after the reset.
Watch out for
Impersonation.
AcceptTermsdoesn't checkImpersonatorUserId, and the modal doesn't hide while impersonating. After the reset, staff impersonating a customer will hit the modal, and clicking Agree & Continue records acceptance on the customer's behalf. Preferably (small): reject the POST with 403 and hide the modal when impersonating. At minimum, tell the team not to click it.Not seen right away by users who only come in through OAuth/MCP or don't log in; they get it on their next app visit.
No record of version or time. After this,
accepted_terms = truemeans "accepted the 2026-11-18 terms" only by inference from the migration date.Not verified: whether
/terms.mdis served with cache headers that could show a stale copy just after deploy. Renaming it (e.g.terms-2026-11-18.md, updating the fetch path) sidesteps it.
Tests
Migration up locally: every user row has
accepted_terms = false.Staging, existing user: modal shows the new text on next load; Privacy Policy and DPA links open withmantle.com; Agree & Continue closes it and it doesn't return on reload. Rift Platform users shows the Accepted Terms column reset.
termsModal.test.tsxmocks the fetch and shouldn't need changes. With the impersonation guard: a Ginkgo case thatAcceptTermsreturns 403 and leaves the user untouched under impersonation.
Later: versioned acceptance (separate story)
For the next update and an audit trail: a terms-versions table (version, effective date, content hash) and a per-user acceptance log (user, version, accepted at, IP / user agent, impersonator if any). The modal shows when the user's latest accepted version is behind the current one, replacing the boolean and the reset migration. Optional: change-notice email and an admin export of who hasn't accepted.