ENG-1484: reactive settings for triggers and suggestive mode overlay#861
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
📝 WalkthroughWalkthroughAdds new setting keys and handlers for global/personal triggers and suggestive overlays, wires them into observer initialization with dynamic listeners and cleanup functions, updates AdminPanel to react to suggestive-mode changes, and generalizes overlay removal logic for suggestive overlays. Changes
Sequence Diagram(s)sequenceDiagram
participant Admin as AdminPanel UI
participant Settings as Settings System
participant Init as initObservers
participant PageRef as PageRef Observers
participant Cleanup as Unsubscribe/Cleanup
Admin->>Settings: user toggles feature flag / updates setting
Settings->>Init: onSettingChange callback invoked
Init->>Init: update mutable bindings (globalTrigger, personalNodeMenuTrigger, nodeSearchMenuTrigger, suggestiveOverlay)
Init->>PageRef: adjust handlers or toggle overlay state
PageRef->>PageRef: add/remove overlays based on current bindings
Note over Cleanup: On unload
Cleanup->>Init: invoke collected cleanup functions
Init->>Settings: unregister onSettingChange listeners
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ 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. Comment |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
mdroidian
left a comment
There was a problem hiding this comment.
A few small changes, but send it back my way when they are done, it should be approved quickly.
…nch' into eng-1484-reactive-settings-some-settings-require-reloading-the-graph # Conflicts: # apps/roam/src/index.ts # apps/roam/src/utils/initializeObserversAndListeners.ts
https://www.loom.com/share/fcb1e6483a4a40a2a29667f2bf0f7409
Summary by CodeRabbit
New Features
UI
Bug Fixes