fix: disable Flowy workflow feature temporarily

Workflow Builder (Flowy-style visual workflow blocks) has TypeScript errors.
Temporarily disabling to allow Calendar feature to deploy.

Features disabled:
- WorkflowBlockShape (visual workflow blocks)
- WorkflowBlockTool (click-to-place workflow blocks)
- WorkflowPropagator (real-time data flow between blocks)
- WorkflowPalette (drag-and-drop block palette)

TODO: Fix workflow TypeScript errors and re-enable when ready to test.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2025-12-23 11:23:32 -05:00
parent 0f7ad6e3a1
commit afd10a46f6
2 changed files with 18 additions and 12 deletions

View File

@ -65,14 +65,16 @@ import { GoogleItemTool } from "@/tools/GoogleItemTool"
import { MapShape } from "@/shapes/MapShapeUtil"
import { MapTool } from "@/tools/MapTool"
// Workflow Builder - Flowy-like workflow blocks
import { WorkflowBlockShape } from "@/shapes/WorkflowBlockShapeUtil"
import { WorkflowBlockTool } from "@/tools/WorkflowBlockTool"
// TODO: Fix TypeScript errors in workflow files before re-enabling
// import { WorkflowBlockShape } from "@/shapes/WorkflowBlockShapeUtil"
// import { WorkflowBlockTool } from "@/tools/WorkflowBlockTool"
// Calendar - Unified calendar with view switching (browser, widget, year)
import { CalendarShape } from "@/shapes/CalendarShapeUtil"
import { CalendarTool } from "@/tools/CalendarTool"
import { CalendarEventShape } from "@/shapes/CalendarEventShapeUtil"
import { registerWorkflowPropagator } from "@/propagators/WorkflowPropagator"
import { setupBlockExecutionListener } from "@/lib/workflow/executor"
// TODO: Fix TypeScript errors in workflow files before re-enabling
// import { registerWorkflowPropagator } from "@/propagators/WorkflowPropagator"
// import { setupBlockExecutionListener } from "@/lib/workflow/executor"
import {
lockElement,
unlockElement,
@ -93,7 +95,7 @@ import "@/css/anonymous-banner.css"
import "react-cmdk/dist/cmdk.css"
import "@/css/style.css"
import "@/css/obsidian-browser.css"
import "@/css/workflow.css"
// import "@/css/workflow.css" // TODO: Fix TypeScript errors in workflow files before re-enabling
// Helper to validate and fix tldraw IndexKey format
// tldraw uses fractional indexing where the first letter encodes integer part length:
@ -174,7 +176,7 @@ const customShapeUtils = [
PrivateWorkspaceShape, // Private zone for Google Export data sovereignty
GoogleItemShape, // Individual items from Google Export with privacy badges
MapShape, // Open Mapping - OSM map shape
WorkflowBlockShape, // Workflow Builder - Flowy-like blocks
// WorkflowBlockShape, // Workflow Builder - Flowy-like blocks (disabled - TypeScript errors)
CalendarShape, // Calendar - Unified with view switching (browser/widget/year)
CalendarEventShape, // Calendar - Individual event cards
]
@ -199,7 +201,7 @@ const customTools = [
PrivateWorkspaceTool,
GoogleItemTool,
MapTool, // Open Mapping - OSM map tool
WorkflowBlockTool, // Workflow Builder - click-to-place
// WorkflowBlockTool, // Workflow Builder - click-to-place (disabled - TypeScript errors)
CalendarTool, // Calendar - Unified with view switching
]
@ -1374,8 +1376,9 @@ export function Board() {
])
// Register workflow propagator for real-time data flow
const cleanupWorkflowPropagator = registerWorkflowPropagator(editor)
const cleanupBlockExecution = setupBlockExecutionListener(editor)
// TODO: Fix TypeScript errors in workflow files before re-enabling
// const cleanupWorkflowPropagator = registerWorkflowPropagator(editor)
// const cleanupBlockExecution = setupBlockExecutionListener(editor)
// Clean up corrupted shapes that cause "No nearest point found" errors
// This typically happens with draw/line shapes that have no points

View File

@ -14,7 +14,8 @@ import { createShapeId } from "tldraw"
import type { ObsidianObsNote } from "../lib/obsidianImporter"
import { HolonData } from "../lib/HoloSphereService"
import { FathomMeetingsPanel } from "../components/FathomMeetingsPanel"
import { WorkflowPalette } from "../components/workflow/WorkflowPalette"
// TODO: Fix TypeScript errors in workflow files before re-enabling
// import { WorkflowPalette } from "../components/workflow/WorkflowPalette"
import { getFathomApiKey, saveFathomApiKey, removeFathomApiKey, isFathomApiKeyConfigured } from "../lib/fathomApiKey"
import { getMyConnections, updateEdgeMetadata, createConnection, removeConnection, updateTrustLevel } from "../lib/networking/connectionService"
import { TRUST_LEVEL_COLORS, type TrustLevel, type UserConnectionWithProfile, type EdgeMetadata } from "../lib/networking/types"
@ -792,13 +793,14 @@ export function CustomToolbar() {
isSelected={tools["calendar"].id === editor.getCurrentToolId()}
/>
)}
{/* Workflow Builder - Toggle Palette */}
{/* Workflow Builder - Toggle Palette (disabled - TypeScript errors)
<TldrawUiMenuItem
id="workflow-palette"
icon="sticker"
label="Workflow Blocks"
onSelect={() => setShowWorkflowPalette(!showWorkflowPalette)}
/>
*/}
{/* Refresh All ObsNotes Button */}
{(() => {
const allShapes = editor.getCurrentPageShapes()
@ -826,11 +828,12 @@ export function CustomToolbar() {
/>
)}
{/* Workflow Builder Palette */}
{/* Workflow Builder Palette (disabled - TypeScript errors)
<WorkflowPalette
isOpen={showWorkflowPalette}
onClose={() => setShowWorkflowPalette(false)}
/>
*/}
</>
)
}