feat: enable Drawfast in dev, add Workflow to context menu
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
36e269c55f
commit
bf9c9fad93
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) {
|
|||
*/}
|
||||
<TldrawUiMenuItem {...tools.Map} />
|
||||
{ENABLE_CALENDAR && <TldrawUiMenuItem {...tools.calendar} />}
|
||||
{ENABLE_WORKFLOW && <TldrawUiMenuItem {...tools.WorkflowBlock} />}
|
||||
<TldrawUiMenuItem {...tools.SlideShape} />
|
||||
<TldrawUiMenuItem {...tools.VideoChat} />
|
||||
<TldrawUiMenuItem {...tools.FathomMeetings} />
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue