From 5d9f41c64b8dd1e24850c972864782ffbea4edcd Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Mon, 15 Dec 2025 19:49:35 -0500 Subject: [PATCH] refactor: reorder context menu and remove Collections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move "Create Tool" to top of context menu - Move "Shortcut to Frames" to second position - Remove "Collections" submenu (functionality still available via keyboard shortcuts) - Cleaner menu structure prioritizing creation tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/ui/CustomContextMenu.tsx | 134 ++++++++++++++--------------------- 1 file changed, 52 insertions(+), 82 deletions(-) diff --git a/src/ui/CustomContextMenu.tsx b/src/ui/CustomContextMenu.tsx index 17fd400..f681b8c 100644 --- a/src/ui/CustomContextMenu.tsx +++ b/src/ui/CustomContextMenu.tsx @@ -122,6 +122,58 @@ export function CustomContextMenu(props: TLUiContextMenuProps) { return ( + {/* Creation Tools Group - Top priority */} + + + + + + {/* VideoGen - temporarily hidden until in better working state + + */} + {/* Drawfast - temporarily hidden until in better working state + + */} + + + + + {/* Holon - temporarily hidden until in better working state + + */} + {/* Terminal (Multmux) - temporarily hidden until in better working state + + */} + + + + + + + + + {/* Frames List - Second priority */} + + + {getAllFrames(editor).map((frame) => ( + { + const shape = editor.getShape(frame.id) + if (shape) { + editor.zoomToBounds(editor.getShapePageBounds(shape)!, { + animation: { duration: 400, easing: (t) => t * (2 - t) }, + }) + editor.select(frame.id) + } + }} + /> + ))} + + + {/* Essential non-edit commands from default context menu */} actions.redo.onSelect("context-menu")} /> - - {/* Frames List - Moved to top */} - - - {getAllFrames(editor).map((frame) => ( - { - const shape = editor.getShape(frame.id) - if (shape) { - editor.zoomToBounds(editor.getShapePageBounds(shape)!, { - animation: { duration: 400, easing: (t) => t * (2 - t) }, - }) - editor.select(frame.id) - } - }} - /> - ))} - - {/* Camera Controls Group */} @@ -226,66 +256,6 @@ export function CustomContextMenu(props: TLUiContextMenuProps) { - {/* Creation Tools Group - Always available regardless of selection */} - - - - - - {/* VideoGen - temporarily hidden until in better working state - - */} - {/* Drawfast - temporarily hidden until in better working state - - */} - - - - - {/* Holon - temporarily hidden until in better working state - - */} - {/* Terminal (Multmux) - temporarily hidden until in better working state - - */} - - - - - - - - - {/* Collections Group */} - - - - - - - - - - {/* TODO: FIX & IMPLEMENT BROADCASTING*/} {/*