fix(journey): keep draft edits and share screens scoped to their source

Preserve typed titles until submit, require a valid photo preview, and clear entry and photo overlays when following another public share link. Keep committed drafts successful if realtime delivery fails.
This commit is contained in:
Maurice
2026-11-30 17:03:05 +01:00
parent 07fdcbcbee
commit 21b8da53cf
11 changed files with 113 additions and 27 deletions
@@ -274,7 +274,12 @@ export class JourneyEntriesFromPhotosService {
});
for (const { entry } of done.written) {
await this.journeys.broadcastJourneyEvent(journeyId, 'journey:entry:created', { entry }, socketId);
try {
await this.journeys.broadcastJourneyEvent(journeyId, 'journey:entry:created', { entry }, socketId);
} catch (err) {
// The drafts are committed. A failed notification cannot undo the write.
this.logger.warn(`draft entry event failed: ${err instanceof Error ? err.message : String(err)}`);
}
}
return {
entries: done.written.map(({ entry, photoCount }) => ({