Repository navigation
Promote one-cardinality relationships to form fields; exclude them from the Relationships modal (closes #2806) - #3050
Conversation
…om the Relationships modal (closes #2806) A relationship whose local end is `one` (a task's assignee, project, creator) now renders on the property form as a single-select autocomplete field, and the Relationships modal shows only what is not already on the form. - relationship-grouping: `isFormPromoted` (local `one`, no declared edge fields) and a `promoted` bucket in `partitionGroups`; `populated`/`addable` exclude it, so each edge has exactly one control. `hasModalContent` gates the modal trigger on what is left for it. - NodeRelationshipsState: one per-node load shared by TypedFormShell and PersonSchemaForm, replacing the gate PersonSchemaForm had copied verbatim. - RelationshipField: title search over the target type (matches the title_template rendering), writes through addEdge/removeEdge so inbound groups are transposed; re-assign is a plain create (daemon replaces into a `one` end); clearable unless required. - Promoted fields follow the form's own grid and count toward the badge. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
tauri_build copies every declared bundle resource and sidecar and fails on a missing one, so clippy, cargo check/test and the pre-push gate all required `bun run build:skill` in a fresh worktree although none of them reads the skill. build.rs now drops the skill resources/installer from a DEBUG build's bundle config (via TAURI_CONFIG) when they aren't staged, with a cargo:warning. Release builds stay strict, as do the nodespaced/nodespace sidecars; dev:tauri and tauri:build already run build:skill first. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ching CEL today() The test used Local::now() while today() reads Utc::now(), so it failed whenever the host-local date differed from the UTC date (e.g. 00:00-02:00 CEST). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Automated pragmatic-code-reviewReview Type: Initial Review Requirements Check (#2806)
Code Review Findings🟡 Listbox stays open after blur on an empty field📁
🟡 Same-node reloads can resolve out of order📁
🟡
|
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks requesting changes on your own PR). Full findings in the review comment above.
- RelationshipField: blur always closes the list (an empty field used to leave it floating); the listbox cancels mousedown so a scrollbar drag or status row can't blur the input; a second pick while a write is in flight is ignored; search failure shows "Search failed." instead of "No matches."; pending search timer cleared on unmount. - Accessibility: the set-value button is named "<Field>: <value>"; options carry ids and the input exposes aria-activedescendant; aria-controls only while the list exists. - NodeRelationshipsState: staleness keyed on request order (generation counter), so two quick edits' reloads can't land out of order. - Forms reload relationships when the Relationships modal closes, so the trigger gate reflects edits made there. - Tests: out-of-order reloads, node switch, no refetch; field blur, list mousedown, arrow keys + active descendant, Escape, outbound write, busy guard, search failure, accessible name; person form promoted field. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ign test scripts - build.rs reads bundle.resources/externalBin from tauri.conf.json (serde_json build-dep, already compiled for the host by tauri-build) instead of hand-synced constants; stays strict if either isn't a plain list. The rerun-if-changed fallback no longer watches the whole crate. - test-app-units.ts no longer treats the skill bundle entries as compile prerequisites (build.rs drops them in debug), and instead requires packages/skill/dist/install.js, which a nodespace-app unit test reads. - test-gate.ts: build:skill is documented as a TEST prerequisite, not a build one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Address-review summaryCommits: ✅ Addressed
⏭️ Skipped
❓ Open for the author
🤖 Generated with Claude Code |
Automated pragmatic-code-review (re-review)Review Type: Re-Review ( Previous Review Summary:
Verification of previous findings
New findings🟢 A failed write on an empty field can lose the query and focus📁
🟢 Misplaced JSDoc and stale error text in
|
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
…c and message - RelationshipField: readonly + aria-busy instead of disabled while a write is in flight, so the focused input isn't blurred (which closed the list and dropped the query a failed write should leave for a retry). - test-app-units.ts: requiredPaths' JSDoc back on requiredPaths; the missing-path message no longer claims the crate cannot compile, since a test prerequisite can be what's missing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Address-review (re-review) summary
Re-review decision: not needed. Both are low-risk 🟢 fixes with no new logic paths. The review loop is complete. Still open for the author: the "Assignee" vs "Assigned to" label. 🤖 Generated with Claude Code |
…#3064) * Author bare inbound many-to-many edges from either end (closes #2805) 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]> * Address review: key the row footer on authorability, not direction - 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]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Summary
A relationship whose local end is
one(a task's Assignee, Creator, Project) now renders on the property form as a single-select autocomplete field. The Relationships modal shows only what is not on the form, so each edge has exactly one control.relationship-grouping.ts:isFormPromoted(localoneand no declared edge fields) plus apromotedbucket inpartitionGroups.populated/addableexclude promoted groups.hasModalContentgates the modal trigger on what is left for it.NodeRelationshipsState(new): one per-node load shared byTypedFormShellandPersonSchemaForm. It replaces the gatePersonSchemaFormhad copied verbatim.RelationshipField(new):title_templaterendering ("Sam Lee").addEdge/removeEdge, so inbound groups are transposed (person —tasks→ task).oneend (reverse_cardinality is declared and surfaced but never enforced, so a 'one' target end accepts unlimited edges #2804).Deviations from the issue
onerelationship with declared edge fields stays in the modal: a form field holds only the related node and would leave its edge values with no editor.Also in this branch
src-tauri/build.rs: in debug builds, an unstaged skill bundle and installer are left out of the Tauri bundle config (viaTAURI_CONFIG) with acargo:warning, instead of failing. Clippy,cargo check/testand the pre-push gate no longer needbun run build:skillin a fresh worktree. Release builds stay strict;dev:tauri/tauri:buildalready runbuild:skillfirst; thenodespaced/nodespacesidecars stay strict.methodology_linear_execution_test: the rollover test built its "ending today" date fromLocal::now(), while CELtoday()reads UTC. It failed whenever the local and UTC dates differ (hit here at 00:09 CEST).Testing
RelationshipFieldcomponent tests: transposed create, replace, clear, required, error.assignee=Sam Leeand Sam's panel shows the task undertasks.build.rs: clippy onnodespace-apppasses with the skill unstaged (warning shown, settles to a no-op), and restaging it restores the normal path. The release path was not exercised.--no-verifyat the author's request. The gate's only failure on the first run was the timezone test fixed above, and that file passes after the fix.🤖 Generated with Claude Code