--- name: tableau-mock description: Renders the interactive HTML demo (mock.html) for the tableau-dashboard-plugin workflow at the plan's screen size, populated from the real sample CSVs, so the analyst can share a realistic demo and validate direction before any Tableau work. Builds strictly from DASHBOARD-PLAN.md — every KPI, chart, filter, and interaction — and ends with a coverage checklist proving each plan element (screen size, every filter, every interaction) was rendered, so omissions are visible before the stakeholder sees it. Enforces readable slot sizing (no compressed, out-of-bounds, or empty-space-heavy charts). Reads DASHBOARD-PLAN.md and the sample CSVs, and DESIGN-TOKENS.md if present. Use when the user wants to build the mock, render the demo, or when tableau-route reports mock is next. Step 6 of 8 in the workflow. disable-model-invocation: true allowed-tools: Read, Write, Edit, AskUserQuestion, Bash(python *), Bash(python3 *) --- # tableau-mock Step 6 of 8, and **non-skippable**. It turns the strict `DASHBOARD-PLAN.md` into an interactive `mock.html` demo — rendered at the plan's screen size and populated from the **real sample CSVs** — that the analyst shares so the stakeholder can validate the dashboard direction *before any Tableau work begins*. The mock ends with a **coverage checklist** proving every plan element was rendered, so nothing is silently dropped before the demo goes out. | | | |---|---| | **Reads** | **Required:** `DASHBOARD-PLAN.md` (from `plan`) — the blueprint, including the screen size and every element/filter/interaction id; and the sample CSVs (`data/*.csv`, demo fallback `scaffold/sample-data/*.csv`) — the real rows the demo shows. **Optional (enrich, never block):** `DESIGN-TOKENS.md` (from `brand`; absent ⇒ neutral styling). | | **Writes** | `mock-version//mock.html` — a full standalone deliverable copy (CONTRACT.md §4.3). | | **STATE.md update** | Sets `mock` = `approved` and `current_version` to the target `v_N`; flips every downstream `approved` step (`spec`/`build`) to `stale` on a re-run (CONTRACT.md §4.2). | | **Entry gate** | Refuses to run until `plan` is resolved **and** `DASHBOARD-PLAN.md` exists, **and** `data` is resolved **and** a sample CSV exists (CONTRACT.md §4.1). | | **Next step** | `tableau-spec` (or `tableau-route` to confirm). | The mechanical guarantees — the entry gate, the **coverage checklist** (every plan element rendered), the **slot-sizing guard** (no compressed / out-of-bounds / empty-space-heavy layouts), the version bump, and the STATE.md transition — live in `mock.py` (CLI) and `coverage.py` (the checklist + guard core). Your job is the judgment part: designing a faithful, attractive demo that renders the plan at its screen size with real data. Run the script at the points below; do not hand-edit `STATE.md`. ## The two conventions the coverage check depends on `coverage.py` decides "rendered" mechanically, so the mock **must** carry two machine-readable markers (see `references/MOCK-SKELETON.html` for a working example): 1. **`data-plan-id=""`** on every rendered KPI, chart, filter control, and interaction trigger. The `` must match the plan's Elements / Filters / Interactions tables **exactly**. A plan id with no matching `data-plan-id` is a **coverage gap** that blocks approval — this is what makes "every element rendered" a guarantee, not a hope. 2. **An embedded JSON layout manifest** — one `