feat(web): MarkdownEditor — visual-only mode, drop Source tab #915
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
charles/agent-hooks#915
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
apps/web/src/components/markdown-editor/currently ships two modes toggled by a Source / Visual button pair. The Milkdown Crepe visual editor is the polished, user-facing surface; the CodeMirror Source pane is a fallback for power users that adds complexity and clutter.AC
MarkdownEditor.MarkdownSourcePaneand the CodeMirror source path from the component (or move them to a separate internal export only used bySpecEditorif still needed there).MarkdownEditorrenders only the Milkdown Crepe visual pane.mode,defaultMode,onModeChange,showModeToggle,sourceExtensions.toolbarslot — still used for the Assistant button and any future action.markdown-editor.test.tsx— remove mode-switch tests, add a smoke test that the Crepe pane mounts.SpecEditor(apps/web/src/components/spec-editor/spec-editor.tsx) owns its own CodeMirror instance independently — do not touch it.Notes
@milkdown/utilsreplaceAlland the controlled-value sync (useEffectonvalue) must be preserved.disabled,className,editorClassName,placeholder,crepeFeatures,crepeFeatureConfigs,data-testidprops.