From be29ae7aa7172bf66187e3215043f8340334f427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sun, 23 Aug 2026 04:18:08 +0000 Subject: [PATCH] delete two unreferenced components from another codebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MarkdownEditor and ui/start-confetti-button had no importers anywhere in the repo and both carried a different product's content: MarkdownEditor hardcoded https://app.pertento.ai/logo.png with alt="Pertento", and start-confetti-button spoke about 'the experiment' and 'Draft/Created' statuses. Translating either would have put feature words into ui.*, which D6 forbids — a shared namespace may not name a feature. todo/inputs-outside-forms named MarkdownEditor as deliberately-unwrapped, so that entry is updated rather than left pointing at a deleted file. --- src/workspaces/components/MarkdownEditor.tsx | 115 ---------- .../components/ui/start-confetti-button.tsx | 212 ------------------ todo/inputs-outside-forms/_index.md | 7 +- 3 files changed, 4 insertions(+), 330 deletions(-) delete mode 100644 src/workspaces/components/MarkdownEditor.tsx delete mode 100644 src/workspaces/components/ui/start-confetti-button.tsx diff --git a/src/workspaces/components/MarkdownEditor.tsx b/src/workspaces/components/MarkdownEditor.tsx deleted file mode 100644 index be3c14dd..00000000 --- a/src/workspaces/components/MarkdownEditor.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import { useState } from 'react'; -import md from 'markdown-it'; -import ReactMarkdown from 'react-markdown'; -import remarkGfm from 'remark-gfm'; -import rehypeRaw from 'rehype-raw'; -import { Button } from '@/components/ui/button'; -import { Code, Eye } from 'lucide-react'; - -type MarkdownEditorProps = { - content: string; - onChange: (content: string) => void; - placeholder?: string; - greeting?: string; - firstName?: string; - lastName?: string; -}; - -export function MarkdownEditor({ - content, - onChange, - placeholder = 'Enter markdown...', - greeting, - firstName, - lastName, -}: MarkdownEditorProps) { - const [showPreview, setShowPreview] = useState(false); - - const markdown = md({ - html: true, - breaks: true, - linkify: true, - }); - - const processGreeting = (text: string) => { - return text - .replace(/\{\{firstName\}\}/g, firstName || '') - .replace(/\{\{fullName\}\}/g, `${firstName || ''} ${lastName || ''}`.trim()); - }; - - const processedGreeting = greeting ? processGreeting(greeting) : ''; - const greetingHtml = processedGreeting ? `

${processedGreeting}

` : ''; - const preview = markdown.render(content); - - return ( -
- {/* Toolbar */} -
- - -
- - {/* Content Area */} -
- {!showPreview ? ( -