# User page ("Your page") — review + design mock, 16 Nov 2026 (SAST)

Front-end design only, on branch `bot2-user-page-design-16nov` in go-around-design (issue #14). Nothing has been merged or deployed. The design is a static mock with a fictional pilot ("Naledi Dlamini", @naledi.flies — all example data). The Founding seat number is never shown.

**Open this folder's `index.html`.** Default view is Direction A, Amethyst, Founding Member. Query flags: `?t=pearl|champagne|midnight|amethyst`, `?plan=free|trial|pro|founding`, `?dir=b` (tabs), `?tab=settings` (Direction B), `?search=pass`, `?capture=1` (freeze motion for screenshots).

**Defaults used in this mock (updated 16 Nov 2026, 19:12 SAST after MT's calls):**
- Direction A (one scroll). Direction B remains available via `?dir=b`.
- Founding pass is gold foil only. There is no card-style picker.
- The Founding badge is a gold recolour of the locked compass: identical paths, gold gradient fills and a bronze stroke, in `badges/founding-compass-gold.svg`. The locked blue original (`badges/founding-compass-locked.svg`, #1D9BF0) is not edited. The gold badge is used on the pass seal, next to the name, in Founding perks, and on the Founding upsell. MT asked for this recolour on 16 Nov 2026, 19:12 SAST.
- Free and Trial: no plan tag or badge on the pass card. The "Your plan" panel still names the plan.
- Founding seat number is not shown anywhere on the pass (including a shareable pass). "Founding Member" wording stays.
- Pro pass is blue steel. The Pro badge is still not final (existing "PRO" pill, no new badge drawing).
- Wiring to real accounts is out of scope (Claude's core + D1). This branch does not modify Designer PR #12.

## 1. Answer: can we (bot 2) develop it?
**Partly. We can design it and build the front-end in full on our own branch with mock data. We can't make it live alone.**
- The backend already exists and is not ours: Cloudflare Pages Functions + D1 in `go-around-launch-11nov/code/cloudflare`
  (written by Claude on 10–11 Nov). Supabase is NOT used; DECISIONS-MASTER §16 says "Stay on Cloudflare Pages and D1. No Supabase".
  The old Wingmam `WMAuth.google()` Supabase stub (PR #210) is dead.
- Wiring the page means calling auth/session APIs and touching core paths. MT's rule for us is "don't adjust anything in the core",
  and DECISIONS §16 gives that backend to Claude (`fix/audit-fixes-12nov`). So wiring needs MT's explicit go and the core bot.
- The D1 databases weren't created as of 12 Nov (Designer's note), so there's nothing live to wire to yet anyway.
- The Designer bot already made a full "Your page" mock (go-around-design PR #12, 12 Nov, open, do not merge). A "User Page" teammate
  bot may own this too. I couldn't read its sessions, so check with it before building to avoid duplicating work.

## 2. What exists (with links)
| What | Where | Date / by | State |
|---|---|---|---|
| Layout-only pilot page (own and other view) | go-around-launch-11nov `code/site/u/index.html` (+ `site/me`, `site/settings/index.html`) | 11 Nov, Claude | unstyled, wired to `/api/me/page` |
| API | `code/cloudflare/functions/api/me.js`, `me/page.js` (getPilotPage), `me/profile.js` (PATCH), `me/password.js`, `auth/passkeys`, `auth/sessions`, `auth/signout-all.js` | 11 Nov, Claude | preview, no D1 yet |
| Schema | `code/cloudflare/migrations-v2/0001_accounts.sql` … `0013` (accounts, qualifications, entitlements, founding_seats, usage_cycle, sessions, user_credentials, member_credentials) | 11 Nov | not applied |
| "Your page" design mock (most complete) | https://github.com/sdzrxwfxd2-cloud/go-around-design/pull/12 (`components/pilot-page/`) | 12 Nov, Designer | open, do not merge |
| Sign-in / sign-up design | https://github.com/sdzrxwfxd2-cloud/go-around-design/pull/9 | 12 Nov, Designer | open |
| Old Wingmam pilot page builds | Wingmam PR #208 (feature/pilot-page-live), #210 (login), #270 (signed-in concept) | 31 Oct | open, stale (Netlify/Supabase era) |
| Approved v4 user page (D2 boarding pass) | Wingmam PR #202 merged, frozen `archive/user-page-v4-approved` | 31 Oct, MT approved | archive |
| 5 user concepts U1–U5 | Wingmam `design/user-home-concepts`; local `/workspace/limewire_15nov/user_home_designs/SHEET_USER.png` | 30–31 Oct | concepts |
| Profile concepts on the live-copy repo | Go-Around-Cloudflare `concept/profile-page-10nov`, `-v2-10nov`, `concept/profile-pages-10nov` | 10 Nov, Grok Bot | branches only |
| Member sign-in jobs | Go-Around-Cloudflare `job1/member-signin`, `job6/member-doorways` | 11 Nov, Claude | preview |
| Rules | DECISIONS-MASTER.md §3–5, §10–12, §16 (copy in /workspace/ato_audit_stars_16nov) | 12 Nov | current |
| Notion | "GO AROUND — Member UX … Handoff v1.1" §7 Settings; "Registration & Badges — design spec (8 Nov)" | 7–8 Nov | older than DECISIONS |

No locked/* branch covers the user page.

## 3. What the page must contain (and sources)
1. **Identity / pass card:** display name, @username (locked, can't be edited), avatar initials, home aerodrome, member since, and badges next to the name. Source: getPilotPage identity, DECISIONS §12, PR #208.
2. **Licences and ratings:** self-declared stay grey until verified (DEC-006, `qualifications` table), plus the DFE claim state (pending / verified). Source: u/index.html, migrations 0001/0002.
3. **Plan:** Free, Trial (14 days, no card, days left, "paying drops unused trial days"), Pro R399, Founding Member R299 (50 seats, price held while subscribed). Show the renew date, "finish payment" if a payment failed, Manage plan and Cancel renewal. Source: DECISIONS §3, §8; u/index.html plan slot; settings cancel copy.
4. **Allowance:** reviews left per rolling cycle (Free 5, the rest 20), votes (Free 100, the rest unlimited), and the reset date. Source: config.mjs `REVIEW_QUOTA` / `VOTE_QUOTA`; DECISIONS §5.
5. **Reviews you wrote:** includes your own anonymous reviews (only you see them) and "deleted by you" ones. Anonymous is for Pro and Founding only, chosen per thread and locked once posted. Source: getPilotPage reviews; config `ANON_PLANS`; DECISIONS §5.
6. **Saved aerodromes:** max 5, one marked home. Today they're stored per device only, with no server table. Source: PR #208 wm-saved.js; Notion handoff §8; Designer NEXT-SESSION #3.
7. **Theme:** members pick from 4 themes, guests stay on auto day/night. Stored in `accounts.theme`. Source: DECISIONS §11; settings page.
8. **Notifications:** NOT in the schema yet (settings page leaves it a "placeholder, not invented"). Billing and security mails are required (§ mail list: codes, reset, receipts, trial ending, payment failed, lapsed). The mock tags the toggles PROPOSAL.
9. **Privacy:** what other members see is name, licences and named reviews. Never email, plan, seat number or anonymous reviews. Guests can't open pilot pages. Source: DECISIONS §1 "Pilots opening each other's pages".
10. **Account and security:** display name, email, password (changed via email code), passkeys, Google, sessions, sign out one or everywhere (30-day `ga_session`). Source: DECISIONS §10; settings page; auth APIs.
11. **Your data:** download my data (no endpoint yet), and delete account (type the phrase; cancels the saved card first; stars stay). Source: settings page; Designer NEXT-SESSION #6.
12. **Sign out.**
13. **Logbook stats:** no logbook table, and Logbook is hidden for now (Wingmam PR #275). PR #208 rule: "No hours/currency until Logbook". The mock shows a "comes later" tile only and invents no numbers.
14. **Saved ATOs:** not in code or decisions. Not included, so this is a question for MT.

## 4. Badge rules (DECISIONS §12) vs MT's ask
- **Founding Member:** the locked Founding compass SVG (blue #1D9BF0, `site/assets/badges/founding-compass-locked.svg`). It must be used as-is, never redrawn.
- **Pro:** "leave a slot, design not final".
- **Trial / Free:** no badge.
- **Anonymous posts:** no badges.
- **Seat numbers:** private.

What the mock does:
- Free and Trial have no plan tag or badge on the pass. (The "Your plan" panel still says Free or Trial.)
- Pro gets a blue-steel pass and a "PRO" pill tagged "badge not final". No new badge is drawn.
- Founding gets a gold foil pass, the gold compass (recolour of the locked shape) in a gold seal, a "Founding Member" line with no seat number, a perks card and a gold accent across the page.

## 5. Design (static mock) — this folder
- Open `index.html?t=pearl|champagne|midnight|amethyst&plan=free|trial|pro|founding[&dir=b][&tab=settings][&search=pass]`. Badge close-up: `badge-compare.html?t=amethyst|pearl`.
- **Fonts:** the same as the locked ATO v6.2 page (`site/ato-v6/v6.css` + `fonts/wm-fonts.css`): Clash Display 600 titles, General Sans labels, Satoshi body, JetBrains Mono numbers. Theme tokens are copied from `ato-generator/themes/*.css`.
- **Direction A ("Pass & panels", recommended and refined):** one scroll. The pass card is the hero, then a quick-action row (write review, share pass, saved, settings), the plan + allowance meters, licences, reviews, saved, the logbook placeholder and settings. On desktop (1024+) there's a sticky left rail (pass, actions, perks, section index) with a two-column content area and two-column settings.
- **Direction B ("Compact + tabs"):** a small identity header and a glass Overview | Settings segmented control. It's faster for settings-heavy use but loses the reward feel of the pass, so A is preferred. B's search-first settings are kept in A.
- **Settings UX:**
  - 7 groups: Appearance, Notifications, Privacy, Account, Sign-in and security, Plan and billing, Your data.
  - Instant search with synonyms ("face id" finds Passkeys, "popia" finds Download my data).
  - Toggles save instantly with a "Saved" toast.
  - Locked rows explain why ("Pro & Founding").
  - Destructive actions sit last, in red, and Sign out is a full-width button at the bottom.
  - Rows are at least 44–52 px, and safe areas use `env(safe-area-inset-*)`.
- **Motion:**
  - One staggered entrance of 320 ms with a 40 ms step, `cubic-bezier(.2,.8,.2,1)`, transform and opacity only.
  - Toggles and the segmented control move in 250–300 ms.
  - The Founding sheen is a single 350 ms transform sweep on load and on tap (no loop, no blur animation).
  - With reduced motion, everything is instant.
- **Glass:** one blur per surface, and the blur is never animated.

## 6. Proposed plan
1. MT picks from these pictures (A vs B, tier finishes, gold vs blue Founding card).
2. Ask the "User Page" bot and the Designer what they already hold. Merge ideas into one design and don't fork.
3. ~~Open one issue and branch, `bot2-user-page-design-16nov`, in **go-around-design**.~~ Done: issue #14, this branch. Static HTML/CSS/JS with mock data shaped like `getPilotPage()`/`getMe()`, with no auth calls. No merge or deploy until MT says yes.
4. Hand it to the core bot (Claude) to drop into `code/site/u` + `code/site/settings` once D1 exists. Or MT explicitly lets us wire it in a branch off `fix/audit-fixes-12nov` without touching gate.ts, auth or app-data.
5. Backend gaps for the core bot:
   - a server table for saved aerodromes
   - notification preference columns
   - a "download my data" endpoint
   - NPL and Helicopter in `qualification_catalogue`
   - the Pro badge design

## 7. Open questions for MT
Answered 16 Nov 2026:
1. Founding card is gold foil only. Blue steel is used for the Pro pass, not as a Founding option. No member card-style picker.
2. Free and Trial have no tag and no badge on the pass.
9. The Founding seat number is not shown on the pass or a shareable pass.
Badge recolour (19:12 SAST): the Founding compass used in the UI is gold. Paths match the locked original; the locked blue file is untouched.

Still open:
3. Pro badge design: the slot is still empty ("badge not final").
4. Saved ATOs: add them next to saved aerodromes? They're not in the code or the decisions yet.
5. Notifications: which ones exist at launch?
6. Should saved aerodromes follow the pilot across devices (needs a server table)?
7. Who owns the build: us, the "User Page" bot, or the Designer? Do we have your OK to wire it to the core API later?
8. Theme default for members: Auto (follow day/night) or a fixed theme?
