Skip to content

test(docs): add demo fixtures and capture tools - #1106

Merged
khaira777 merged 5 commits into
mainfrom
docs/end-user-help-automation
Oct 13, 2026
Merged

khaira777 merged 5 commits into
mainfrom
docs/end-user-help-automation

Conversation

@khaira777

@khaira777 khaira777 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR introduces automated tooling to seed a deterministic demo restaurant and capture high-resolution screenshots for end-user documentation and the flopos.com Help Center.

What is added / updated:

  1. Deterministic Demo Seeder (scripts/docs/seed-blue-harbor.cjs):

    • Populates fictional Blue Harbor Café (Toronto, ON, CAD currency, 13% Ontario HST).
    • Seeds realistic categories (Coffee, Tea, Bakery, Food), sizing variants, modifier/add-on groups (Milk Choice, Flavored Syrups, Extra Shots).
    • Sets up raw inventory supplies and depletion recipes (Espresso Beans, Dairy Milk, Paper Cups).
    • Generates active cash drawer shift ($200 opening float), table floorplan (Main Dining, Patio), active orders, expenses, and staff accounts.
  2. Isolated Server Harness (scripts/docs/demo-server.cjs):

    • Boots FloCafe backend and frontend in a sandboxed /tmp directory on isolated ports (3101 API/POS, 3102 KDS, 3103 Server App) without port collisions.
  3. Playwright Screenshot Capture Pipeline (scripts/docs/capture-screenshots.cjs):

    • Headless Chromium automation capturing all key workflows across desktop (1366x860 @ 2x DPI) and mobile (iPhone viewport).
    • Captures all 26 required documentation screens and modal tutorials (including product-create-modal.webp, addon-group-create-modal.webp, settings-printer-add-modal.webp, settings-receipt-customization.webp, settings-whatsapp.webp, and products-addon-groups.webp).
    • Cleaned up obsolete developer screenshots (print-test-page.webp, addon-groups-manager.webp).
    • Enforces strict disk verification and file-size checks (>1KB) with automated non-zero exit on failure.
  4. Convenience npm Scripts:

    • npm run docs:demo: Run standalone demo server.
    • npm run docs:screenshots: Run end-to-end headless capture.

Safety & Invariants:

  • All data operations run inside temporary directories with isolated databases; production or local dev data is never touched.
  • Passed npm run lint:backend (0 errors, 1000 warnings within budget).

Companion PR in flopos.com: FreeOpenSourcePOS/flopos.com#3 (feat/interactive-help-center)

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed6ccf8c-7248-47c8-9d39-b0977b2667a8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@khaira777 khaira777 changed the title test(docs): add isolated demo fixtures and documentation capture tooling test(docs): add demo fixtures and capture tools Oct 13, 2026
@khaira777
khaira777 force-pushed the docs/end-user-help-automation branch from d396cbe to 50cf6fb Compare October 13, 2026 17:00
@khaira777
khaira777 merged commit ddb0fa7 into main Oct 13, 2026
23 checks passed
@khaira777
khaira777 deleted the docs/end-user-help-automation branch October 13, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant