VB-397: The Culture pane replaces the customs drawer
Status: done (2026-11-12)
Priority: 2
Size: M
Design ref: Kim, session of 12 November 2026 (customs pane review)
Goal: With the customs on the village card, the dock’s pane tells of the culture island-wide; the old drawer, its select and its comparison table go.
Acceptance criteria:
The dock’s button and its pane are named Culture (the key stays C); the pane is titled by the culture (“Nordic culture”) and says its villages, people and centre. Where the island has several cultures, chips choose one; it opens on the culture of the played pawn’s village, or of the village selected.
Three tabs. Villages (first): a row a village, those set to change, contested or with ways of their own first; a row says “Keeps the custom throughout” or names each custom it holds its own way, with the custom’s name, and what is set to change or contested; a click opens that village’s card at its Customs tab. The custom: the culture’s own customs as the charter of VB-396, a phrase tinted where some village has changed it; a phrase opens the options with the villages that hold each, as chips that open the village. Meetings: the meeting log by year, years in which nothing changed folded into one line.
The Customs tab of a village’s card (VB-396) names its culture as a link that opens this pane at that culture.
The old customs drawer goes: its village select, cards, support bars and comparison table, their styles, and customVillage, customsStamp, comparisonOpen; the Debug drawer is unchanged.
A long list of villages that keep the custom throughout folds (“7 villages keep the custom throughout”) once there are more than 6 of them.
Tests: tests/smoke.js, tests/browser.js and tests/browser-mobile.js updated from the old drawer’s checks to the pane’s (tabs, rows, a phrase opened, the links both ways, the sheet fits on a phone); npm run verify’s hard checks pass; index.html rebuilt.
12 Nov 2026 (session with Kim): mocked and chosen with VB-396. Kim: “Switch button and pane to be culture info”; “Make it possible to move from the village pane to an infopane about the island wide culture”.
12 Nov 2026, implemented. src/page/culture.js (new): the pane (chooseCulture, openCulture, the three tabs, its clicks). src/page/customs.js: charterHTML, the charter told once for the card and the pane; the culture’s name on the Customs tab is a link. src/page/drawer.js: the old customs pane goes (114 lines to 100 with Debug alone; buildCustoms, the select, the cards, the bars and the table); src/head.html: their 18 style rules go. The button is cultureBtn and the panel culture; the icon is the scroll as before.
It opens on the culture asked for by a link, else that of the village selected, else that of the played pawn’s village (the criterion named the played pawn first: the village in hand is the nearer wish, and the pawn’s is the fall-back).
Not seen in a run: several cultures (the chips) and the fold of more than 6 villages that keep the custom; both are drawn by the same code as what was seen, and want a look on a medium map after a split.
Validation: tests/smoke.js (the title, a row a village, 14 phrases in the culture’s charter, a phrase opened to its ways, the meetings, a row opens the village’s Customs tab and its culture link comes back), tests/browser.js, tests/browser-mobile.js (the pane, a phrase opened and the meetings fit at each viewport; it rises from the dock). npm run verify: every script but tests/hunger.js (VB-396’s flag; it fails on main too); golden file unchanged. Seen in Chromium, desktop, phone and dark (populous, seed 7, tiny, year 21): 10 villages, Perstorp first (disputed claims set to change), then the three with a way of their own.