Org name, branches, and visitors now come from DemoWorld so continuity
matches Care/Queue across the suite, plus Members for DemoWorld staff
with a frontdesk role. Also resolve organization by owner_ref when
metadata.frontdesk.organization_id is missing, and skip reseed-on-login
for DemoWorld staff emails.
Co-authored-by: Cursor <cursoragent@cursor.com>
Demo Free/Pro/Enterprise accounts wipe and reload sample data on
authorization-code SSO callbacks so every sales walkthrough starts clean.
Co-authored-by: Cursor <cursoragent@cursor.com>
Pro includes 5,000 email and 5,000 SMS host alerts per month with hard
monthly caps; Enterprise is unlimited. Custom badge templates are
Enterprise-only, and plan benefit copy matches the new limits.
Enforce billed_branches when adding or reactivating branches, charge
wallet for extra seats mid-cycle, fix Settings for Enterprise, and
cover multi-branch checkout and renewal amounts in tests.
Pro is GHS 990/branch/mo and Enterprise is GHS 1990/branch/mo, with the
Care-style branch selector UI, self-serve Enterprise checkout, and renewal
charges scaled to billed branches.
Pass organization logo/name through ContactMessageMail for daily reports and campaigns, and drop the Ladill product footer.
Co-authored-by: Cursor <cursoragent@cursor.com>
NotificationDispatcher sends via customer relay and skips Frontdesk wallet debit when tenant keys are configured.
Co-authored-by: Cursor <cursoragent@cursor.com>
Ship OEM documentation for MDM, Elo, and Zebra lockdown plus a provisioning QR on kiosk device registration so factory tablets can pair on first boot.
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace local member UUID invites with platform email invites, SSO post-auth
redirect, and provisioner-backed pending access until accept.
Co-authored-by: Cursor <cursoragent@cursor.com>
Monthly auto-renew charges due organizations from the Ladill wallet and downgrades after grace when payment fails.
Co-authored-by: Cursor <cursoragent@cursor.com>
Frontdesk now calls ladill.com/api/afia/chat using IDENTITY_API_KEY_FRONTDESK
so production does not need a separate OpenAI key in the frontdesk .env.
Co-authored-by: Cursor <cursoragent@cursor.com>
Adds a dedicated Pro page with wallet upgrade, gradient Upgrade to Pro
button in the sidebar footer, and view composer for plan status.
Co-authored-by: Cursor <cursoragent@cursor.com>
Host alerts use email/phone on the host record without requiring a Ladill
account link; SMS and over-quota emails debit the org wallet at platform rates.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add the AI assistant button, chat endpoint, and Frontdesk-specific prompts, and include Frontdesk in the shared launcher config used by the app switcher.
Co-authored-by: Cursor <cursoragent@cursor.com>