Skip to content

Post-redesign follow-ups: iPhone data safety, drill spacing and progress, smoke tests, phrase dedupe, design polish - #134

Merged
BigSimmo merged 22 commits into
mainfrom
claude/project-thread-kog66v
Nov 21, 2026
Merged

BigSimmo merged 22 commits into
mainfrom
claude/project-thread-kog66v

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Requested by josh · project thread

Summary

The follow-ups recommended after the iPhone-first redesign, plus phone, PWA and design polish.

  • iPhone data safety: at startup the app asks the browser to keep its storage (navigator.storage.persist()). Safari, when not running from the Home Screen, shows a one-time Add to Home Screen hint. If saved data hasn't been backed up for 30 days, a calm reminder appears. Settings → Backup shows the last backup date. The bookkeeping lives in a device-only key, tc_data_safety, which backups leave out. The manifest gains Help me right now and Search shortcuts.
  • Drill:
    • Reviews come back after 1, 3 or 7 days (Not yet, Getting there, Confident), then grow further apart. All the copy says when a card returns.
    • A new Your progress section counts techniques by status, overall and per category. Tapping a category opens the track picker set to it.
    • Older saved review data still loads.
  • Shared phrases: 52 lines appear on more than one card. The combined Phrase Bank, all-cards Quick Lookup and search now list each one once, with "also on N more cards". Each card's own bank is unchanged and saved phrases still resolve.
  • Design:
    • Cards that fail to load, unknown cards, 404, Help's "not found" and empty Saved now share one empty-state component and offer a way forward.
    • The Use it tab ends with "Pairs well with".
    • Library rows read "Easy to medium · Medium impact".
  • Bugs fixed (found by the new tests):
    • Reloading /help, /help/:id, /search or /start returned HTTP 404 from server.mjs.
    • Tapping a search result straight after typing could leave you on search.
  • Tests: Playwright 1.63.0 smoke, offline and layout specs with iPhone 15 emulation. The new e2e-webkit.yml workflow runs them in WebKit. docs/iphone-test-checklist.md is a manual pass for a real iPhone.
  • README: Features, Routes and test instructions refreshed.
  • Search index: a build-time index was measured but not built. It would cut the first search on a throttled CPU from about 1.0 s to 0.3–0.5 s, but adds about 280 KB gzipped to the offline download.

Checks

  • Passed after merging every branch: format:check, lint, typecheck, all tests (908 app plus the scripts suite), production build and the code reviewer.
  • Passed locally: the Chromium iPhone e2e project, 19/19.
  • Not run yet: WebKit, the first run is in CI. The clipboard and service-worker offline specs may need adjusting there.
  • Not verified: a physical iPhone, VoiceOver and Dynamic Type.

Generated by Claude Code


Summary by cubic

Implements follow-ups from the iPhone-first redesign: protects saved data on iPhone Safari, changes drill review spacing, lists shared phrases once, and polishes the phone and design details. Also adds Playwright smoke tests in WebKit and fixes several bugs those tests uncovered.

Changes

  • Data safety: requests persistent storage, shows a one-time Add to Home Screen hint on iOS Safari and a calm backup reminder after 30 days; Settings shows the last backup date. Bookkeeping lives in a device-only key that backups leave out, plus new PWA shortcuts.
  • Drill: first ratings bring a review back in 1, 3 or 7 days, then grow apart; rating buttons use a short label (Tomorrow, In 3 days) while their accessible names keep the full sentence. A new Your progress section counts techniques by status overall and per category, and opens the track picker on that category. Older saved reviews still load.
  • Shared phrases: the combined Phrase Bank, search and Quick Lookup's all-cards view list each line once with "also on N more cards"; a situation-filtered Quick Lookup still shows every line. A merged line keeps every tone its copies carry, so tone filters and counts include them. Each card's own bank and saved lines are unchanged.
  • Design: failed loads, unknown cards, 404, Help's not found and empty Saved use one empty-state component; Use it ends with "Pairs well with"; Library rows spell out difficulty and impact. An unknown card's header reads Card not found, and the Help picker's eyebrow no longer repeats the page title.
  • Phone polish: iOS launch screens for 11 iPhone sizes replace the blank Home Screen launch; the manifest allows rotation, and landscape iPhones clear the notch or Dynamic Island in the sidebar, sheets, docks and search.
  • Polish and accessibility: selected segments lift above their track, bottom sheets centre on desktop, the dock fade reaches the bottom of the screen, and accessible names now match visible labels in order (WCAG 2.5.3) across the Library, tab bar, drill ratings, copy rows and playbook templates.
  • Load: preloads the Inter faces and warms a deep link's page chunk and data during boot, cutting first paint on /, /card/:id and /phrases.

Testing and bug fixes

  • Playwright 1.63.0 smoke, offline and layout specs with iPhone 15 emulation; a new e2e-webkit.yml CI workflow runs them in WebKit, and docs/iphone-test-checklist.md covers a manual pass. On WebKit the offline spec verifies the worker and precache, since WebKit can't reload offline in emulation; Chromium runs the real offline reload. Launch-screen files, sizes and links have vitest coverage.
  • Fixes: server.mjs returned HTTP 404 on /help, /help/:id, /search and /start; tapping a search result right after typing could leave you stuck on search.
  • README refreshed for the new routes and features.

Written for commit 01df28b. Summary will update on new commits.

View guided diff

…d search

A stock line that several cards share (e.g. "That sounds like it mattered")
now appears once in the all-cards views, under its first card, with a note
that it is on other cards. Each card's own phrase bank is unchanged, and a
line saved from any of its cards still shows as saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
Adds Start here, Help me right now, Saved naming, Settings and the /search,
/help and /start routes, and leaves marked spots for features landing in
parallel work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
Ask the browser to keep storage persistent, show a one-time Add to Home
Screen hint on iPhone/iPad Safari, and a calm monthly backup reminder.
Record the last backup export time, show it in Settings, add Help me
right now and Search manifest shortcuts, and pad the PDF sheet for
landscape notches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
A first rating now brings a technique back tomorrow (Not yet), in 3 days
(Getting there) or in a week (Confident). Later passes grow by the ease
factor, Getting there by half its growth so it always returns sooner, and
never below those first gaps; Not yet still resets to tomorrow. Gaps are
worded as "tomorrow", "in 3 days", "in a week", "in about 5 weeks" on the
rating buttons, the review announcement and the done screen.

Reviews now keep their latest rating (optional field; older reviews
without it stay valid and read their status from the schedule). A new
"Your progress" section counts techniques as Confident, Getting there,
Not yet, Not started and due, overall and per category; a category row
opens the track picker on that category.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
- Add a shared EmptyState (components/ui) and use it for the 404 page,
  unknown and coming-soon cards, the Help "situation not found" page
  and Saved's empty list.
- A card that fails to load now explains why (offline or not) and offers
  Try again and Back to Library instead of a bare sentence.
- 404 page names itself in the header, drops the "404:" prefix and offers
  search and Help me right now alongside the Library.
- Use it now ends with up to three "Pairs well with" techniques before
  previous/next, so related cards are reachable without switching tabs.
- Library rows spell out "High impact" and "Easy to medium", so difficulty
  and impact no longer read as "Medium · Medium".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
Playwright smoke specs (iPhone 15 emulation) cover the Library, card tabs,
search and Back, Help me right now copy, Phrase Bank filter, Daily Drill
rating, Saved after reload, offline reloads, console errors, sideways
overflow and the tab bar safe-area gap. A new workflow runs them in WebKit;
the iphone-chromium project runs them locally.

Fixes two bugs the tests found:
- server.mjs answered /help, /help/:id, /search and /start with HTTP 404
  (app shell still shown), so reloads logged a console error.
- Tapping a search result within ~350ms of typing could leave you on
  search: the pending address write replaced the opened card's history
  entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 3b001eaa-4294-4041-b763-3fd951b49abf
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@gitar-bot

gitar-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Gitar is working

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Gitar

…e on WebKit

Playwright's WebKit can't reload a service-worker page while emulating
offline, so the WebKit run checks the worker and precache instead; Chromium
keeps the real offline reload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
@BigSimmo
BigSimmo marked this pull request as ready for review November 21, 2026 11:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T11:36:49.597316Z a0a8a7f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a0a8a7fa15

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Quick Lookup now dedupes shared lines only in the unfiltered all-cards view,
so picking a situation shows every line it lists and situations made only of
shared lines stay in the filter bar. A merged Phrase Bank line keeps the
other tones its copies carry, and tone filters and counts use all of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
…elp eyebrow

Rating buttons use a short form (Tomorrow, In 3 days, In ~5 weeks) while
their accessible names keep the full sentence. An unknown card's header
reads Card not found instead of the raw id, and the Help picker's eyebrow
no longer repeats the header title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjfPnzopEHAJKSC3rp
- iOS launch screens (apple-touch-startup-image) for 11 current iPhone
  screen sizes, portrait: app icon on #0f1724, ~42 KB each, injected by
  a small Vite plugin and kept out of the precache. Generator script
  renders them with Playwright Chromium.
- Landscape iPhones (780-956pt wide) get the sidebar layout, which sat
  under the notch/Dynamic Island: the rail now grows by the left inset,
  main content, search, dock bar, sheets, Quick Lookup and the update
  toast clear the side insets, and the header no longer doubles the
  left inset beside the sidebar.
- Manifest orientation "portrait" -> "any": the layout adapts, and the
  lock pinned Android tablets and foldables to portrait.
- Tests: launch-screen files/sizes/links (vitest), landscape safe-area
  and launch-screen/manifest checks (Playwright, Chromium CDP inset
  emulation). iPhone checklist gains launch-screen and light-mode
  status bar checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjtHCQRLDHwTbGHhTp
- Dark theme: selected segment (card tabs, Appearance, drill pace, share
  mode) now lifts above its track via --surface-segment-active instead of
  sinking below it.
- Bottom sheets (Settings, Filters, Share) are a centred 600px sheet on
  md+ instead of stretching the full window width.
- Dock fade reaches the bottom of the screen and is solid behind the dock,
  so rows no longer show through the gap above the tab bar, around its
  corners, or through the translucent disabled "Rate it to finish" button.
- Phrase Bank filter chips wrap within the column on md+ instead of being
  clipped at the column edge.
- Playbook template headings align with the cards below them.
- Search field row matches the results column width on desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjtHCQRLDHwTbGHhTp
WCAG 2.5.3 (label in name), so voice control matches what is on screen:
the Library search link, category chips, Filters/Reset buttons, tab bar
badges, drill rating, prev/next, copy rows, Phrase Bank rows and playbook
templates now carry their visible text in order. An axe scan of every
route and state finds no label-content-name-mismatch.

Load: preload the Latin Inter 400/600/700 faces (hashed URLs via a small
build plugin), and warm the page chunk plus card or phrase data for cold
/card/:id and /phrases loads. Lighthouse mobile medians: FCP on / 2.17s ->
1.71s, /card/TC001 LCP 2.99s -> 2.77s, /phrases LCP 3.63s -> 3.51s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GxPPxjtHCQRLDHwTbGHhTp
…hread-jd5e60

# Conflicts:
#	artifacts/tc-reference/vite.config.ts
@BigSimmo
BigSimmo merged commit fd67ef0 into main Nov 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants