Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ The order tasks are taken in, the first first (`node tools/backlog.js next`). So
| ID | Name | Arch | Pri | Size | Summary |
|----|------|------|-----|------|---------|
| [VB-1924](backlog/VB-1924.md)<a id="VB-1924"></a> | Plan: how a town grows before the ship | town | 1 | M | What gathers makers into a town before any ship comes, how big a town is (one of about 350 or two of about 150), and how the ship calls at a town's harbour; the pass settles the rows marked Under revision. |
| [VB-1964](backlog/VB-1964.md)<a id="VB-1964"></a> | The ice key: two swatches, words one tap in | roads | 1 | S | The ice key beside the calendar is two swatches; their words show one tap in (Kim's icons-first rule). |
| [VB-665](backlog/VB-665.md)<a id="VB-665"></a> | Housekeeping: one scale for the simulation's meters, reviewed with Kim | - | 2 | S | Inventory every bounded or signed quantity the player is shown, its range in st and on the page; propose 0 to 100 and -100 to 100 with the motivated exceptions; questions for Kim |
| [VB-706](backlog/VB-706.md)<a id="VB-706"></a> | Standing answers where there is no tie: a stranger's yes rests on it | - | 2 | S | Standing changes nothing material: it weights customs and land disputes only. Kim, 16 Nov: where the pawn asked has no tie to the asker, standing is what it answers by. |
| [VB-707](backlog/VB-707.md)<a id="VB-707"></a> | A debtor's refusal is a breach the village knows, and costs standing | - | 2 | S | Ignoring a debt of honour costs nothing but a private memory, and sim/exchange's `propriety` has no caller. Kim, 16 Nov: a refusal by one who owes is a public breach. |
Expand Down
1 change: 1 addition & 0 deletions BACKLOG_ARCHIVE.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,3 +900,4 @@ Done tasks and closed archs, moved out of `BACKLOG.md` so its tables list only o
| [VB-644](backlog/VB-644.md) | Dried fish for the fair: a shore head's target beyond its own need | fair | 2 | S | VB-255's fifth criterion, which waits for the fair: a head with a surplus in a shore village may take a project to dry fish beyond its need, aimed at the fair, its target in rations |
| [VB-083](backlog/VB-083.md) | Seasons on the map | roads | 3 | M | Seasonal tints and winter snow on the painted map. |
| [VB-034](backlog/VB-034.md) | Splitting land between heirs | debt | 3 | M | Under "land split between heirs" the fields are divided, so the custom stops behaving like a buy-out. |
| [VB-1964](backlog/VB-1964.md) | The ice key: two swatches, words one tap in | roads | 1 | S | The ice key beside the calendar is two swatches; their words show one tap in (Kim's icons-first rule). |
2 changes: 1 addition & 1 deletion backlog/VB-1964.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# VB-1964: The ice key: two swatches, words one tap in
Status: ready
Status: done (2026-11-28)
Priority: 1
Size: S
Arch: roads
Expand Down
3 changes: 3 additions & 0 deletions src/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
.clock strong { display: block; font-size: 19px; }
.clock span { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.clock .ice-key { display: flex; flex-direction: column; gap: 2px; } /* the key of the ice, while any is on the map (VB-083) */
.clock .ice-key { cursor: pointer; }
.clock .ice-key b { display: none; font-weight: normal; }
.clock .ice-key.open b { display: inline; }
.clock .ice-key[hidden] { display: none; }
.clock .ice-key span { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.clock .ice-key i { display: inline-block; width: 14px; height: 10px; border: 1px solid #2c201c; border-radius: 2px; }
Expand Down
14 changes: 13 additions & 1 deletion src/page/chunks.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,21 @@ function iceKey() {
const row = document.createElement('span'),
sw = document.createElement('i');
sw.style.background = Season.ICE_CSS[k];
row.append(sw, words);
const w = document.createElement('b');
w.textContent = words;
row.append(sw, w);
el.append(row);
}
if (shown && !el.dataset.tap) {
// words only after a tap on the key; a second tap, or a tap elsewhere, hides them again
el.dataset.tap = '1';
el.addEventListener('click', (e) => {
e.stopPropagation();
el.classList.toggle('open');
});
document.addEventListener('click', () => el.classList.remove('open'));
}
if (!shown) el.classList.remove('open');
}
function addChunk(l, cx, cy, canvas, wayCanvas) {
const s = LV[l].size,
Expand Down
9 changes: 9 additions & 0 deletions tests/browser-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ assert(html.includes('window.__fieldTest'), 'page hook exists');
assert.strictEqual(look.snow, 'rye-snow'); assert.strictEqual(look.bare, 'snow'); assert(look.tex, 'the snow textures exist');
const last = look.seen[look.seen.length - 1];
assert(last.key && /Ice that bears/.test(last.key), `the ice's key beside the calendar: ${JSON.stringify(last)}`);
const vis = () => page.evaluate(() => { const k = document.getElementById('iceKey');
return { sw: k.querySelectorAll('i').length, text: k.innerText.trim() }; });
const closed = await vis();
assert(closed.sw === 2 && closed.text === '', `the key shows two swatches and no words: ${JSON.stringify(closed)}`);
await page.locator('#iceKey').evaluate((k) => k.click());
const opened = await vis();
assert(/Ice that bears/.test(opened.text) && /does not bear/.test(opened.text), `a tap shows the words: ${JSON.stringify(opened)}`);
await page.locator('#iceKey').evaluate((k) => k.click());
assert.strictEqual((await vis()).text, '', 'a second tap hides them');
assert(look.seen[0].stale > 0, `the band's chunks marked to be painted again: ${JSON.stringify(look.seen)}`);
assert.deepStrictEqual(errors, [], 'no page errors');
console.log(`browser-fields: the card, ${allowed.key} chosen (Done), ${refused ? 'a refusal answered' : 'no refusal on this seed'}, no buttons for another's field, the tilth row at 0 and 12, rye-snow and snow in winter, the ice's key`);
Expand Down
Loading