diff --git a/design/audit-2026-10-16.md b/design/audit-2026-10-16.md index 2f8e16e..efefbda 100644 --- a/design/audit-2026-10-16.md +++ b/design/audit-2026-10-16.md @@ -46,25 +46,25 @@ No page scrolled sideways and no route threw an error, at either width. | `transition: box-shadow .2s, transform .2s` (default `ease`) | `var(--ease-out)` = `cubic-bezier(0.23, 1, 0.32, 1)` | The built-in easings are too weak | | "My courses" row on a phone (M5), progress header (M8), help call button (M6) | The button gets its own line, or the row wraps before the text squeezes | Text never has to fight a button for width | -### Phase 2: Medium (next; needs a decision, see §3) +### Phase 2: Medium (fixed; decisions in §3) | Before | After | Why | | --- | --- | --- | | A full marketing footer on every route (M9) | A compact footer (one line: support, language, ©) on app routes. Keep the big one on the landing page | The footer is three times taller than the content on short pages | -| A spinner that never stops in the player when there's no video (M10) | A still "Video coming soon" poster with the lesson title. The spinner only shows while a real source loads | A spinner promises progress that will never come | +| ~~A spinner that never stops in the player (M10)~~ | **No change.** The player plays the Vimeo sample video added in `1fccdc0`. The spinner only appeared because the screenshot tool loads the page from `file://`, where Vimeo won't load | False finding from the test setup | | Hero CTAs with different widths on phones (M11) | Both full width and stacked, or side by side at the same height | Equal weight for equal choices | | Catalog chips cut at the edge (M13) | `mask-image` fade on the scrolling edge | Shows that the row scrolls | | `.bar > i { transition: width .6s }`, `.ring .fg { 1s }` | 300 ms with ease-out | Keep UI motion under 300 ms | -### Phase 3: Low (polish) +### Phase 3: Low (fixed except where noted) | Before | After | Why | | --- | --- | --- | | "2 h 42 min" wraps (M12) | `white-space: nowrap` on stat values, smaller size on phones | Keeps a number and its unit together | -| Feedback is an unlabeled icon on phones (M14) | Move it to the account menu, or add a "Feedback" label | Every icon-only control should be obvious | +| Feedback is an unlabeled icon on phones (M14) | **Not changed.** Feedback is a demo-only control and goes away at launch | Every icon-only control should be obvious | | `.foot-box:hover svg { transition: transform .4s ease }` | 250 ms ease-out | Decorative motion should be short | | `
` menu opens instantly | Leave it as is | It opens many times a session, so no animation (per the frequency rule) | -| Slashed zero (M15) | Ask the client. `font-feature-settings` can't switch it off in Atkinson Hyperlegible | It's a legibility feature, but it looks like a code font in prices | +| Slashed zero (M15) | Numbers (`.num`, prices, stats) now use Plus Jakarta Sans (Q3) | Body text keeps Atkinson Hyperlegible for legibility | ## 3. `grill-me` grading of the manual notes @@ -74,19 +74,19 @@ No page scrolled sideways and no route threw an error, at either width. | M2, M3, M4 | **A** | Screenshot evidence, a clear expected state, one-line fixes. Done | | M5, M6, M7, M8 | **B+** | Concrete, but each is one screen's symptom of a single pattern: text and a button fighting for width. Fixed as a pattern, not four times | | M9 | **B** | Real, but "too big" is a taste call until we agree on what the footer is for. This is a decision, not a bug (Q1) | -| M10 | **B** | It only happens in the demo, where lessons have no video. Grade it against production, where Vimeo loads (Q2) | +| M10 | **D** | Withdrawn. It came from the test setup (Vimeo won't load in a `file://` screenshot), not the product. Next time, check findings that involve outside content in a real browser | | M11–M14 | **C+** | Accurate, but low impact, and none says who is hurt by it. Fine as polish | | M15 | **C** | A repeat of the 2026-10-06 note with no new evidence. Close it once the client decides (Q3) | **Gap the notes missed:** none of them covers *dark mode* or *keyboard-only* use. A third role, the signed-in student whose account was deleted, isn't covered either. Next audit should add them. -### Open questions (the decisions are yours) +### Decisions (finalised 2026-10-16: the recommendations were accepted) ❓ **Q1 - Footer on app screens:** keep the big marketing footer everywhere, or use a compact one on signed-in and app routes (player, checkout, my courses, progress, notifications, profile)? -➡️ Compact on app routes, big footer on the landing page and catalog only. +✅ **Done.** Compact one-line footer on app routes. The big footer stays on the landing page and catalog. ❓ **Q2 - Player with no video:** show a "Video coming soon" poster, or hide lessons that have no video from students? -➡️ Show the poster in the demo. In production, lessons without a video shouldn't be publishable. +✅ **No change needed.** The demo already plays a sample video (see M10). In production, a lesson without a video shouldn't be publishable; that check belongs in the admin project. ❓ **Q3 - Slashed zero:** keep Atkinson Hyperlegible for numbers, or use Plus Jakarta Sans (already loaded for headings) for prices and times? -➡️ Plus Jakarta Sans for `.num`. Body text stays Atkinson for legibility. +✅ **Done.** Plus Jakarta Sans for numbers. Body text stays Atkinson Hyperlegible. diff --git a/packages/features/src/student.tsx b/packages/features/src/student.tsx index 73ba74c..4e0413c 100644 --- a/packages/features/src/student.tsx +++ b/packages/features/src/student.tsx @@ -143,7 +143,20 @@ function UserMenu() { function Footer() { const t = useTranslations(); - const { settings, locale, nav, setLocale, categories, courses, viewer, signedIn, me } = useApp(); + const { settings, locale, nav, setLocale, categories, courses, signedIn, me, route } = useApp(); + // Big marketing footer on the landing page and catalog only; app screens get one quiet line (audit 2026-10-16, Q1). + const full = (route[1] === undefined && !signedIn) || route[1] === 'courses'; + const langs = LOCALES.map((l) => ); + if (!full) return ( + + ); const instructors = [...new Set(courses.filter((c) => isStudentVisible(c, me) && !c.isTest).map((c) => c.instructorName))].slice(0, 3); const go = (p: string) => nav(`/${locale}${p}`); return ( @@ -169,7 +182,7 @@ function Footer() { {t('help.telegram')} {settings.supportPhone} -

{t('common.language')}

{LOCALES.map((l) => )}
+

{t('common.language')}

{langs}
© {new Date().getFullYear()} {settings.brandName}{t('footer.rights')}
@@ -224,7 +237,7 @@ function Landing() { {t('landing.eyebrow')}

{t('landing.title')}

{t('landing.lead')}

-
+
{lead && }
diff --git a/packages/features/src/styles.css b/packages/features/src/styles.css index 6b7fac9..8be1cc4 100644 --- a/packages/features/src/styles.css +++ b/packages/features/src/styles.css @@ -550,3 +550,26 @@ fieldset[disabled] .quiz-opt { cursor: default; } .prog-head .grow { flex: 1 1 160px; } /* help: the phone button wraps instead of pushing "Copy" off the card */ .row > .btn.grow { flex: 1 1 260px; } + +/* ================= v6: audit 2026-10-16 phases 2–3 ================= */ +/* Q1: compact footer on app screens */ +.foot-compact { margin-top: 32px; padding-top: 20px; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } +@media (min-width: 900px) { .foot-compact { padding-bottom: 20px; } } +.foot-compact .foot-base { max-width: 1200px; margin: 0 auto; padding-top: 0; border-top: 0; letter-spacing: normal; text-transform: none; font-size: var(--fs-sm); } +.foot-compact a { color: var(--ink-2); text-decoration: none; } .foot-compact a:hover { color: var(--accent); } +.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; } +.foot-langs button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-2); font-size: var(--fs-sm); } +.foot-langs button[aria-current="true"] { color: var(--ink); font-weight: 700; } +/* Q3: numbers in the heading face (Atkinson Hyperlegible slashes its zero) */ +.num, .statbar strong, .price { font-family: var(--f-head); font-feature-settings: 'tnum'; } +/* equal-weight hero CTAs on phones */ +@media (max-width: 599px) { .hero-ctas > .btn { flex: 1 1 100%; } } +/* chips that scroll fade at the edge so the row reads as scrollable */ +@media (max-width: 899px) { .chips { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; } } +/* UI motion under 300 ms */ +.bar > i { transition: width 300ms var(--ease-out); } +.ring .fg { transition: stroke-dashoffset 300ms var(--ease-out); } +.foot-box svg { transition: transform 250ms var(--ease-out); } +/* keep a number and its unit together */ +.statbar strong { white-space: nowrap; } +@media (max-width: 599px) { .statbar strong { font-size: var(--fs-lg); } }