ENG-2257 Add an existing discourse relation from relation menu - #1492
Merged
trangdoan982 merged 4 commits intoOct 2, 2026
Merged
trangdoan982 merged 4 commits into
trangdoan982 merged 4 commits into
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Devin Review found 2 potential issues.
3 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
mdroidian
approved these changes
Oct 2, 2026
trangdoan982
force-pushed
the
eng-2257-add-an-existing-discourse-relation-from-relation-menu
branch
from
October 2, 2026 19:39
fb35322 to
d13c06d
Compare
Base automatically changed from
eng-2256-implement-new-relation-menu-empty-state
to
main
October 2, 2026 20:56
Wire "Add existing…" to a picker in the relation type menu that links an accepted relation type to the arrow's node-type pair, then shows it in the menu with a toast. Adds the shared pair-link helper ENG-2258 reuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Entire-Checkpoint: 01M3J9REFKC30VYBVF3H13BG5P
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Entire-Checkpoint: 01M3J9XJKH4F716WY3TM769TG4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Entire-Checkpoint: 01M3JADA205HB1WJG30ER2HJVE
Roll back a failed save by removing only the added relation, so a concurrent association that saved meanwhile survives. Disable picker rows while a save is pending so a double click can't add the same triple twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Entire-Checkpoint: 01M3M6DWP2S1FKJJRY03MA09AG
trangdoan982
force-pushed
the
eng-2257-add-an-existing-discourse-relation-from-relation-menu
branch
from
October 2, 2026 20:56
d13c06d to
fe1a992
Compare
trangdoan982
deleted the
eng-2257-add-an-existing-discourse-relation-from-relation-menu
branch
October 2, 2026 20:59
This branch was successfully deployed
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.
https://entire.io/gh/DiscourseGraphs/discourse-graph/trails/32
Reviewer brief
associateRelationTypeWithNodePairinrelationTypeUtils.tsis the shared helper ENG-2258 will call after adding a new type. It replaces thediscourseRelationsarray, and the dropdown's memos depend on that array's identity to refresh the menu.Verification
pnpm ci:validate --filter=@discourse-graphs/obsidianpasses; new unit tests insrc/components/canvas/utils/__tests__/relationTypeUtils.test.ts.dg-obsidian-cdp-verifyon the ENG-2256 fixture canvas:data.jsongained onerel3_Question → Claim triple with nostatusThe failed-save error toast is covered by a unit test for the rollback only, not a live run.
Loom video
https://www.loom.com/share/d904ad974c9e4194bb0ff3e937fa7f4c
Scope check
$scope-checkagainst the ENG ticket and final diff.Done When: The picker offers only accepted types not yet valid for the pair in either direction (the mockup lists all types). A back chevron and Escape return from the picker to the list. A failed save restores the in-memory settings and shows an error toast.RelationTypeDropdowntakes acanvasPathprop for the toast target. These keep the picker from offering no-op picks, avoid a dead end that would delete the pending arrow, and keep the menu from showing an unsaved association. Decided with the requester during planning; recorded on ENG-2257 and DES-349.Standards check
$dg-pr-adherence-checkagainst the final diff and PR metadata.Outstanding: the new markup uses the file's existing Tailwind gray utilities rather than Obsidian CSS variables, kept for consistency within the file.
Local delegated full review
$dg-delegated-full-reviewwhen no other full-review workflow is available.No findings.
🤖 Generated with Claude Code