feat(studio): 71 more designed pages and five new styles, each with a theme of its own

Every style now has four covers and five double spreads, 108 in all, and the
spreads of each style take different photo counts, from a words-only page to
eight photos, so a book can be laid on them without an empty frame. The five
new styles come with their own themes: Riso (overprinted spot inks), Magazine
(a travel magazine), Retro travel (vintage posters), Midnight (a dark film
look) and Field notes (a traveller's notebook). Each new style has a cover
composer for the design engine and a recipe for the assistant, and its chip,
theme and template names are translated into every language.
This commit is contained in:
Maurice
2026-10-24 19:17:56 +02:00
parent 06a1dcd730
commit 8ce3b24a01
90 changed files with 23566 additions and 32 deletions
@@ -130,7 +130,7 @@ describe('the art director in the Studio', () => {
const paint = i.paint as { pattern?: string } | undefined;
return paint?.pattern ? [paint.pattern] : [];
});
expect(patterns).toEqual(['checker']);
expect(patterns).toEqual(['checker', 'dots', 'grid']);
for (const id of patterns) expect(BOOK_PATTERNS as readonly string[]).toContain(id);
});
@@ -154,7 +154,7 @@ describe('the art director in the Studio', () => {
});
it('ASTRCP-004: keeps to a budget the cache carries every turn, without dashes', () => {
expect(BOOK_RECIPES_PROMPT.length).toBeLessThan(9500);
expect(BOOK_RECIPES_PROMPT.length).toBeLessThan(14500);
expect(BOOK_RECIPES_PROMPT.split('\n').length).toBeLessThanOrEqual(24);
expect(BOOK_RECIPES_PROMPT).not.toMatch(/[\u2013\u2014]/);
expect(BOOK_RECIPES_PROMPT).not.toContain(' - ');
@@ -74,9 +74,9 @@ describe('decorated templates in list_book_layouts', () => {
const all = json(await mcp.listLayouts({ journeyId: journey.id }, ctx(viewer.id)));
const single = all.decorated.single as Row[];
const inner = all.decorated.inner as Row[];
expect(single).toHaveLength(21);
expect(inner).toHaveLength(16);
expect(new Set(single.map((r) => r.archetype)).size).toBe(7);
expect(single).toHaveLength(48);
expect(inner).toHaveLength(60);
expect(new Set(single.map((r) => r.archetype)).size).toBe(12);
expect(single.find((r) => r.id === 'grid-badge-circle')).toMatchObject({
archetype: 'grid-badge',
photoSlots: 4,
@@ -86,7 +86,7 @@ describe('decorated templates in list_book_layouts', () => {
expect(all.notes.decorated).toMatch(/whole designed page/);
const narrowed = json(await mcp.listLayouts({ journeyId: journey.id, role: 'single' }, ctx(owner.id)));
expect([narrowed.decorated.single.length, narrowed.decorated.inner]).toEqual([21, []]);
expect([narrowed.decorated.single.length, narrowed.decorated.inner]).toEqual([48, []]);
});
});