variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
This commit is contained in:
+7
-7
@@ -1,5 +1,5 @@
|
||||
// web/view-new.mjs — new run: the package picker, then the naming
|
||||
// form — the package display name plus the main character's name,
|
||||
// web/view-new.mjs -- new run: the package picker, then the naming
|
||||
// form -- the package display name plus the main character's name,
|
||||
// rolled from the dictionary, unused by any run. Runs of the same
|
||||
// package need distinct pc names.
|
||||
|
||||
@@ -9,7 +9,7 @@ import { state } from './state.mjs';
|
||||
import { banner } from './chrome.mjs';
|
||||
import { navigate } from './router.mjs';
|
||||
|
||||
let pkg = null; // the picked package — the view owns it
|
||||
let pkg = null; // the picked package -- the view owns it
|
||||
|
||||
export async function enter(arg, seq) {
|
||||
$('package-pick').hidden = false;
|
||||
@@ -22,8 +22,8 @@ export async function enter(arg, seq) {
|
||||
const card = el('button', 'card package-card');
|
||||
card.appendChild(el('span', 'card-name', p.display));
|
||||
const origin = p.origin === 'user' ? `user${p.ownerName ? `, by ${p.ownerName}` : ''}` : 'system';
|
||||
card.appendChild(el('span', 'card-meta', `${p.name} · ${origin} · records ${p.records ? 'on' : 'off'} · turn-0 ${p.turn0 ? 'yes' : 'no'} · seed ${p.seed ? 'yes' : 'no'}`));
|
||||
if (!p.complete) card.appendChild(el('span', 'card-state attention', 'incomplete — missing backdrop or character'));
|
||||
card.appendChild(el('span', 'card-meta', `${p.name} \u00b7 ${origin} \u00b7 records ${p.records ? 'on' : 'off'} \u00b7 carryover ${p.carryover ? 'yes' : 'no'} \u00b7 memory ${p.memory ? 'yes' : 'no'}`));
|
||||
if (!p.complete) card.appendChild(el('span', 'card-state attention', 'incomplete -- missing backdrop or character'));
|
||||
card.addEventListener('click', () => pickPackage(p));
|
||||
list.appendChild(card);
|
||||
}
|
||||
@@ -33,10 +33,10 @@ async function pickPackage(p) {
|
||||
pkg = p;
|
||||
$('package-pick').hidden = true;
|
||||
$('create-form').hidden = false;
|
||||
$('create-title').textContent = `start — ${p.display}`;
|
||||
$('create-title').textContent = `start -- ${p.display}`;
|
||||
$('create-name').value = p.display;
|
||||
$('create-pc').value = '';
|
||||
$('create-pc').placeholder = 'rolling a name…';
|
||||
$('create-pc').placeholder = 'rolling a name...';
|
||||
$('create-pc').focus();
|
||||
const roll = await api('/names').catch(() => null);
|
||||
if (state.view !== 'new' || $('create-form').hidden) return;
|
||||
|
||||
Reference in New Issue
Block a user