Skip to content

Comments

ENG-1290: Port discourse node config panel#769

Merged
sid597 merged 3 commits intoeng-1291-port-discourse-node-specificationv1from
eng-1290-port-discourse-node-config-panelsv0
Feb 23, 2026
Merged

ENG-1290: Port discourse node config panel#769
sid597 merged 3 commits intoeng-1291-port-discourse-node-specificationv1from
eng-1290-port-discourse-node-config-panelsv0

Conversation

@sid597
Copy link
Collaborator

@sid597 sid597 commented Feb 12, 2026

https://www.loom.com/share/09868acba4424e28b0369c96104dbd3d


Open with Devin

Summary by CodeRabbit

  • Bug Fixes
    • Improved relation configuration saving with enhanced block structure and data persistence.
    • Fixed initialization flow to correctly map and reconcile relation keys during settings setup.
    • Enhanced configuration panel refresh to properly display saved relation settings.

@linear
Copy link

linear bot commented Feb 12, 2026

@sid597 sid597 marked this pull request as ready for review February 12, 2026 09:14
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 6 additional findings.

Open in Devin Review

@sid597
Copy link
Collaborator Author

sid597 commented Feb 12, 2026

@coderabbitai full review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 12, 2026

✅ Actions performed

Full review triggered.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 12, 2026

📝 Walkthrough

Walkthrough

Modifies the Discourse relation configuration panel to support asynchronous block updates and saves computed relation data to global settings. Concurrently refactors initialization logic to reconcile placeholder relation keys with actual block UIDs and updates the block property accessor signature.

Changes

Cohort / File(s) Summary
Relation Config Panel
apps/roam/src/components/settings/DiscourseRelationConfigPanel.tsx
Restructures save flow to wrap state updates in async IIFE with setTimeout; rebuilds block construction logic to assemble "And" blocks with nested relation structures and node positions; introduces extraction and persistence of ifConditions and relation metadata to global settings via setGlobalSetting.
Settings Initialization & Reconciliation
apps/roam/src/components/settings/utils/init.ts
Introduces new reconcileRelationKeys function to map placeholder relation keys to actual block UIDs discovered in grammar/relations blocks; updates initializeSettingsBlockProps signature to accept pageUid parameter; extends initialization flow to invoke reconciliation logic for global relations.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

  • PR #669: Modifies relations defaults/schema and block-prop accessors within settings plumbing, with direct usage in the init.ts changes and setGlobalSetting calls in the component.
  • PR #666: Changes settings initialization logic in init.ts including initializeSettingsBlockProps flow and global relation key handling, overlapping with the reconciliation refactoring in this PR.
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'ENG-1290: Port discourse node config panel' directly reflects the main changes: porting/refactoring the DiscourseRelationConfigPanel component with new async state management and block structure logic.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot]

This comment was marked as resolved.

@sid597 sid597 force-pushed the eng-1290-port-discourse-node-config-panelsv0 branch from 42e81c7 to 4e3f7d6 Compare February 12, 2026 09:54
@sid597 sid597 requested review from mdroidian and removed request for mdroidian February 12, 2026 09:55
Copy link
Contributor

@mdroidian mdroidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the audio on the loom is inaudible. Be sure to quickly check the looms/audio before triggering reviews.

@sid597 sid597 force-pushed the eng-1290-port-discourse-node-config-panelsv0 branch from aeb08bf to 97e6a54 Compare February 15, 2026 18:24
@sid597 sid597 force-pushed the eng-1291-port-discourse-node-specificationv1 branch from 1c7af7a to 6bed1ba Compare February 15, 2026 18:24
devin-ai-integration[bot]

This comment was marked as resolved.

@sid597 sid597 force-pushed the eng-1290-port-discourse-node-config-panelsv0 branch from 97e6a54 to 6f0eea0 Compare February 16, 2026 08:25
@sid597 sid597 force-pushed the eng-1291-port-discourse-node-specificationv1 branch from 6bed1ba to 39d97bf Compare February 16, 2026 08:25
@sid597 sid597 force-pushed the eng-1290-port-discourse-node-config-panelsv0 branch from 6f0eea0 to cd22895 Compare February 17, 2026 05:16
@sid597 sid597 force-pushed the eng-1291-port-discourse-node-specificationv1 branch from 39d97bf to 09f158c Compare February 17, 2026 05:16
@sid597 sid597 force-pushed the eng-1291-port-discourse-node-specificationv1 branch from 09f158c to 7b96a6d Compare February 17, 2026 15:07
@sid597 sid597 force-pushed the eng-1290-port-discourse-node-config-panelsv0 branch 2 times, most recently from 22adbcc to 5ff2835 Compare February 17, 2026 15:37
@sid597 sid597 force-pushed the eng-1291-port-discourse-node-specificationv1 branch from 7b96a6d to 09c5ec6 Compare February 17, 2026 15:37
@sid597 sid597 force-pushed the eng-1291-port-discourse-node-specificationv1 branch from 0a248e0 to 7728505 Compare February 23, 2026 10:26
@sid597 sid597 force-pushed the eng-1290-port-discourse-node-config-panelsv0 branch from ccde8ce to 13b1031 Compare February 23, 2026 10:26
@sid597 sid597 changed the base branch from eng-1291-port-discourse-node-specificationv1 to graphite-base/769 February 23, 2026 10:30
@sid597 sid597 changed the base branch from graphite-base/769 to eng-1291-port-discourse-node-specificationv1 February 23, 2026 10:40
@sid597 sid597 deleted the branch eng-1291-port-discourse-node-specificationv1 February 23, 2026 10:42
@sid597 sid597 closed this Feb 23, 2026
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 19 additional findings in Devin Review.

Open in Devin Review

@sid597 sid597 reopened this Feb 23, 2026
@supabase
Copy link

supabase bot commented Feb 23, 2026

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@sid597 sid597 merged commit 7a086b1 into eng-1291-port-discourse-node-specificationv1 Feb 23, 2026
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants