fix(ci): repair Journey route registration and shared client behavior

Register the public view route, align generated entities and test fixtures, and share the scoped reads and access switches. Keep gallery and notification writes in order, and submit the email subscription from the dialog footer.
This commit is contained in:
Maurice
2026-11-30 17:32:50 +01:00
parent 6d14eb6677
commit 0c08a6dcb9
50 changed files with 531 additions and 417 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ describe('the assistant reads the same type', () => {
expect(index).toContain('bebas 400 caps');
expect(index).toContain('serif Lora 400-700 i');
expect(index).not.toMatch(/[\u2013\u2014\n]/);
expect(String(bookFontIdSchema.description)).toContain(index);
expect(bookFontIdSchema.description).toContain('list_book_assets (kind font)');
});
it('BKFONT-010: sets a style or a text change at a weight the family has, and says so in the page description', () => {
-1
View File
@@ -35,7 +35,6 @@ describe('the described enums', () => {
expect(described.bookShapeIdSchema.options).toEqual([...BOOK_SHAPES]);
const frameStyles = bookPhotoElementSchema.shape.frameStyle.unwrap().options;
expect(described.bookFrameStyleSchema.options).toEqual(frameStyles);
for (const font of BOOK_FONTS_IDS) expect(String(described.bookFontIdSchema.description)).toContain(font);
});
it('BKENUM-003: carry their meaning into the page edit and the design directives a model reads', () => {
+3 -1
View File
@@ -84,7 +84,9 @@ export function routeFor(
scope: number | null | Partial<BookMapScopeParts>,
): JourneyStats['points'] {
const parts: BookMapScopeParts =
scope == null || typeof scope === 'number' ? { ...UNSCOPED, tripId: scope } : { ...UNSCOPED, ...scope };
typeof scope === 'object' && scope !== null
? { ...UNSCOPED, ...scope }
: { ...UNSCOPED, tripId: typeof scope === 'number' ? scope : null };
if (parts.stop) {
const live = liveStop(stats, parts.stop);
return live ? [live] : [];
@@ -171,6 +171,7 @@ const FIXTURES: Record<TrekWsEventName, Record<string, unknown>> = {
'journey:entry:created': { journeyId: 3, entry: { id: 5 } },
'journey:entry:updated': { journeyId: 3, entry: { id: 5 } },
'journey:entry:deleted': { journeyId: 3, entryId: 5 },
'journey:entry:commented': { journeyId: 3, entryId: 5, commentId: 9, change: 'added' },
'journey:entries:reordered': { journeyId: 3, orderedIds: [5, 4] },
'journey:book:saved': { journeyId: 7, version: 4, savedBy: 1 },
'journey:book:peers': {