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:
parent
9167342d98
commit
c42d78266e
|
|
@ -65,14 +65,16 @@ import { GoogleItemTool } from "@/tools/GoogleItemTool"
|
||||||
import { MapShape } from "@/shapes/MapShapeUtil"
|
import { MapShape } from "@/shapes/MapShapeUtil"
|
||||||
import { MapTool } from "@/tools/MapTool"
|
import { MapTool } from "@/tools/MapTool"
|
||||||
// Workflow Builder - Flowy-like workflow blocks
|
// Workflow Builder - Flowy-like workflow blocks
|
||||||
import { WorkflowBlockShape } from "@/shapes/WorkflowBlockShapeUtil"
|
// TODO: Fix TypeScript errors in workflow files before re-enabling
|
||||||
import { WorkflowBlockTool } from "@/tools/WorkflowBlockTool"
|
// import { WorkflowBlockShape } from "@/shapes/WorkflowBlockShapeUtil"
|
||||||
|
// import { WorkflowBlockTool } from "@/tools/WorkflowBlockTool"
|
||||||
// Calendar - Unified calendar with view switching (browser, widget, year)
|
// Calendar - Unified calendar with view switching (browser, widget, year)
|
||||||
import { CalendarShape } from "@/shapes/CalendarShapeUtil"
|
import { CalendarShape } from "@/shapes/CalendarShapeUtil"
|
||||||
import { CalendarTool } from "@/tools/CalendarTool"
|
import { CalendarTool } from "@/tools/CalendarTool"
|
||||||
import { CalendarEventShape } from "@/shapes/CalendarEventShapeUtil"
|
import { CalendarEventShape } from "@/shapes/CalendarEventShapeUtil"
|
||||||
import { registerWorkflowPropagator } from "@/propagators/WorkflowPropagator"
|
// TODO: Fix TypeScript errors in workflow files before re-enabling
|
||||||
import { setupBlockExecutionListener } from "@/lib/workflow/executor"
|
// import { registerWorkflowPropagator } from "@/propagators/WorkflowPropagator"
|
||||||
|
// import { setupBlockExecutionListener } from "@/lib/workflow/executor"
|
||||||
import {
|
import {
|
||||||
lockElement,
|
lockElement,
|
||||||
unlockElement,
|
unlockElement,
|
||||||
|
|
@ -93,7 +95,7 @@ import "@/css/anonymous-banner.css"
|
||||||
import "react-cmdk/dist/cmdk.css"
|
import "react-cmdk/dist/cmdk.css"
|
||||||
import "@/css/style.css"
|
import "@/css/style.css"
|
||||||
import "@/css/obsidian-browser.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
|
// Helper to validate and fix tldraw IndexKey format
|
||||||
// tldraw uses fractional indexing where the first letter encodes integer part length:
|
// 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
|
PrivateWorkspaceShape, // Private zone for Google Export data sovereignty
|
||||||
GoogleItemShape, // Individual items from Google Export with privacy badges
|
GoogleItemShape, // Individual items from Google Export with privacy badges
|
||||||
MapShape, // Open Mapping - OSM map shape
|
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)
|
CalendarShape, // Calendar - Unified with view switching (browser/widget/year)
|
||||||
CalendarEventShape, // Calendar - Individual event cards
|
CalendarEventShape, // Calendar - Individual event cards
|
||||||
]
|
]
|
||||||
|
|
@ -199,7 +201,7 @@ const customTools = [
|
||||||
PrivateWorkspaceTool,
|
PrivateWorkspaceTool,
|
||||||
GoogleItemTool,
|
GoogleItemTool,
|
||||||
MapTool, // Open Mapping - OSM map tool
|
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
|
CalendarTool, // Calendar - Unified with view switching
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -1374,8 +1376,9 @@ export function Board() {
|
||||||
])
|
])
|
||||||
|
|
||||||
// Register workflow propagator for real-time data flow
|
// Register workflow propagator for real-time data flow
|
||||||
const cleanupWorkflowPropagator = registerWorkflowPropagator(editor)
|
// TODO: Fix TypeScript errors in workflow files before re-enabling
|
||||||
const cleanupBlockExecution = setupBlockExecutionListener(editor)
|
// const cleanupWorkflowPropagator = registerWorkflowPropagator(editor)
|
||||||
|
// const cleanupBlockExecution = setupBlockExecutionListener(editor)
|
||||||
|
|
||||||
// Clean up corrupted shapes that cause "No nearest point found" errors
|
// Clean up corrupted shapes that cause "No nearest point found" errors
|
||||||
// This typically happens with draw/line shapes that have no points
|
// This typically happens with draw/line shapes that have no points
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ import { createShapeId } from "tldraw"
|
||||||
import type { ObsidianObsNote } from "../lib/obsidianImporter"
|
import type { ObsidianObsNote } from "../lib/obsidianImporter"
|
||||||
import { HolonData } from "../lib/HoloSphereService"
|
import { HolonData } from "../lib/HoloSphereService"
|
||||||
import { FathomMeetingsPanel } from "../components/FathomMeetingsPanel"
|
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 { getFathomApiKey, saveFathomApiKey, removeFathomApiKey, isFathomApiKeyConfigured } from "../lib/fathomApiKey"
|
||||||
import { getMyConnections, updateEdgeMetadata, createConnection, removeConnection, updateTrustLevel } from "../lib/networking/connectionService"
|
import { getMyConnections, updateEdgeMetadata, createConnection, removeConnection, updateTrustLevel } from "../lib/networking/connectionService"
|
||||||
import { TRUST_LEVEL_COLORS, type TrustLevel, type UserConnectionWithProfile, type EdgeMetadata } from "../lib/networking/types"
|
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()}
|
isSelected={tools["calendar"].id === editor.getCurrentToolId()}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{/* Workflow Builder - Toggle Palette */}
|
{/* Workflow Builder - Toggle Palette (disabled - TypeScript errors)
|
||||||
<TldrawUiMenuItem
|
<TldrawUiMenuItem
|
||||||
id="workflow-palette"
|
id="workflow-palette"
|
||||||
icon="sticker"
|
icon="sticker"
|
||||||
label="Workflow Blocks"
|
label="Workflow Blocks"
|
||||||
onSelect={() => setShowWorkflowPalette(!showWorkflowPalette)}
|
onSelect={() => setShowWorkflowPalette(!showWorkflowPalette)}
|
||||||
/>
|
/>
|
||||||
|
*/}
|
||||||
{/* Refresh All ObsNotes Button */}
|
{/* Refresh All ObsNotes Button */}
|
||||||
{(() => {
|
{(() => {
|
||||||
const allShapes = editor.getCurrentPageShapes()
|
const allShapes = editor.getCurrentPageShapes()
|
||||||
|
|
@ -826,11 +828,12 @@ export function CustomToolbar() {
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Workflow Builder Palette */}
|
{/* Workflow Builder Palette (disabled - TypeScript errors)
|
||||||
<WorkflowPalette
|
<WorkflowPalette
|
||||||
isOpen={showWorkflowPalette}
|
isOpen={showWorkflowPalette}
|
||||||
onClose={() => setShowWorkflowPalette(false)}
|
onClose={() => setShowWorkflowPalette(false)}
|
||||||
/>
|
/>
|
||||||
|
*/}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue