Skip to content

ENG-1468: Port node and relations tree based consumers#825

Open
sid597 wants to merge 4 commits intoeng-1472-refactor-blockpropsettingpanels-to-add-accessor-backedfrom
eng-1468-port-node-and-relations-tree-based-consumers-v1
Open

ENG-1468: Port node and relations tree based consumers#825
sid597 wants to merge 4 commits intoeng-1472-refactor-blockpropsettingpanels-to-add-accessor-backedfrom
eng-1468-port-node-and-relations-tree-based-consumers-v1

Conversation

@sid597
Copy link
Collaborator

@sid597 sid597 commented Feb 24, 2026

https://www.loom.com/share/4f94dbd77bd44d178a5b6e49d4b7cfbc


Open with Devin

Summary by CodeRabbit

  • Refactor
    • Improved settings and configuration retrieval across the application by migrating to dedicated accessor functions for more reliable and centralized settings management.
    • Enhanced feature flag handling for the Suggestive Mode configuration.
    • Streamlined node attribute and relation settings access patterns.

@linear
Copy link

linear bot commented Feb 24, 2026

@supabase
Copy link

supabase bot commented Feb 24, 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
Copy link
Collaborator Author

sid597 commented Feb 24, 2026

@coderabbitai full review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

✅ Actions performed

Full review triggered.

devin-ai-integration[bot]

This comment was marked as resolved.

graphite-app[bot]

This comment was marked as resolved.

@sid597 sid597 marked this pull request as draft February 24, 2026 10:55
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

📝 Walkthrough

Walkthrough

This pull request migrates discourse node and settings configuration from tree-based retrieval (using Roam subtree navigation) to centralized accessor functions. Components that previously used getBasicTreeByParentUid and getSettingValueFromTree now use getDiscourseNodeSetting, getGlobalSetting, and getFeatureFlag to fetch configuration values.

Changes

Cohort / File(s) Summary
Settings Accessor Migration
apps/roam/src/components/DiscourseContextOverlay.tsx, apps/roam/src/components/settings/DiscourseNodeSpecification.tsx, apps/roam/src/components/settings/NodeConfig.tsx, apps/roam/src/utils/deriveDiscourseNodeAttribute.ts
Replaced tree-based setting retrieval with direct calls to getDiscourseNodeSetting for accessing node attributes, overlay, specification.enabled, and color settings. Dependency arrays updated to reflect new data sources.
Canvas Settings Migration
apps/roam/src/components/settings/DiscourseNodeCanvasSettings.tsx
Migrated color, alias, query-builder-alias, key-image, and key-image-option settings from tree-based lookup to getDiscourseNodeSetting. Includes unresolved merge conflict markers in imports and state initialization sections.
Relation Configuration
apps/roam/src/components/settings/DiscourseRelationConfigPanel.tsx
Replaced getSettingValueFromTree with getGlobalSetting for relation config values (source, destination, complement). Added getFeatureFlag import for future use.
Feature Flag Integration
apps/roam/src/index.ts
Changed "Suggestive Mode Enabled" flag resolution from tree-based setting lookup to getFeatureFlag("Suggestive mode enabled") to control initializeSupabaseSync() initialization path.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'ENG-1468: Port node and relations tree based consumers' directly describes the main objective of the PR: migrating tree-based setting retrieval to new accessor-based patterns across multiple components.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ 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-1472-refactor-blockpropsettingpanels-to-add-accessor-backed branch 4 times, most recently from f8c803d to fe4caa1 Compare February 25, 2026 16:16
@sid597 sid597 force-pushed the eng-1468-port-node-and-relations-tree-based-consumers-v1 branch from 154aa26 to afbe9d5 Compare February 26, 2026 05:24
@sid597 sid597 marked this pull request as ready for review February 27, 2026 10:41
devin-ai-integration[bot]

This comment was marked as resolved.

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.

1 participant