Strategikon: the section rail becomes one picker on a narrow screen #962

Open
nelsong6 wants to merge 19 commits from claude/strategikon-section-dropdown into main
nelsong6 commented 2026-08-12 20:43:41 -07:00 (Migrated from github.com)

The Strategikon''s four section buttons do not scroll away, because the rail belongs to the
shell rather than to the content. So a phone stacked four rows of section navigation
above the section''s own reference rail above the record — and the record scrolled in
whatever was left, which was not enough to read.

The rail now has two forms:

  • Wherever a rail has room — the column of tabs, unchanged.
  • Below the narrow band — ONE control naming the current section.

Exactly one is displayed at a time, so the sections are never duplicated in the
accessibility tree.

It is the canonical picker (HouseSelect — the same control the card filters, the
Ataraxia selector and the admin panel use), not a bespoke menu, and it navigates the same
addresses the rail does, so a section is reached identically either way. The Strategikon
root carries no section; the picker names the first, which is where the rail lands there
too.

Verification

Driven at 390x844:

  • .strategikon-rail display none, .strategikon-section-picker shown
  • trigger reads Enchiridion
  • opening lists Enchiridion | Prosopography | Chartulary | Lipsanotheca
  • choosing Chartulary navigates to /run/strategikon/chartulary, trigger follows

At 1280x800 the rail is displayed (grid) and the picker is not.

frontend npm run check passes (373 files, 3596 tests).

Not in this change

The section''s own reference rail (Units / Terrain / Manubiae / Cards / Lipsana / Ataraxia)
still takes six rows above the record on a phone. Same class of problem, one level down —
worth deciding separately now that the pattern exists.

The Strategikon''s four section buttons do not scroll away, because the rail belongs to the shell rather than to the content. So a phone stacked **four rows of section navigation** above the section''s **own** reference rail above the record — and the record scrolled in whatever was left, which was not enough to read. The rail now has two forms: - **Wherever a rail has room** — the column of tabs, unchanged. - **Below the narrow band** — ONE control naming the current section. Exactly one is displayed at a time, so the sections are never duplicated in the accessibility tree. It is the **canonical picker** (`HouseSelect` — the same control the card filters, the Ataraxia selector and the admin panel use), not a bespoke menu, and it navigates the same addresses the rail does, so a section is reached identically either way. The Strategikon root carries no section; the picker names the first, which is where the rail lands there too. ## Verification Driven at 390x844: - `.strategikon-rail` display `none`, `.strategikon-section-picker` shown - trigger reads **Enchiridion** - opening lists **Enchiridion | Prosopography | Chartulary | Lipsanotheca** - choosing Chartulary navigates to `/run/strategikon/chartulary`, trigger follows At 1280x800 the rail is displayed (`grid`) and the picker is not. `frontend npm run check` passes (373 files, 3596 tests). ## Not in this change The section''s own reference rail (Units / Terrain / Manubiae / Cards / Lipsana / Ataraxia) still takes six rows above the record on a phone. Same class of problem, one level down — worth deciding separately now that the pattern exists.
This pull request has changes conflicting with the target branch.
  • frontend/package.json
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'claude/strategikon-section-dropdown:claude/strategikon-section-dropdown'
git switch 'claude/strategikon-section-dropdown'
Sign in to join this conversation.
No description provided.