mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
feat(studio): a sticker library of 148 hand-drawn illustrations, placed, recoloured and searched by people and the assistant
A new element kind, sticker, draws layered vector illustrations from a library in twelve themes, behind its own entry point @trek/shared/stickers. Studio gets a Stickers rail section (themes, localized search, recently used, click or drag to place) and an inspector for colour slots, mirroring, turning and opacity. The assistant gets list_book_assets, add and style of stickers in edit_book_page, stickers in describe_book_page and an overlap warning for a sticker over words. BOOK_SCHEMA_REV goes to 2.
This commit is contained in:
@@ -377,7 +377,8 @@ describe('the whole-book design through the Studio chat', () => {
|
||||
expect([undone.status, undone.body]).toEqual([200, { undone: true }]);
|
||||
const restored = await bookOf(j.journeyId, j.ownerId);
|
||||
expect(restored.version).toBe(3);
|
||||
expect(restored.document).toEqual(before.document);
|
||||
// Put back as it was, written by this build: stamped with its format revision (book-schema-rev.ts).
|
||||
expect({ ...restored.document, schemaRev: undefined }).toEqual({ ...before.document, schemaRev: undefined });
|
||||
expect(restored.document.spreads.map((spread) => spread.id)).toEqual(j.created.spread_ids);
|
||||
expect(savedTo(j.ownerId)).toBe(1);
|
||||
const again = await undo(j.base, j.ownerId, turn.heldId);
|
||||
|
||||
@@ -37,6 +37,7 @@ const BOOK_TOOLS = [
|
||||
'get_book',
|
||||
'describe_book_page',
|
||||
'list_book_layouts',
|
||||
'list_book_assets',
|
||||
'create_book',
|
||||
'add_book_pages',
|
||||
'move_book_page',
|
||||
|
||||
Reference in New Issue
Block a user