Repository navigation
Relationship viewer: view settings — columns/sort/filter + persistence (closes #1918) - #2003
Merged
Merged
Conversation
Per-group view settings for the relationship modal: column selection (across target intrinsics, edge attributes, and the target type's own schema fields), sort, and filter, persisted per relationship. Review fixes folded in: - Persistence key now includes the target type (`nodeType::relationshipName::direction::targetType`). A node renders one inbound group per declaring source type for the same relationship name; the previous key collided them, so their view settings clobbered each other. - Resolving column candidates skips a target field named `type`/`label` — it would duplicate the intrinsic Target/Type columns under the same heading. - Hiding a column that drives the sort or filter now clears that sort/filter, so the control can't keep applying an invisible column. Persistence in localStorage keyed by relationship identity (a per-user presentation preference, not schema-node data nor per-instance). Column resolution, sort/filter application, and persistence (including the inbound target-type isolation) are unit-tested (53 tests); validated live end to end (column toggle, sort, and persistence across reopen). Co-Authored-By: Claude <[email protected]>
Contributor
Author
|
Adversarial review → addressed → APPROVE. Independent review confirmed the implementation is solid (sort/filter correctness, bounded once-per-id lazy target-field fetch, corrupt-localStorage normalization, column dedup, reactivity, edit-mode interaction). One MAJOR — the persistence key omitted |
25 tasks
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.
Closes #1918 — the final slice (d, view settings). Completes the relationship viewer: read-only viewer (#1992) → backend editing surface (#1993) → trigger on task/person forms (#2001) → editable modal + target picker (#2002) → view settings (this PR).
What
Per-relationship-group view settings in the modal (sliders popover):
nodeType::relationshipName::direction::targetType) — a per-user presentation preference, not schema-node data nor per-instance.Pure logic (
relationship-view-settings.ts) + persistence (relationship-view-settings-service.ts) are unit-tested (53 tests). Live-validated end to end: column toggle, sort, and persistence across reopen.Adversarial review → addressed
Review confirmed the core solid (sort/filter correctness, bounded once-per-id lazy fetch, corrupt-localStorage normalization, dedup, reactivity, edit-mode). One MAJOR fixed: the persistence key omitted
targetType, so a node's two inbound groups that share a (name, direction) but differ by declaring source type collided — now keyed withtargetType(+ a collision-isolation test). Minors fixed: a target field namedtype/labelis skipped (dup intrinsic heading); hiding a column that drives sort/filter clears it. svelte-check / eslint / vitest clean; gate green.