From e6204ca53f2cc6e9d845bce52f83566cd4be118f Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 26 Dec 2025 16:43:58 -0500 Subject: [PATCH] feat: hide Drawfast and Calendar from context menu in production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extended feature flags to context menu: - ENABLE_DRAWFAST = false (disabled everywhere) - ENABLE_CALENDAR = !IS_PRODUCTION (dev only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/ui/CustomContextMenu.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ui/CustomContextMenu.tsx b/src/ui/CustomContextMenu.tsx index 6a379a3..ef89f45 100644 --- a/src/ui/CustomContextMenu.tsx +++ b/src/ui/CustomContextMenu.tsx @@ -14,6 +14,11 @@ import { TLUiContextMenuProps, useEditor } from "tldraw" import { cameraHistory, } from "./cameraUtils" + +// 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_CALENDAR = !IS_PRODUCTION // Calendar - dev only import { useState, useEffect } from "react" import { saveToPdf } from "../utils/pdfUtils" import { TLFrameShape } from "tldraw" @@ -129,7 +134,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) { - + {ENABLE_DRAWFAST && } @@ -141,7 +146,7 @@ export function CustomContextMenu(props: TLUiContextMenuProps) { */} - + {ENABLE_CALENDAR && }