Repository navigation
Derive settings category and relationship selection; harden confirmation card and name dialog effects - #4413
Merged
Merged
Conversation
Contributor
Author
|
APPROVE at 567b513 Reviewed the diff and the five changed components in full. No blocking issues. Verified
Mutation checks (fix reverted in my worktree, test must fail)
Findings
🤖 Generated with Claude Code |
…iting them in effects settings-pane and relationship-viewer-modal compute the effective category and selected relationship with $derived from the requested/chosen value, replacing corrective effects. The confirmation card's digest check keys on the credentials by value and its stale guard compares summary, arguments, digest and credentials, so a message update with unchanged confirmation fields no longer resets the check or the buttons. The database name dialog seeds on open and reads initialValue untracked, so typed text survives an initialValue change. The effect allowlist drops the two removed effects and MAX_STATE_WRITING_EFFECTS goes from 15 to 13. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
c6cb44c4-effects
branch
from
December 2, 2026 06:24
567b513 to
53f1298
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.
NodeSpace task: c6cb44c4 (Remove dead editor workarounds and state-writing effects the reactivity rule forbids). Partial: the task stays open for the effects listed under "Left".
What changed
Per effect:
activeCategoryis gone.requestedCategoryis state,activeCategoryis$derived(falls back to Database while the requested one is hidden). Side effect: if the hidden category becomes visible again (Labs flag back on) the pane returns to it; a test covers this.chosenKeyis state,selectedKeyis$derived(the choice if the rail still offers it, else the first rail entry, else null).credentialsKey), so a message update that rebuilds the credentials list does not restart the check, arming delay or buttons. The stale guard now compares summary, arguments, digest and credentials, not just the first two. Browser test added.initialValueuntracked, so typed text survives aninitialValuechange while open; it still seeds on open. New test file.selectedKeyentries;MAX_STATE_WRITING_EFFECTS15 -> 13 (the test ties it to the real count).Tests were mutation-checked: each new test fails with its fix reverted.
Left (still on the allowlist with their reasons)
remote-tool-confirmation-card (the async digest check and the arming timer still write
intact/armed; the digest is async so it stays an effect), database-name-dialog (seeding on open writesname), person-schema-form, kanban-view, node-ref-preview, relationship-viewer-modal (expandedRows prune, closeAdd, load/reset effects), import-options-modal, collection-move-dialog, pane-content. These need a design choice (reset on mount vs. event, measuring after layout) or are larger refactors; not attempted here. Imported-class writes (typed-form-shell relationships.load, code-block-node renderer, ai-chat-pty-session listener callback) are not detected by the checker and were not touched.Not in this PR: the docs-repo statement checks and the remaining criteria of the task.
🤖 Generated with Claude Code