sightbox/playbook/playbook.md

4.9 KiB

Sightbox Playbook

Index of every guide in this project, each kept in sync with the live sightbox.localhost build. Each row links to the published, shareable version — the .md file in this folder is the source; the artifact is what to actually hand someone.

Guide What it's for Live artifact
ARCHITECTURE_GUIDE.md Visual crash course on Frappe's stack — bench, sites, apps — and exactly where this project's customizations live vs. what's shared bench-wide. https://claude.ai/code/artifact/052f7005-1ab7-4ff1-8096-3af1e0f362f6
ENTERPRISE_STANDARDS.md The general-purpose engineering standard this project's backend/ is held to — architecture, security, observability, resilience, testing, code quality. https://claude.ai/code/artifact/ad74605c-a8af-4595-bd57-6b5147f5f85f
INSTALLATION_PLAYBOOK.md The fast path for a new client: bring-up, the real Setup Wizard, then one command (provision_client.sh) for every native customization. What's still manual — client business data, email credentials, billing tenant registration. https://claude.ai/code/artifact/b6ee0ade-31fc-4d70-9a62-8ff6beac275f
DEVELOPER_GUIDE.md How to extend the native UI without a custom Frappe app, plus the detailed manual fallback — full Desk UI steps and code for everything the provisioning script automates, for when it fails or needs to be reproduced by hand. https://claude.ai/code/artifact/2ab21473-8690-4e2a-b319-2728b5ac991c
CLIENT_DEMO_GUIDE.md ("Field Ops Runbook") Client-facing walkthrough: Dispatcher, Technician, and Store Manager working one tool-checkout job start to finish. https://claude.ai/code/artifact/9619769a-ea27-41ca-b96c-e99e1cf2b608
CONSUMABLES_DEMO_GUIDE.md ("Consumables Runbook") The other half of the store: issuing parts, an automatic reorder alert, and a damage write-off feeding the Damage & Cost Report. https://claude.ai/code/artifact/8d8ac4fc-230e-482a-b112-ad22a5bc718e
BACKUP_RESTORE.md Nightly snapshot of every client site + this repo to Cloudflare R2, and restoring onto any brand-new Linux VPS with one script — architecture, first-time setup, cron, and the restore runbook. https://claude.ai/code/artifact/ab242378-ade7-46c3-b73b-34091136a59a
CICD_PLAYBOOK.md Wiring Gitea → Dokploy so a push only deploys after the test suite passes. Parts 1-2 are project-agnostic — reusable for any other Docker Compose project; Part 3 is this project's worked example. https://claude.ai/code/artifact/dbe92ebc-f9f5-42a5-9101-7280e513777c

Reading order

New to the stack: Architecture Guide first — the hierarchy everything else assumes you already understand.

Standing up a new client: Enterprise Standards (once, as a baseline) → Installation Playbook (the fast path — mostly one script) → Field Ops Runbook / Consumables Runbook (rebuilt with the real client's names) to demo. If the provisioning script fails or something needs fixing by hand, drop into the Developer's Guide's "Manual fallback" section for that one piece.

Extending the system: Developer's Guide — both the general methodology and, in "Manual fallback," the exact content of everything already built this way.

Operating it long-term: Backup & Restore, once, right after Installation Playbook Stage 10 — set up the nightly cron job before a real client's data has anywhere to be lost from.

Setting up deploys: CI/CD Playbook — one-time per host (Part 1), then once per project (Part 2). Not required before a first manual deploy; do it whenever pushing straight to a live VPS by hand stops being acceptable.

Both demo runbooks currently run against a local test company, Joma Properties Test (JPT) — not a real client name. Rebuild both with the real client's company/property/site names before an actual client-facing demo.

Login credentials — sightbox.localhost test environment

Sign in at http://localhost:8083/login. Same accounts documented in the Field Ops and Consumables Runbooks — collected here for convenience, not a separate source of truth.

Role Email Password
Dispatcher dispatcher@sightbox.local Dispatch2026!
Technician (Stock User) site.supervisor@sightbox.local FieldTech2026!
Store Manager store.manager@sightbox.local StoreMgr2026!

Not included: Administrator (its real password isn't recorded in any file in this repo, only known to whoever ran Stage 2's bench new-site) and billing-service@sightbox.local (System Manager, API key/secret auth only — no interactive password exists for it at all, per Installation Playbook Stage 9, step 1). Rotate the three passwords above before any real client-facing use — they're test-environment defaults, not meant to be long-lived.