Skip to content

Eng-1473 port non boolean personal setting consumers #823

Open
sid597 wants to merge 3 commits intoeng-1472-refactor-blockpropsettingpanels-to-add-accessor-backedfrom
eng-1473-port-non-boolean-personal-setting-consumers-v1
Open

Eng-1473 port non boolean personal setting consumers #823
sid597 wants to merge 3 commits intoeng-1472-refactor-blockpropsettingpanels-to-add-accessor-backedfrom
eng-1473-port-non-boolean-personal-setting-consumers-v1

Conversation

@sid597
Copy link
Collaborator

@sid597 sid597 commented Feb 24, 2026

https://www.loom.com/share/4354dc62c72d4050b06876051451169a


Open with Devin

Summary by CodeRabbit

  • Refactor
    • Settings for keyboard shortcuts, node menu triggers, search triggers, filters, and query pages are now stored as personal preferences instead of global settings.

@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.

@sid597 sid597 changed the title Eng-1473 port non boolean personal setting consumers v1 Eng-1473 port non boolean personal setting consumers Feb 24, 2026
@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.

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

coderabbitai bot commented Feb 24, 2026

📝 Walkthrough

Walkthrough

This PR migrates settings access across multiple components and utilities from direct extensionAPI.settings calls to a centralized getPersonalSetting/setPersonalSetting accessor pattern, affecting keyboard trigger reading, default filter persistence, and query page configuration.

Changes

Cohort / File(s) Summary
Keyboard Shortcut Triggers
apps/roam/src/components/DiscourseNodeMenu.tsx, apps/roam/src/components/DiscourseNodeSearchMenu.tsx, apps/roam/src/components/settings/KeyboardShortcutInput.tsx, apps/roam/src/utils/initializeObserversAndListeners.ts
Replaces direct extensionAPI.settings access with getPersonalSetting calls for personal-node-menu-trigger and node-search-trigger key combos, with appropriate fallbacks and nullish coalescing guards.
Query and Page Settings
apps/roam/src/components/settings/QueryPagesPanel.tsx, apps/roam/src/components/settings/QuerySettings.tsx, apps/roam/src/utils/setQueryPages.ts
Refactors query page retrieval to use getPersonalSetting with simplified type handling; introduces persistQueryPages helper for dual writing to both personal and extension settings; removes redundant initialValue props from QuerySettings.
Default Filters Persistence
apps/roam/src/components/settings/DefaultFilters.tsx
Migrates default-filters reading to getPersonalSetting and adds dual persistence to both personal and extension settings; updates effect dependencies to include extensionAPI.settings changes.
Settings Utilities
apps/roam/src/components/settings/utils/accessors.ts
Minor refactor to compute path key once before map lookup, preserving existing behavior and error handling.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title 'Eng-1473 port non boolean personal setting consumers' directly and clearly describes the main objective of the changeset: migrating non-boolean personal setting consumers to use the new accessor-backed pattern.

✏️ 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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

Warning

Rate limit exceeded

@sid597 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 39 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 9d90ba0 and 6f65c7c.

📒 Files selected for processing (9)
  • apps/roam/src/components/DiscourseNodeMenu.tsx
  • apps/roam/src/components/DiscourseNodeSearchMenu.tsx
  • apps/roam/src/components/settings/DefaultFilters.tsx
  • apps/roam/src/components/settings/KeyboardShortcutInput.tsx
  • apps/roam/src/components/settings/QueryPagesPanel.tsx
  • apps/roam/src/components/settings/QuerySettings.tsx
  • apps/roam/src/components/settings/utils/accessors.ts
  • apps/roam/src/utils/initializeObserversAndListeners.ts
  • apps/roam/src/utils/setQueryPages.ts

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.

@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-1473-port-non-boolean-personal-setting-consumers-v1 branch from 6f65c7c to 1fc01a0 Compare February 26, 2026 05:24
@sid597 sid597 marked this pull request as ready for review February 27, 2026 10:40
@sid597 sid597 force-pushed the eng-1473-port-non-boolean-personal-setting-consumers-v1 branch from b504c29 to c96cddf Compare February 27, 2026 10:42
@sid597 sid597 requested a review from mdroidian February 27, 2026 17:22
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