# ATO generator — locked 13 Nov 2026 (Africa/Johannesburg)

Branch: `locked/ato-option-a-13nov`, branched off `preview/ato-agreed-v2-12nov` (`67459e0`).

Wait for MT to confirm the themes before generating or publishing real ATO school pages.

## Option 1 (Primary locked design, 13 Nov 2026)

**Option A (Hero-first)** is the primary locked design. It lives in this folder: `ato-generator-v2-test/`.

Applied templates and styles (from the Option A mockup):

- `shared/page.css`
- `shared/page.js`
- `template/ato.html.j2`
- `template/parts/about_contact.j2`
- `template/parts/courses.j2`
- `template/parts/hero.j2`
- `template/parts/reviews.j2`

What Option A locks:

- Identification card is full width. The score shows once (pyramid + big number). The review count shows once as “from N reviews”. Certificates and bases are counted once in the hero facts line.
- Call / Email / Website sit in the hero, and again beside About. A missing or rejected value is a disabled control, never a link.
- An unclaimed school gets a claim step in the hero (“Is this your school?” / “Claim this page”).
- The rating card no longer repeats the score, the review total, or the certificate count. Written reviews, Rated 4.0+, and the 5-to-1 bars stay, and they still come from the server summary.
- Official replies on the guest page are own-school only.
- Under 3 reviews, or when the server `shown` flag is off, the score stays hidden.

Generator logic, `rating.py`, `rules.py`, `svg.py`, example data, and the unchanged template parts (`badges.j2`, `bases_certificates.j2`, `ratings.j2`, `review_form.j2`, `rating_categories.j2`, shared top bar) were not redesigned in this lock.

## Option 2 (Preserved locked v2 from 12 Nov 2026, updated 13 Nov 2026)

The previous locked v2 look is kept intact as Option 2:

- `ato-generator-v2-test/option-2-locked-v2/` — the `shared/` and `template/` files as they stood on `preview/ato-agreed-v2-12nov` (`67459e0`), preserved on 13 Nov 2026 alongside Option A.
- `ato-agreed-v2-12nov/` — the agreed-generator v2 mockup from 12 Nov 2026, still in this repo.

Do not treat Option 2 as the primary design. It is the fallback locked v2.

## Tests

From this folder, with Jinja2 available:

```
python3 -m pytest -q tests/
```

108 passed, 0 failed (13 Nov 2026). Markup assertions were updated to match Option A. Business-logic checks were not weakened (rating hidden under 3 reviews and when the server `shown` flag is off, bad contacts never become links, own-school-only official replies, claim step on unclaimed pages).

— Designer

## Change approved 16 Nov 2026 (MT, 14:54 SAST: "Yes, change it")

MT gave permission to change the locked page (branch `bot2-ato-audit-stars-16nov`, from `bot2-ato-template-fixes-15nov` @ `885bbf9`). Not merged, not deployed.

- **Contact audit:** the Call / Email / Website row beside About is removed. Contact shows once, in the hero pills, on every width. Missing contacts stay disabled there; "No contact details listed yet." stays under About.
- **Guest bottom space:** guests drop v6.css's 96px nav-pill clearance (40px + safe area). Signed-in views keep it, because the signed-in shell shows the nav pill.
- **Write-a-review star grid** (MT: Overall aligned with the seven categories, each number at the right end): one grid, label + hint | five 44px star cells | number right-aligned in one column. Overall is bigger with a separator and shows the halves-up average of the rated categories (REV-032). Phones (≤600px): hint full width under the label, stars and number on one line. Radiogroups with roving tabindex, arrows / Home / End / 1–5 / Delete, tap the same star to clear, live numbers, hover preview on pointers, reduced motion respected, Post disabled until one category is rated.
- **Form text:** "N of 5/20 reviews used this cycle · resets <date>" from the server, and the locked anonymous switch names Trial on Trial.
- `page.css` and `page.js` cache bumped to `?v=20261116a`.
- `preview-only/plans/`: reviews-by-plan preview pages (made-up school, example reviews). Preview only; not part of the generated output.

Unchanged (MT has not answered): anonymous = Pro and Founding only, score from 3 reviews, reviews live at launch, 50 counted up-votes a day.
