Studio guide (HTML)
Edit live sites
Readable in the browser. Use Print / Save PDF for a PDF copy. Source.md stays on PC for editing only.
How to edit live brand sites (Studio)
One page for IT / Studio. Full QOL plan: PLAN-STUDIO-QOL.md.
Which mode am I in?
| Badge / pill | Meaning | What you do |
|---|---|---|
| Exact files / Exact / live | Editing the real website files (or brand has a live folder) | Click text → Save writes live files. Optional: Import site… |
| Imported draft / Imported | Live folder was copied into Studio pages | Edit in Builder → Publish to live website |
| Needs import | Live folder exists, Studio draft may be empty/old | Import site… first |
| CMS only | Lab / demo no separate disk site | Edit + Publish inside Studio only |
Websites tab shows the same badges on each fleet card.
Safe mental model
- Import = copy live folder → Studio draft only. Customers never see this step.
- Save (exact mode) = write the real files you’re editing.
- Publish to live website = write Studio pages out to the live folder (imported / CMS-live brands).
Never assume Import already updated the live site it does not.
Import wizard (friendly path)
- Open Site Builder (
cms.html?site=BRAND) or Websites → Builder. - Click Import site… (top bar, banner, or empty-state CTA).
- Scan website folder lists HTML pages on disk (title, file, size).
- Check the pages you want (or Select all). Enter runs Import when ready.
- Import N pages Studio draft is snapshotted first, then progress + report.
- Open home in editor edit, then Publish to live website when ready.
- Mistake? Undo last import restores Studio drafts only (not live).
Re-import replaces matching Studio draft pages with current disk files. Live still unchanged until Publish.
Draft snapshots: data/cms-snapshots/{brand}/
Brands with real folders
Typically: Mikiki, Moose Mechanical, KJ Cosmetics, 100 Club.
Lab / demo portals are CMS only no Import button.
Publish safety (Q3)
- Click Publish to live website.
- Confirm: *This updates the LIVE website customers see* backup runs first.
- Publish report shows pages written / skipped / failed + backup id.
- If something looks wrong: Rollback… (top bar) or Rollback this backup in the report.
- Restore picks a snapshot → current live HTML is snapshotted again → files restored.
Backups live on this PC under portal-app/data/publish-backups/{brand}/ (last 12 per brand). HTML pages (+ a few CSS files), not full image libraries.
Save (exact mode) still writes the current page with a small .bak-studio side file. Publish does the full multi-page snapshot.
If something looks wrong
| Symptom | Try |
|---|---|
| Import button missing | Brand is CMS-only, or wrong site selected in switcher |
| Scan finds 0 pages | Site folder not linked / empty check nginx brand root |
| Colors wrong after import | Warning in report: no stylesheets re-check head assets |
| Live site didn’t change | You only Imported use Publish to live website |
| Bad publish | Rollback… → pick newest good backup → Restore |
| Not sure of mode | Read the banner pill + Websites fleet badge |
| Editor feels broken after update | Hard-refresh cms.html · run node scripts/audit-studio-editor.js |
| Publish backup missing | Confirm data/publish-backups/ · health publishBackupsDir |
Automated + full smoke
cd Documents\portal-app
node scripts\audit-studio-editor.js
Full brand matrix: SMOKE-STUDIO-EDITOR.md · plan: PLAN-STUDIO-EDITOR-POLISH.md
Studio Ops panel → Editor audit runs the same script while signed in as owner.
Related
- Morning checks: MORNING-TEST-CHECKLIST.md
- Studio start: START-HERE-STUDIO.md
- Smoke: SMOKE-STUDIO-V2.md · SMOKE-STUDIO-QOL.md
- Phase 6: PHASE6-OPS.md