Compare commits
3 Commits
2a3406e8c4
...
04d6859b8a
| Author | SHA1 | Date |
|---|---|---|
|
|
04d6859b8a | |
|
|
859851c460 | |
|
|
26a94fbef0 |
|
|
@ -1,9 +1,10 @@
|
||||||
---
|
---
|
||||||
id: task-055
|
id: task-055
|
||||||
title: Integrate MycroZine generator tool into canvas
|
title: Integrate MycroZine generator tool into canvas
|
||||||
status: To Do
|
status: In Progress
|
||||||
assignee: []
|
assignee: []
|
||||||
created_date: '2025-12-15 23:41'
|
created_date: '2025-12-15 23:41'
|
||||||
|
updated_date: '2025-12-16 00:34'
|
||||||
labels:
|
labels:
|
||||||
- feature
|
- feature
|
||||||
- canvas
|
- canvas
|
||||||
|
|
@ -36,8 +37,8 @@ References mycro-zine repo at /home/jeffe/Github/mycro-zine for layout utilities
|
||||||
|
|
||||||
## Acceptance Criteria
|
## Acceptance Criteria
|
||||||
<!-- AC:BEGIN -->
|
<!-- AC:BEGIN -->
|
||||||
- [ ] #1 MycroZineGeneratorShapeUtil.tsx created
|
- [x] #1 MycroZineGeneratorShapeUtil.tsx created
|
||||||
- [ ] #2 MycroZineGeneratorTool.ts created and registered
|
- [x] #2 MycroZineGeneratorTool.ts created and registered
|
||||||
- [ ] #3 Ideation phase with embedded chat UI
|
- [ ] #3 Ideation phase with embedded chat UI
|
||||||
- [ ] #4 Drafts phase generates 8 images via Gemini and spawns on canvas
|
- [ ] #4 Drafts phase generates 8 images via Gemini and spawns on canvas
|
||||||
- [ ] #5 Feedback phase collects user input per page
|
- [ ] #5 Feedback phase collects user input per page
|
||||||
|
|
@ -45,3 +46,17 @@ References mycro-zine repo at /home/jeffe/Github/mycro-zine for layout utilities
|
||||||
- [ ] #7 Complete phase with print-ready download and template save
|
- [ ] #7 Complete phase with print-ready download and template save
|
||||||
- [ ] #8 Templates stored in localStorage for reprinting
|
- [ ] #8 Templates stored in localStorage for reprinting
|
||||||
<!-- AC:END -->
|
<!-- AC:END -->
|
||||||
|
|
||||||
|
## Implementation Notes
|
||||||
|
|
||||||
|
<!-- SECTION:NOTES:BEGIN -->
|
||||||
|
Starting implementation of full 5-phase MycroZineGenerator shape
|
||||||
|
|
||||||
|
Created MycroZineGeneratorShapeUtil.tsx with full 5-phase workflow (ideation, drafts, feedback, finalizing, complete)
|
||||||
|
|
||||||
|
Created MycroZineGeneratorTool.ts
|
||||||
|
|
||||||
|
Registered in Board.tsx
|
||||||
|
|
||||||
|
Build successful - no TypeScript errors
|
||||||
|
<!-- SECTION:NOTES:END -->
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ import { unfurlBookmarkUrl } from "../utils/unfurlBookmarkUrl"
|
||||||
import { handleInitialPageLoad } from "@/utils/handleInitialPageLoad"
|
import { handleInitialPageLoad } from "@/utils/handleInitialPageLoad"
|
||||||
import { MycrozineTemplateTool } from "@/tools/MycrozineTemplateTool"
|
import { MycrozineTemplateTool } from "@/tools/MycrozineTemplateTool"
|
||||||
import { MycrozineTemplateShape } from "@/shapes/MycrozineTemplateShapeUtil"
|
import { MycrozineTemplateShape } from "@/shapes/MycrozineTemplateShapeUtil"
|
||||||
|
import { MycroZineGeneratorTool } from "@/tools/MycroZineGeneratorTool"
|
||||||
|
import { MycroZineGeneratorShape } from "@/shapes/MycroZineGeneratorShapeUtil"
|
||||||
import {
|
import {
|
||||||
registerPropagators,
|
registerPropagators,
|
||||||
ChangePropagator,
|
ChangePropagator,
|
||||||
|
|
@ -144,6 +146,7 @@ const customShapeUtils = [
|
||||||
EmbedShape,
|
EmbedShape,
|
||||||
SlideShape,
|
SlideShape,
|
||||||
MycrozineTemplateShape,
|
MycrozineTemplateShape,
|
||||||
|
MycroZineGeneratorShape,
|
||||||
MarkdownShape,
|
MarkdownShape,
|
||||||
PromptShape,
|
PromptShape,
|
||||||
ObsNoteShape,
|
ObsNoteShape,
|
||||||
|
|
@ -168,6 +171,7 @@ const customTools = [
|
||||||
EmbedTool,
|
EmbedTool,
|
||||||
SlideShapeTool,
|
SlideShapeTool,
|
||||||
MycrozineTemplateTool,
|
MycrozineTemplateTool,
|
||||||
|
MycroZineGeneratorTool,
|
||||||
MarkdownTool,
|
MarkdownTool,
|
||||||
PromptShapeTool,
|
PromptShapeTool,
|
||||||
GestureTool,
|
GestureTool,
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { BaseBoxShapeTool } from "tldraw"
|
||||||
|
|
||||||
|
export class MycroZineGeneratorTool extends BaseBoxShapeTool {
|
||||||
|
static override id = "MycroZineGenerator"
|
||||||
|
static override initial = "idle"
|
||||||
|
override shapeType = "MycroZineGenerator"
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue