# 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
