From 865d6f768106e743d5c8a78b16938398e79dc7bd Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 15 Dec 2025 19:44:08 -0500 Subject: [PATCH] feat: replace MycrozineTemplate with MycroZineGenerator in toolbar and context menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated CustomToolbar.tsx to use MycroZineGenerator tool - Updated CustomContextMenu.tsx to use MycroZineGenerator in Create Tool submenu - Updated overrides.tsx with MycroZineGenerator tool definition - Removed all references to old MycrozineTemplate 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/ui/CustomContextMenu.tsx | 2 +- src/ui/CustomToolbar.tsx | 10 +++++----- src/ui/overrides.tsx | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ui/CustomContextMenu.tsx b/src/ui/CustomContextMenu.tsx index 4a02086..17fd400 100644 --- a/src/ui/CustomContextMenu.tsx +++ b/src/ui/CustomContextMenu.tsx @@ -252,7 +252,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) { - + diff --git a/src/ui/CustomToolbar.tsx b/src/ui/CustomToolbar.tsx index 4fa4a57..6303d26 100644 --- a/src/ui/CustomToolbar.tsx +++ b/src/ui/CustomToolbar.tsx @@ -692,13 +692,13 @@ export function CustomToolbar() { isSelected={tools["Markdown"].id === editor.getCurrentToolId()} /> )} - {tools["MycrozineTemplate"] && ( + {tools["MycroZineGenerator"] && ( )} diff --git a/src/ui/overrides.tsx b/src/ui/overrides.tsx index 23e2f06..14ebc23 100644 --- a/src/ui/overrides.tsx +++ b/src/ui/overrides.tsx @@ -142,14 +142,14 @@ export const overrides: TLUiOverrides = { type: "Markdown", onSelect: () => editor.setCurrentTool("Markdown"), }, - MycrozineTemplate: { - id: "MycrozineTemplate", - icon: "rectangle", - label: "Mycrozine Template", - type: "MycrozineTemplate", + MycroZineGenerator: { + id: "MycroZineGenerator", + icon: "zine", + label: "MycroZine Generator", + type: "MycroZineGenerator", kbd: "ctrl+shift+z", readonlyOk: true, - onSelect: () => editor.setCurrentTool("MycrozineTemplate"), + onSelect: () => editor.setCurrentTool("MycroZineGenerator"), }, Prompt: { id: "Prompt",