fix: show honest new-space display defaults

Issue: #204
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-08-19 17:44:48 +00:00
committed by claude[bot]
parent 4c8ba981e7
commit 6f89002e3a
15 changed files with 504 additions and 243 deletions
+12
View File
@@ -476,6 +476,18 @@ export const MUTANTS = [
replace: ' const areaLinkInteractive = true;',
}],
},
{
id: 'space-create-hidden-display-override',
guard: 'node demo/smoke_space_create_display_defaults.mjs',
because: 'Save must persist the two booleans visibly chosen for a new hand-drawn space; '
+ 'the production smoke saves and reopens a mixed pair so the old hidden true/true override cannot return',
patches: [{
file: 'src/houseplan-card.ts',
find: ' show_borders: d.showBorders,\n show_names: d.showNames,',
replace: " show_borders: d.source === 'draw' && d.mode === 'create' ? true : d.showBorders,\n"
+ " show_names: d.source === 'draw' && d.mode === 'create' ? true : d.showNames,",
}],
},
];
// --- механика ---------------------------------------------------------------