feat(drawnix): support nested summary rendering #4

Merged
jesse merged 6 commits from feat/drawnix-mind-summarize-topics into master 2026-05-04 21:22:17 +02:00
Owner

Summary

  • Keeps the Summary action visible with clearer eligibility behavior and allows nested/overlapping summary creation when selecting non-abstract sibling topics.
  • Styles summary nodes from their source topic and refines the curly-brace rendering geometry.
  • Adds footprint-based nested-summary layout so outer summaries clear inner summary braces and nodes, with docs and issue/session notes.

Tests

  • Not run during PR creation.
## Summary - Keeps the Summary action visible with clearer eligibility behavior and allows nested/overlapping summary creation when selecting non-abstract sibling topics. - Styles summary nodes from their source topic and refines the curly-brace rendering geometry. - Adds footprint-based nested-summary layout so outer summaries clear inner summary braces and nodes, with docs and issue/session notes. ## Tests - Not run during PR creation.
After insertAbstract creates an abstract node with the library's outlined
default style, snapshot the tree, diff for the new abstract, and patch its
fill/strokeColor from the first selected sibling so the summary visually
integrates with the surrounding mind theme.

The patch is best-effort: only explicit (non-default) values are propagated,
the inserted node is located via a tree-wide diff to avoid relying on parent
weakmaps, and getStrokeColorByElement failures are swallowed. The style
patch produces a separate undo step from the insertion itself; grouping
would require batching primitives @plait/core does not currently expose.

Coverage: summary-style.ts 100%, mind-actions.tsx 90.9%.
Regular mind nodes don't carry an explicit fill — they inherit it from
the active theme. The previous patch only copied explicit fields, so
the inserted abstract kept the library's outlined default. Resolve
fill via getFillByElement, mirroring the existing strokeColor path.
feat(drawnix): support nested summary rendering
Some checks failed
CI / changes (pull_request) Successful in 12s
CI / lint (pull_request) Failing after 6m48s
CI / test (pull_request) Successful in 11m39s
CI / build (pull_request) Successful in 12m35s
CI / e2e (pull_request) Successful in 16m12s
aaf532c62f
fix(drawnix): satisfy summary style lint
All checks were successful
CI / changes (pull_request) Successful in 11s
CI / lint (pull_request) Successful in 11m54s
CI / test (pull_request) Successful in 12m5s
CI / build (pull_request) Successful in 13m6s
CI / e2e (pull_request) Successful in 16m36s
08adf9250b
jesse merged commit 02dc32efd0 into master 2026-05-04 21:22:17 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jesse/mindnest!4
No description provided.