From 3285bb816eb7e18c539bb6d91e9ba4251e3853d1 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 26 Dec 2025 16:51:10 -0500 Subject: [PATCH] feat: enable Drawfast in dev, add Workflow to context menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed Drawfast from disabled to dev-only (can test in dev mode) - Added WorkflowBlock to overrides.tsx for context menu support - Added Workflow to context menu (dev only) All three features (Drawfast, Calendar, Workflow) now available in dev only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/routes/Board.tsx | 11 ++++++----- src/ui/CustomContextMenu.tsx | 4 +++- src/ui/overrides.tsx | 7 +++++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/routes/Board.tsx b/src/routes/Board.tsx index e9855bc..9c1a332 100644 --- a/src/routes/Board.tsx +++ b/src/routes/Board.tsx @@ -47,14 +47,15 @@ import { ImageGenShape } from "@/shapes/ImageGenShapeUtil" import { ImageGenTool } from "@/tools/ImageGenTool" import { VideoGenShape } from "@/shapes/VideoGenShapeUtil" import { VideoGenTool } from "@/tools/VideoGenTool" -// DISABLED: Drawfast tool needs debugging - see task-059 -// import { DrawfastShape } from "@/shapes/DrawfastShapeUtil" -// import { DrawfastTool } from "@/tools/DrawfastTool" +// Drawfast - dev only +import { DrawfastShape } from "@/shapes/DrawfastShapeUtil" +import { DrawfastTool } from "@/tools/DrawfastTool" // Feature flags - disable experimental features in production const IS_PRODUCTION = import.meta.env.PROD const ENABLE_WORKFLOW = !IS_PRODUCTION // Workflow blocks - dev only const ENABLE_CALENDAR = !IS_PRODUCTION // Calendar - dev only +const ENABLE_DRAWFAST = !IS_PRODUCTION // Drawfast - dev only import { LiveImageProvider } from "@/hooks/useLiveImage" import { MultmuxTool } from "@/tools/MultmuxTool" import { MultmuxShape } from "@/shapes/MultmuxShapeUtil" @@ -175,7 +176,7 @@ const customShapeUtils = [ FathomNoteShape, // Individual Fathom meeting notes created from FathomMeetingsBrowser ImageGenShape, VideoGenShape, - // DrawfastShape, // DISABLED - see task-059 + ...(ENABLE_DRAWFAST ? [DrawfastShape] : []), // Drawfast - dev only MultmuxShape, MycelialIntelligenceShape, // AI-powered collaborative intelligence shape PrivateWorkspaceShape, // Private zone for Google Export data sovereignty @@ -201,7 +202,7 @@ const customTools = [ FathomMeetingsTool, ImageGenTool, VideoGenTool, - // DrawfastTool, // DISABLED - see task-059 + ...(ENABLE_DRAWFAST ? [DrawfastTool] : []), // Drawfast - dev only MultmuxTool, PrivateWorkspaceTool, GoogleItemTool, diff --git a/src/ui/CustomContextMenu.tsx b/src/ui/CustomContextMenu.tsx index ef89f45..8a9cd3e 100644 --- a/src/ui/CustomContextMenu.tsx +++ b/src/ui/CustomContextMenu.tsx @@ -17,8 +17,9 @@ import { // Feature flags - disable experimental features in production const IS_PRODUCTION = import.meta.env.PROD -const ENABLE_DRAWFAST = false // Drawfast disabled everywhere - needs debugging +const ENABLE_DRAWFAST = !IS_PRODUCTION // Drawfast - dev only const ENABLE_CALENDAR = !IS_PRODUCTION // Calendar - dev only +const ENABLE_WORKFLOW = !IS_PRODUCTION // Workflow - dev only import { useState, useEffect } from "react" import { saveToPdf } from "../utils/pdfUtils" import { TLFrameShape } from "tldraw" @@ -147,6 +148,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) { */} {ENABLE_CALENDAR && } + {ENABLE_WORKFLOW && } diff --git a/src/ui/overrides.tsx b/src/ui/overrides.tsx index c3d91fc..eee1f43 100644 --- a/src/ui/overrides.tsx +++ b/src/ui/overrides.tsx @@ -254,6 +254,13 @@ export const overrides: TLUiOverrides = { readonlyOk: true, onSelect: () => editor.setCurrentTool("calendar"), }, + WorkflowBlock: { + id: "WorkflowBlock", + icon: "sticker", + label: "Workflow Block", + readonlyOk: true, + onSelect: () => editor.setCurrentTool("WorkflowBlock"), + }, // MycelialIntelligence removed - now a permanent UI bar (MycelialIntelligenceBar.tsx) hand: { ...tools.hand,