Skip to content

Deploy migrations from the merging session; fix Tournament deck row on phones - #124

Merged
jamesembling merged 5 commits into
mainfrom
claude/sweet-cannon-g4ugjx
Nov 9, 2026
Merged

jamesembling merged 5 commits into
mainfrom
claude/sweet-cannon-g4ugjx

Conversation

@jamesembling

@jamesembling jamesembling commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Two small changes.

1. Deploy database migrations from the merging session

James does not review or approve deployments, so a merged migration should reach production without being handed back to him.

  • .claude/skills/steward/SKILL.md: new Deploy database migrations step. After a PR that touches supabase/migrations/ merges, the session runs Deploy production database on main with DEPLOY, checks the run, confirms the new migration version is applied, and reports in one line. On failure it does not re-run; it reports what failed.
  • docs/migration-release.md: records the 9 November 2026 decision. Merging a migration PR authorizes deploying it, and the merging session dispatches the workflow. Drops the "add a required reviewer" advice. Agents still never apply SQL to production any other way (Supabase connector, psql, or supabase db push).
  • README.md and AGENTS.md: one-line wording updates to match.

The Production environment stays restricted to main. Its only protection rule is that branch restriction, and the latest deploy started without an approval step.

2. Tournament deck row on phones

On the Tournament detail page (app/(app)/tournaments/[id]/page.tsx), the deck name and its actions (+ ADD, the existing-list picker, and Add existing list) shared one row. On phones the name wrapped one word per line, the buttons overlapped it, and the row ran off the right edge. Below the sm breakpoint the actions now wrap onto their own full-width row under the sprite and name. The desktop layout is unchanged (sm: classes restore the previous row).

Verification

  • tests/migration-release-runbook.test.ts and tests/git-hook-files.test.ts pass (18 of 18).
  • npm run lint and npm run typecheck pass. npm run format:check passes on the changed files.
  • Layout check: I copied the row's markup into a scratch page, compiled it with the project's Tailwind config, and screenshotted it with Playwright.
    • At 390px the old classes reproduce the bug (horizontal overflow) and the new classes don't overflow.
    • At 1024px the old and new layouts look the same.
    • This used copied markup, not the real authenticated page.
  • This branch includes a no-op merge of the already-merged Allow Delta Reign (TEF-DLR) Tournaments to be saved #123 branch tip. Its content is identical to main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WkSxRaMKK8UtSB1NivqRDs

The app made TEF-DLR its default Standard format, but the database's
commit_tournament_metadata allowlist still stopped at TEF-30C, so creating
a Tournament with the default format failed with "Tournament format is not
an allowed site format."

Add a forward migration that re-creates the function with TEF-DLR in the
allowlist, mirror it in schema.sql, point the format rehearsal at the new
default, and add a guard that fails when a site format is missing from the
database allowlist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WkSxRaMKK8UtSB1NivqRDs
Keeps the executed-case count unchanged, per the zero-growth test policy
for non-feature changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WkSxRaMKK8UtSB1NivqRDs
James does not review or approve deployments, so a merged migration
should reach production without handing the deploy back to him. The
session that merges a migration PR now dispatches the Deploy production
database workflow on main and reports the result. Agents still never
apply SQL to production any other way.

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

vercel Bot commented Nov 9, 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 9, 2026 11:28pm UTC

@jamesembling jamesembling added the merge-when-green Squash-merge automatically once every check is green label Nov 9, 2026 — with Claude
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 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-09T23:24:29.252077Z 3eb705c 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.

On narrow screens the deck row kept the name and its action buttons on
one line, so the name wrapped word by word and the buttons ran off the
screen. Below the sm breakpoint the actions now wrap onto their own
full-width row; the desktop layout is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WkSxRaMKK8UtSB1NivqRDs
@jamesembling jamesembling changed the title Deploy database migrations from the merging session Deploy migrations from the merging session; fix Tournament deck row on phones Nov 9, 2026
@jamesembling
jamesembling merged commit 11c400c into main Nov 9, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — d7e12d09 Deployed Nov 9, 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.

2 participants