[ui] DaySentence: Her folded petal, the words and their source; the library bundled after validation

This commit is contained in:
2026-11-02 08:55:06 +01:00
parent 5934523e45
commit 03dc69702a
16 changed files with 525 additions and 19 deletions
+5 -2
View File
@@ -28,7 +28,10 @@ function wiring(over: Partial<RoseWiring> & { log?: CareEvent[]; at?: number } =
now: () => at,
pastKeys: async () => [],
exportRose: async (key) => ({ format: 'rosea-rose', version: 1, keys: [key], events: [...(over.log ?? []), ...appended] }),
importRose: async () => ({ added: 0 }),
importRose: async () => ({ added: 0, petals: 0 }),
sentences: [],
loadOpened: async () => [],
appendOpened: async () => undefined,
saveFile: (name, text) => {
saved.push({ name, text });
},
@@ -203,7 +206,7 @@ describe('keep her safe (keep-her-safe.md)', () => {
importRose: async (file) => {
expect(file).toMatchObject({ keys: [OLD] });
restored = true;
return { added: 1 };
return { added: 1, petals: 0 };
}
});
render(Rose, { wiring: w, timeZone: ZONE });