Skip to content

Polish the mobile UI to a 9/10 review on iPhone - #126

Merged
jamesembling merged 2 commits into
mainfrom
mobile-ui-polish
Nov 10, 2026
Merged

jamesembling merged 2 commits into
mainfrom
mobile-ui-polish

Conversation

@jamesembling

Copy link
Copy Markdown
Owner

Summary

Two independent reviewers (Claude and Codex) scored the phone UI on iOS 27.2 simulators (iPhone 17 Pro and iPhone 17e) and iterated until both reached at least 9/10. Scores went from Claude 7.0 / Codex 7.6 in round 1 to Claude 9.1 / Codex 9.0. This PR also fixes the two nits both reviewers left at the end.

  • Hydration: combined date-times are now built by createStableDateTimeFormatter. Node and Safari joined en-GB date and time differently, so the server and client renders didn't match. This fixes the error on Dashboard and Profile, plus shared logs and the admin pages.
  • Touch targets (phones only, via max-sm): 44-px buttons, icon buttons, inputs, line tabs, dropdown items, drawer rows, dialog and sheet close buttons, the Swap button, text-link hit areas and the replay scrubber. Desktop sizes are unchanged.
  • Alignment and consistency:
    • Tournament metric values share a baseline ("Points (CP)").
    • Deck Strategy and Matchup row chevrons line up with the + buttons, and "Prefer to Go" stays on one line.
    • The import dialog title and body share a left edge, and Match Summary gets its own row.
    • Dashboard totals read from the left edge, and the duplicate "All events" heading is gone.
    • Create actions are consistently primary.
    • Battle Logs has an Import (primary) / Edit logs (secondary) pair with intact corners.
    • Tournament source actions form a 2×2 grid of 44-px buttons.
  • Battle Replay on phones:
    • All five Bench slots are visible without sideways scrolling, so recorded Pokémon are no longer hidden.
    • A pinned control dock stays below the app bar, drawer and sheets.
    • Edges follow the page gutter.
    • Empty slots stay visible in dark mode.
    • Fallback card names are sized from their longest word.
    • The summary uses one row.
    • An empty discard pile shows a message.

Battle Replay reconstruction and game rules are unchanged; only presentation changed.

Verification

  • npm run lint, npm run typecheck, npm test: 330 passed, 1 skipped.
  • Local browser journeys: npm run e2e:local:import, -- --expired-session and npm run e2e:local:social all PASS.
  • Simulator measurements on the iPhone 17e:
    • tabs 44×44, Swap 44, scrubber 45, card-preview close 45×45, discard-sheet close 44×45;
    • the drawer and account menu cover the replay dock;
    • "Charmander" fits inside its Bench card.

Tests

No test cases added or removed: 331 executed before and after. This is visual polish, so the default zero-growth rule applies. The changes are verified by simulator review and the existing browser journeys; no unit seam observes them.

🤖 Generated with Claude Code

Two independent simulator reviews (Claude and Codex) iterated until both
scored the phone UI at least 9/10.

- Render combined date-times identically on server and Safari, removing the
  Dashboard and Profile hydration errors.
- Give phone controls 44-px targets: buttons, inputs, tabs, dropdown items,
  drawer rows, dialog and sheet close buttons, text links and the replay
  scrubber.
- Align values, icons and edges: tournament metrics, strategy row icons,
  "Prefer to Go", the import dialog, Match Summary and the dashboard totals.
- Make create actions consistently primary and give Battle Logs a clear
  primary/secondary pair; tournament source actions form a 44-px grid.
- Battle Replay on phones: all five Bench slots stay visible, controls stay
  pinned below the app bar and drawer, edges follow the page gutter, empty
  slots stay visible in dark mode, fallback card names fit their cards, the
  summary uses one row, and empty discard piles explain themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jamesembling jamesembling added the merge-when-green Squash-merge automatically once every check is green label Nov 10, 2026
@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
poke-notes-app Ready Ready Preview Nov 10, 2026 7:16am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-10T07:14:00.942481Z 897edd6 PR opened
ℹ️ 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: 897edd6c1e

ℹ️ 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".

An empty discard list with a null count means the log didn't establish the
pile size, so only a known count of zero shows the empty-pile message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jamesembling
jamesembling merged commit b0ec15a into main Nov 10, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 074f424d Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-green Squash-merge automatically once every check is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant