A new wiki page no longer asks to leave; an Instant NPC's secret stays GM-only; a sheet links to who sees it and who plays (#1121) #1123
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1121-wiki-create-npc-save-sheet-links"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Items 4, 5 and 6 of the owner's lane 11 review (#1121).
What changes
Editor.jsxnavigated to the created page while the form still counted as unsaved, so the leave guard blocked the editor's own navigation. The created id is now state, part ofdirty, and the navigation runs from an effect after the guard has seen the form as clean. The new test runs under a data router (the existing ones usedMemoryRouter, where blocking is inert) and fails without the fix.prep/tools/npcPage.js) now sendspronouns, an "Occupation" fact,## Personality/## Wants, and the secret inside the page's:::gmblock. The server withholds that block from players (wiki_text.render_for).#, and is escaped (\:::, the page's own escape) if it starts with a fence. A secret or a want containing:::therefore cannot close the GM block early. Tests covera\n:::\nb,:::,:::,::::, CRLF forms and a want of:::gm, against a mirror of the backend'sMARKER/_scan.Checks
npm run lint: 0 errors.npx vitest run src/pages/wiki src/pages/prep src/pages/sheet src/hooks: 622 passed.scripts/changelog.py check: OK.Follow-up, not in this PR
Pages already saved this way keep the secret in their readable body. Dev has one (the owner's test page "Thistle"). Prod has not been checked.
🤖 Generated with Claude Code