VB-664: The panels’ shared pieces: icons for goods and traits, one meter, one household view
Status: done (2026-11-16)
Priority: 2
Size: M
Design ref: design.md, Principles (Like is shown alike, pictures before words); the UI review of 16 November (this task’s notes)
Goal: Things of one kind are shown one way, and by icon, image or meter before text: the pieces every panel task builds on.
Acceptance criteria:
A meter, one component of the page (src/page/): a level on its scale, with marks for a target or a threshold (the custom’s and the head’s target on a store; the means asked of a home), and a signed form about a centre. Every level the panels show uses it; an exception is named, with its motive, in the task’s notes. The scale is the meter’s argument: it shows today’s ranges until VB-665 settles them, and changes with one line then.
Icons for goods (src/page/icons.js, or drawn from the map’s own art as page/portraits does): grain, sheaves, hay, firewood, stone, clay, ore, peat, wool, dried fish, tar, water, and the cart and the boat. A stat row (icon, value, meter where it is a level, the word as its title and label for a screen reader) replaces the sentences of the household’s stores.
Icons for the twelve traits, one a trait, shown on the pawn’s card for the traits Sim.traitLabels names today (traits are not hidden: Kim, 16 November); the word is the icon’s title. Whether every trait is shown, and how its strength, is decided here and written in the notes.
One household view: the household’s detail (members, stores, fields and work, animals and larder) is on its map card, as tabs; the People sheet becomes a list for finding a person, farm or village, each row opening its card (Kim, 16 November). A member’s row has one layout wherever it is listed. Food is counted in one unit on the card, the sheet and the played pawn’s sheet.
One control for one meaning: a tab, a filter and an act do not share the pill; “show on the map” is the target icon everywhere; red is kept for a warning (the action menu’s “Doing it now” and “Taken” take another colour).
Work kinds whose icons cannot be told apart in the action menu (hoe, rake, grind, cart manure) get icons of their own, or the reason they share one is noted.
The tile and its region’s numbers (“Tile 60, 75 in region 53”) leave the player’s cards for Debug; “Child (barn)” no longer reads as the building (VB-255’s barn).
Desktop only (Kim, 16 November): the phone’s layout is not made worse, and is not designed here. The page only reads st (lint); node tests/smoke.js, the tests/browser*.js touched; screenshots before and after under docs/img/ (the farm card, the pawn card, the People sheet).
Behaviour unchanged: node tools/same.js --base REF prints same.
Cost: the page’s only; a card reads one household when open.
Notes:
16 Nov 2026 (the UI review with Kim, after PR #147). Found, on populous tiny seed 7 at 1440 by 900: a household is described three ways (the map card’s one line; some thirty sentences in the People sheet’s folds; the played pawn’s “food for 48 days”), and a click on a farm never reaches the detail; two layouts of a member’s row; one pill for a tab, a filter and an act; two controls for “show on the map”; no icon, meter or graph inside any information panel but the fed dot, while the dock and the action bar have about sixty icons; some 28 work kinds on 11 icons; five formats for a level (hunger 0%, health 100, prestige 1.78, opinions signed to 100, soil “dunged to 132%”); red for a status that is no warning; tile and region numbers on every card. The Customs tab (portraits standing by each option) is the model.
The principle it rests on is AGENTS.md, Deciding without Kim, 15, and design.md, Principles (Like is shown alike, pictures before words).
VB-256, VB-631 and VB-062 build on this task’s meter, stat row and icons, and wait for it. VB-162, VB-477 and VB-092 are to read it when they are taken.
Its scale questions are VB-665’s, not this task’s: this task waits for nothing.
16 Nov 2026, built (desktop). Implementation:
src/page/meter.js (new): meter(o), the one meter (a level on its scale, marks at targets, a signed form filled from its middle, a value past its scale marked over); stat(o) and stats(list) (icon, word, meter where it is a level, value); traitsHTML(id). src/page/icons.js: goodIcon (33 goods and measures), traitIcon (the twelve), and work icons of their own for rake, grind, manure, weed and the spade work (clear, break, reclaim, meadow).
The household is told of on its farm’s card (src/page/cards.js): Details (food, firewood, hay, what is wrong; holder and heirs as chips; who lives there) and the tabs Stores, Land and Animals. The People sheet lists a village’s farms and their people as the cards’ own rows (farmRow, memberRow) and tells nothing itself; what its fold of the commons told (who waits to move out, plots, daughters, village work) is on the village’s card. Recent events stays in the sheet.
Meters now: food (days of need, on a year), hay (with the winter’s need as its mark), a cart’s soundness (mark where it wants mending), lowest health, a pawn’s health and hunger, the twelve traits, opinion (signed), soil and a field’s condition (mark at 100), the fence, an empty farm’s buildings, a claim’s strength, a plot’s clearing.
Tabs are underlined, a filter (the History kinds) is a small pill that stays pressed, an act is a button. “Show on the map” is the card’s target button alone. The action menu’s “Doing it now” and “Taken” are italic, not red. The tile’s numbers are in Debug (“Selected tile”). A child is “Child”, with no “(barn)”.
Decisions (Deciding without Kim, 15):
Food’s one unit is days of the household’s need, as the played pawn’s sheet counted it; the card’s “rations of grain” is in Stores as Grain. It is today’s store over today’s need, counted, and no forecast (14).
All twelve traits are shown, each icon over the meter; one beyond the labels’ bounds is coloured (green high, gold low) and its word is in the title. A close call: only the marked ones could have been shown, as the card’s words were; all twelve were chosen because traits are not hidden and a row of twelve reads at a glance.
A stat keeps its word visible beside the icon (the criterion said title only): thirty icons with no word are not yet indicative to a new player. The traits have no visible word, only a title. A close call for Kim.
Exceptions to the meter, with motive: prestige (a sum with no upper bound: a number, its parts in the title; VB-665), counts of goods with no natural scale (grain, stone, wool: a number beside the icon), and soil over 100 (shown as over its scale; VB-665).
“Child (barn)”: the Swedish word is left out only where it reads as an English one; the other roles keep theirs.
Not converted, each a level or a share still in words, outside the cards this task rebuilt: the Customs tab’s “leans 69%” (page/customs), the start screen’s population bars (their own bar, page/start), the gift form’s rations (a quantity entered, not a level). Left for the tasks that next touch them, by principle 15.
Validation: npm test 55/55; npm run verify 118/118, 8 targets out (not run on main beside it; the change is the page’s only and same holds, so none is its doing); node tests/smoke.js, node tests/browser.js and node tests/browser-mobile.js pass (the mobile test’s People-sheet steps follow the finder; the phone’s layout was not designed here). node tools/same.js --base b7a289a prints same. Screenshots: docs/img/vb-664-before-cards.png, vb-664-before-people.png, vb-664-after-farm.png, vb-664-after-cards.png, vb-664-after-people.png (populous, tiny, seed 7, year 2, 1440 by 900).
What fell: the People sheet’s three folds of sentences a household (some thirty <p>), cartWords, landWork, the second layout of a member’s row and of a farm’s, traitLine; src/page/words.js is shorter by about 120 lines (617 to 495).