This repository is the GitHub Pages host for CMC (Case Manager Core) client portal wrappers, served at cmc.medlegalsimplified.com.
Each client gets a folder named after their slug:
/[client-slug]/index.html → cmc.medlegalsimplified.com/[client-slug]
The page at that URL renders a branded nav bar (the client’s name + “Powered by MedLegal Simplified”) with the client’s GAS web app loaded inside a full-height iframe.
CNAME ← custom domain — do not delete (see note below)
README.md
_template/
index.html ← source template with placeholder tokens
maitri-medical/
index.html ← live instance for Maitri Medical
_template/index.html contains placeholder tokens that the Phase 2 automation replaces via the GitHub API before writing the client-specific file:
| Token | Description | Example |
|---|---|---|
| `` | Display name shown in the nav bar | Maitri Medical |
| `` | Full GAS exec URL for the client’s deployment | https://script.google.com/macros/s/.../exec |
| `` | Browser tab title | Maitri Medical \| Case Manager |
Starting with Phase 2, client folders are auto-generated by the CMC admin settings panel. When a client activates their portal, the system reads _template/index.html, substitutes the tokens, and writes the result to /[slug]/index.html via the GitHub Contents API. Do not manually edit client files after that point — changes will be overwritten on the next portal provisioning.
The CNAME file tells GitHub Pages to serve this repo at cmc.medlegalsimplified.com. Do not delete it. If it is removed, GitHub Pages will stop serving the custom domain and all client portal URLs will break.