Repository navigation
Remove remaining dead viewer workarounds, wrapper content writes and state-writing effects (c6cb44c4 part 2) - #4414
Merged
Merged
Conversation
Contributor
Author
|
APPROVE at b650289 Independent review, code only, at the required head. Verified
Blocking: none. Should-fix
Nit
🤖 Generated with Claude Code |
Contributor
Author
|
Merge queue: #4414 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
…per content writes The outline viewer read child ids from the structure tree and fell back to sharedNodeStore.getNodesForParent, which reads the same tree, so both fallbacks never returned anything the tree had not. The split path rewrote the original node's content to itself to trigger focus, but createNode already focuses the original node when focusNewNode is false. createTextareaController destroyed its controller from a cleanup-only pre-effect and from the element effect. The element effect now owns the create/destroy pair and tracks only the element. Node wrappers no longer assign to their content prop and content is no longer bindable; edits leave as contentChanged events and the store value flows back down. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s intact disarms it Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ionship modal and the node preview - DatabaseNameDialog and CollectionMoveDialog move their field and choice state into a form component mounted with the dialog content, so it starts from the initial value on each open instead of being seeded by an effect. - PersonSchemaForm name drafts are writable derived values that reset when the committed value changes. - RelationshipViewerModal prunes stale expansion and a stale target picker when a view is applied, not in two effects. - NodeRefPreview writes the card position and placed class to the element instead of keeping coordinates as reactive state. - The effect allowlist drops the removed entries, states why each remaining state-writing effect stays, and the cap goes from 13 to 6. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
c6cb44c4-part2
branch
from
December 2, 2026 09:47
b650289 to
50b067f
Compare
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.
Second part of c6cb44c4. One PR (about 30 files, mostly small deletions); the commits are per item group.
What changed
sharedNodeStore.getNodesForParentreads the samestructureTree, so it never returned ids the tree lacked (git history: added in the dual-store refactor Refactor BaseNodeViewer to use dual reactive stores #572, kept through the store consolidation). The split path's "update the original node's content to itself to trigger focus" is removed:createNodealready focuses the original node whenfocusNewNodeis false (covered by the existing reactive-node-service test "createNode with focusNewNode=false keeps focus on original node"). Existing viewer, merge, enter-key and backspace tests pass (unit and Chromium).$effect.preis gone; the element effect now owns create and destroy (tracks only the element, teardown destroys once). New test countsdestroycalls (0 while mounted and re-rendered, 1 on unmount); mutation (teardown without destroy) fails it.content;contentis a plain prop in every wrapper and in base-node, andbind:contentbecame{content}. Task-node uses the cleaned value directly. New test: header wrapper reports the edit as an event and keeps the passed content until the parent changes it; mutation (re-adding the assignment) fails it.onAnswernever called. Mutations: not tracking credentials, not tracking the digest; each fails its test.$derived.applyView(prune stale expansion and a stale picker when a view is applied). New test; mutation (no prune) fails it.coordsstate. New placement test; mutation fails it. This one is behavior-preserving, so the test also passes on main.Effects that stay (need a design decision)
intact(async digest result) andarmed(arming timer)openpropopenpropNot seen by the checker
relationships.load: it writes state insideNodeRelationshipsStatefrom an effect keyed on the node and its persisted status (placeholder promotion). Moving it needs the persisted-state signal as an event, so it stays.render()/clearPreview(): the effects push into the renderer, whose results are async (ADR-049); their synchronous resets are its own state. Stays; I corrected the comment that claimed no state is written.sessionEnded, not a derivation. Not a violation.Issue c6cb44c4 criteria
Met: viewer workarounds and both fallbacks gone; duplicate cleanup gone and destroyed once; no wrapper assigns content and content is not bindable; cap lowered. Not part of this PR: the docs statements (docs repo, done by the owner).
Verification
Full unit run (348 files) and the confirmation-card Chromium file pass; quality:check and scripts tests pass; push check passed. Docs untouched.
🤖 Generated with Claude Code