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 { ImageGenTool } from "@/tools/ImageGenTool"
|
||||||
import { VideoGenShape } from "@/shapes/VideoGenShapeUtil"
|
import { VideoGenShape } from "@/shapes/VideoGenShapeUtil"
|
||||||
import { VideoGenTool } from "@/tools/VideoGenTool"
|
import { VideoGenTool } from "@/tools/VideoGenTool"
|
||||||
// DISABLED: Drawfast tool needs debugging - see task-059
|
// Drawfast - dev only
|
||||||
// import { DrawfastShape } from "@/shapes/DrawfastShapeUtil"
|
import { DrawfastShape } from "@/shapes/DrawfastShapeUtil"
|
||||||
// import { DrawfastTool } from "@/tools/DrawfastTool"
|
import { DrawfastTool } from "@/tools/DrawfastTool"
|
||||||
|
|
||||||
// Feature flags - disable experimental features in production
|
// Feature flags - disable experimental features in production
|
||||||
const IS_PRODUCTION = import.meta.env.PROD
|
const IS_PRODUCTION = import.meta.env.PROD
|
||||||
const ENABLE_WORKFLOW = !IS_PRODUCTION // Workflow blocks - dev only
|
const ENABLE_WORKFLOW = !IS_PRODUCTION // Workflow blocks - dev only
|
||||||
const ENABLE_CALENDAR = !IS_PRODUCTION // Calendar - dev only
|
const ENABLE_CALENDAR = !IS_PRODUCTION // Calendar - dev only
|
||||||
|
const ENABLE_DRAWFAST = !IS_PRODUCTION // Drawfast - dev only
|
||||||
import { LiveImageProvider } from "@/hooks/useLiveImage"
|
import { LiveImageProvider } from "@/hooks/useLiveImage"
|
||||||
import { MultmuxTool } from "@/tools/MultmuxTool"
|
import { MultmuxTool } from "@/tools/MultmuxTool"
|
||||||
import { MultmuxShape } from "@/shapes/MultmuxShapeUtil"
|
import { MultmuxShape } from "@/shapes/MultmuxShapeUtil"
|
||||||
|
|
@ -175,7 +176,7 @@ const customShapeUtils = [
|
||||||
FathomNoteShape, // Individual Fathom meeting notes created from FathomMeetingsBrowser
|
FathomNoteShape, // Individual Fathom meeting notes created from FathomMeetingsBrowser
|
||||||
ImageGenShape,
|
ImageGenShape,
|
||||||
VideoGenShape,
|
VideoGenShape,
|
||||||
// DrawfastShape, // DISABLED - see task-059
|
...(ENABLE_DRAWFAST ? [DrawfastShape] : []), // Drawfast - dev only
|
||||||
MultmuxShape,
|
MultmuxShape,
|
||||||
MycelialIntelligenceShape, // AI-powered collaborative intelligence shape
|
MycelialIntelligenceShape, // AI-powered collaborative intelligence shape
|
||||||
PrivateWorkspaceShape, // Private zone for Google Export data sovereignty
|
PrivateWorkspaceShape, // Private zone for Google Export data sovereignty
|
||||||
|
|
@ -201,7 +202,7 @@ const customTools = [
|
||||||
FathomMeetingsTool,
|
FathomMeetingsTool,
|
||||||
ImageGenTool,
|
ImageGenTool,
|
||||||
VideoGenTool,
|
VideoGenTool,
|
||||||
// DrawfastTool, // DISABLED - see task-059
|
...(ENABLE_DRAWFAST ? [DrawfastTool] : []), // Drawfast - dev only
|
||||||
MultmuxTool,
|
MultmuxTool,
|
||||||
PrivateWorkspaceTool,
|
PrivateWorkspaceTool,
|
||||||
GoogleItemTool,
|
GoogleItemTool,
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,9 @@ import {
|
||||||
|
|
||||||
// Feature flags - disable experimental features in production
|
// Feature flags - disable experimental features in production
|
||||||
const IS_PRODUCTION = import.meta.env.PROD
|
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_CALENDAR = !IS_PRODUCTION // Calendar - dev only
|
||||||
|
const ENABLE_WORKFLOW = !IS_PRODUCTION // Workflow - dev only
|
||||||
import { useState, useEffect } from "react"
|
import { useState, useEffect } from "react"
|
||||||
import { saveToPdf } from "../utils/pdfUtils"
|
import { saveToPdf } from "../utils/pdfUtils"
|
||||||
import { TLFrameShape } from "tldraw"
|
import { TLFrameShape } from "tldraw"
|
||||||
|
|
@ -147,6 +148,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) {
|
||||||
*/}
|
*/}
|
||||||
<TldrawUiMenuItem {...tools.Map} />
|
<TldrawUiMenuItem {...tools.Map} />
|
||||||
{ENABLE_CALENDAR && <TldrawUiMenuItem {...tools.calendar} />}
|
{ENABLE_CALENDAR && <TldrawUiMenuItem {...tools.calendar} />}
|
||||||
|
{ENABLE_WORKFLOW && <TldrawUiMenuItem {...tools.WorkflowBlock} />}
|
||||||
<TldrawUiMenuItem {...tools.SlideShape} />
|
<TldrawUiMenuItem {...tools.SlideShape} />
|
||||||
<TldrawUiMenuItem {...tools.VideoChat} />
|
<TldrawUiMenuItem {...tools.VideoChat} />
|
||||||
<TldrawUiMenuItem {...tools.FathomMeetings} />
|
<TldrawUiMenuItem {...tools.FathomMeetings} />
|
||||||
|
|
|
||||||
|
|
@ -254,6 +254,13 @@ export const overrides: TLUiOverrides = {
|
||||||
readonlyOk: true,
|
readonlyOk: true,
|
||||||
onSelect: () => editor.setCurrentTool("calendar"),
|
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)
|
// MycelialIntelligence removed - now a permanent UI bar (MycelialIntelligenceBar.tsx)
|
||||||
hand: {
|
hand: {
|
||||||
...tools.hand,
|
...tools.hand,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue