Finish standard markdown table column drag-drop in live preview #142
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#142
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?
Standard live-preview markdown tables now support validated row drag/drop, but column drag/drop is still unresolved and was intentionally left out of the partial landing that closed the Bases migration issue.
Problem
The standard markdown table widget in
packages/plugins/plugin-markdown/src/lib/codemirror-extensions/table/editor-table.sveltedoes not currently persist column reordering through the new drag/drop path. During the extraction work for the Bases migration, row drag/drop was stabilized and covered by Playwright, but the focused column regression kept failing with unchanged markdown output after drop.Goal
Finish standard markdown table column drag/drop in live preview so dragging a column handle reorders the underlying markdown table source without regressing row reordering, widget rendering, or the existing column context-menu actions.
Scope
Non-goals
Acceptance Criteria
packages/workspace/e2e/markdown-rich-content.spec.tsor a narrower equivalent.pnpm --filter @lapis-notes/markdown checkpasses after the implementation.Implementation Notes
TableNode.moveColumn(...)and markdown serialization work in isolation, so the remaining defect is in the widget drag integration or post-drop update path rather than the table model itself.@dnd-kit/svelterow and column helper components, but only the row path is currently validated.Suggested Files or Specs To Inspect
packages/plugins/plugin-markdown/src/lib/codemirror-extensions/table/editor-table.sveltepackages/plugins/plugin-markdown/src/lib/codemirror-extensions/table/markdown-table-drag-handle.sveltepackages/plugins/plugin-markdown/src/lib/codemirror-extensions/table/markdown-table-drop-target.sveltepackages/workspace/e2e/markdown-rich-content.spec.tspackages/plugins/plugin-markdown/src/lib/codemirror-extensions/table/table-node.tsspec/src/20-packages/plugins/markdown/index.mdspec/src/30-cross-package-contracts/drag-drop-patterns.mdValidation Commands
pnpm --filter @lapis-notes/markdown checkpnpm --filter @lapis-notes/workspace exec playwright test e2e/markdown-rich-content.spec.ts -g 'renders markdown tables as interactive live-preview widgets|reorders markdown table'Follow-up Tasks
Implementation Summary
Populate when closing the issue.
New issueto Finish standard markdown table column drag-drop in live preview