Repository navigation
Author bare inbound many-to-many edges from either end (closes #2805) - #3064
Conversation
A task's Blocked By / Related From / Duplicated By are the same stored edges as another task's Blocks / Relates To / Duplicates, but the Relationships modal dropped empty inbound groups from + Add and rendered populated ones read-only, so recording "A is blocked by B" meant opening B. - groupAcceptsEdgesHere: outbound groups, and inbound groups without edge fields, accept add/remove here. Writes transpose via resolveEdgeEndpoints. - partitionGroups offers empty bare inbound groups in `addable`. - The modal rail splits by authorability rather than direction, and the remove control follows the same predicate. - Inbound groups with declared edge fields stay read-only: their values are authored at the declaring end. The local-one half of the issue (assign/reassign as a form field) shipped in #3050. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Pragmatic Code Review — PR #3064 (Initial Review)SummaryThis is a small change and it makes the code better. A new predicate, Tests: the 2 changed files pass (53 tests). Modal tests 1 and 2 would fail on Requirements check (scope as agreed with the author)
Findings🟡 [Improvement] 🟢 Nit: 🟢 Nit: 🟢 Nit (pre-existing, not introduced here): the target picker doesn't exclude the current node. Choosing it under StandardsNo issue numbers in code comments. No new logging. No lint suppression. No compatibility shims. Test mocks follow the Recommendation: APPROVEConsider the 🟡 footer-predicate fix before merge; it's a one-line change. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
- The expanded-row footer used direction === 'in' to say "edit from the owning node"; a bare inbound group with undeclared edge keys is now authorable here, so the undeclared-keys message is the right one. The detail pane reads groupAcceptsEdgesHere once for both footer and remove. - openTarget and groupSupportsEdgeEditing docs scoped to edge-field inbound groups / edge properties. Skipped: excluding the current node from the target picker (self-edge). It predates this PR, applies equally to outbound groups, and whether self-links are invalid is a separate schema question. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Address review — 97f246c✅ Addressed (3)
⏭️ Skipped (1)
Tests: the relationship unit and component tests pass (53), and the full pre-push gate passed. Re-Review DecisionNO RE-REVIEW NEEDED. The changes are one branch condition swapped to the predicate the PR already introduced, plus comment wording. There is no new logic. |
Summary
A task's
Blocked By,Related FromandDuplicated Byare the same stored edges as another task'sBlocks,Relates ToandDuplicates. The Relationships modal dropped empty inbound groups from+ Addand rendered populated ones read-only, so recording "A is blocked by B" meant opening B and addingBlocks → A.groupAcceptsEdgesHere(new,relationship-grouping.ts): an outbound group, or an inbound group with no declared edge fields, accepts add and remove on this node. Direction only decides which way round the edge is written:resolveEdgeEndpointsalready transposes, so addingBlocked By → Bon A storesB —blocks→ A.partitionGroups:addablenow includes empty bare inbound groups.+ Add, and their rows get the remove control.groupSupportsEdgeEditingalready requires. The modal's header docs are updated to state the rule.Scope
onehalf of Task relationships panel can't assign a person: empty inbound groups are dropped, so cardinality never drives the affordance #2805 (assign/reassign as a single-select form field, with transposed writes) shipped in Promote one-cardinality relationships to form fields; exclude them from the Relationships modal (closes #2806) #3050.manyside too. Project → Tasks keeps its+ Addon the project.Testing
relationship-grouping.test.ts:reverseName(e.g.Blocked By).BlocksandBlocked By.groupAcceptsEdgesHerecases, and thehasModalContentgate.relationship-viewer-modal.test.ts(new):Blocked BywritescreateRelationship('task-b', 'blocks', 'task-a').deleteRelationship('task-b', 'blocks', 'task-a').🤖 Generated with Claude Code