feat: usable spatial canvas — drag/pan/zoom, link UX, wiki-link editing#29
Merged
Merged
Conversation
The final roadmap slice: the spatial canvas becomes directly usable and links become first-class in the editor. Canvas interaction (ui/src/View.res CanvasView + DomBindings): - Drag notes: mousedown on a note starts a drag; one set of document-level mousemove/mouseup listeners moves it (delta ÷ zoom) even when the pointer leaves the note. Shift-click adds to the selection. - Drag the background to pan (incremental PanCanvas); wheel to zoom. Link-creation UX (NoteEditor): - Links and backlinks now render note *titles*, not raw UUIDs, and are clickable to navigate. - An "add link" picker: type to filter other notes, click to link. - A "Linked from" backlinks panel. Wiki-link editing (core): - notebook.set_content derives [[Title]] links from a note's content (case-insensitive title resolution, self-reference skipped, additive — never removes on text deletion). wasm update_content now returns a delta so target backlinks update in the UI too. Verified: cargo test (29 unit incl. set_content derivation; property + golden suites); deno test:ui (10, incl. a new wiki-link delta contract); deno lint + cargo fmt/clippy (-D warnings, wasm) clean. E2E (headless Chromium): the link picker adds a link shown by title; backlinks list the source; typing [[Alpha]] derives the link; a canvas note drags 150→230px; axe-core still 0 serious/critical WCAG 2.2 AA. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PAEqVP7Y3bZDhtAaPUTbps
|
🔍 Hypatia Security ScanFindings: 59 issues detected
View findings[
{
"reason": "Issue in boj-build.yml",
"type": "missing_timeout_minutes",
"file": "boj-build.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in codeql.yml",
"type": "missing_timeout_minutes",
"file": "codeql.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in hypatia-scan.yml",
"type": "missing_timeout_minutes",
"file": "hypatia-scan.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
hyperpolymath
marked this pull request as ready for review
July 3, 2026 02:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The final roadmap follow-up (Import/export ✅ → Accessibility+PWA ✅ → Differentiators ✅ → Usable canvas). Makes the spatial canvas directly usable with a mouse and turns links into first-class editor objects. Also lands wiki-link editing (the
[[…]]parser shipped in #26; the picker + reconciliation live here as planned).Canvas interaction (
CanvasView+DomBindings)mousemove/mouseuplisteners moves it (delta ÷ zoom) even when the pointer leaves the note. Shift-click adds to the selection.PanCanvas); wheel to zoom.Link-creation UX (
NoteEditor)Wiki-link editing (core)
Notebook::set_contentderives[[Title]]links from a note's content (case-insensitive resolution, self-reference skipped, additive — never removes on text deletion).wasm update_contentnow returns a delta so target backlinks update in the UI too.Verified
cargo test— 29 unit tests (incl.set_contentderivation) plus property/golden suites.deno task test:ui— 10 tests, incl. a new wiki-link delta contract across the wasm boundary.deno lint+cargo fmt --check+cargo clippy --features wasm -D warningsclean.[[Alpha]]derives the link; a canvas note drags 150→230px; axe-core still 0 serious/critical WCAG 2.2 AA.With this, the README MVP checklist is functionally complete (create/edit/delete, spatial canvas with drag-and-drop, bidirectional linking, search, local storage), plus the post-MVP differentiators (wiki-links, graph view, agents, import/export, PWA, accessibility). Known-red estate governance checks (ReScript-language ban, scorecard staleness) remain pre-existing policy on
mainand out of scope.🤖 Generated with Claude Code
https://claude.ai/code/session_01PAEqVP7Y3bZDhtAaPUTbps
Generated by Claude Code