Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
f11b47f to
10445e6
Compare
3d7e4c7 to
fb87a45
Compare
10445e6 to
bd6a3cf
Compare
3fbeb9f to
6cf85ea
Compare
bd6a3cf to
1cdc812
Compare
6cf85ea to
c5ec51b
Compare
b206a69 to
9f56c90
Compare
d511ae0 to
8c48aa9
Compare
9f56c90 to
a7867cb
Compare
8c48aa9 to
e6b3b29
Compare
a7867cb to
464eb1a
Compare
✅ Actions performedFull review triggered. |
📝 WalkthroughWalkthroughThe pull request removes debug stubs and implements a new pull-watch system to observe and react to changes in Roam block properties for settings-related blocks and discourse nodes. The system provides handler registries for feature flags, global settings, personal settings, and discourse node changes, with setup and cleanup utilities. Changes
Sequence DiagramsequenceDiagram
participant Init as Initialization Flow
participant PullWatch as Pull-Watch System
participant RoamAPI as Roam Block API
participant Handlers as Handler Registries
participant Cleanup as Cleanup
Init->>PullWatch: setupPullWatchOnSettingsPage(blockUids)
activate PullWatch
PullWatch->>RoamAPI: Register watchers on settings blocks
PullWatch->>PullWatch: Return cleanup callback
deactivate PullWatch
Init->>PullWatch: setupPullWatchDiscourseNodes(nodePageUids)
activate PullWatch
PullWatch->>RoamAPI: Register watchers on discourse nodes
PullWatch->>PullWatch: Return cleanup callback
deactivate PullWatch
RoamAPI->>PullWatch: Block property change detected
activate PullWatch
PullWatch->>PullWatch: Normalize props & validate with zod
PullWatch->>Handlers: Invoke registered handler<br/>(newValue, oldValue, allSettings)
deactivate PullWatch
Init->>Cleanup: On unload: invoke cleanup callbacks
activate Cleanup
Cleanup->>RoamAPI: Unregister all watchers
deactivate Cleanup
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 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 |
mdroidian
left a comment
There was a problem hiding this comment.
Good stuff!
Mostly a lot of DRY code can be removed, and we can use roamjs-component definitions.
67cb84e to
b40fcdc
Compare
d29fb40 to
0dab0a5
Compare
mdroidian
left a comment
There was a problem hiding this comment.
Looks good, a few cleanup comments.
It isn't clear what path we are taking with all of these branches to get to main, so make sure not to merge code that makes changes to users graphs (eg: discourse node init) to main.
b40fcdc to
e11e431
Compare
0dab0a5 to
34e7587
Compare
e11e431 to
0cf76d1
Compare
34e7587 to
74fabe6
Compare
74fabe6 to
36fe060
Compare
0cf76d1 to
a35a194
Compare

https://www.loom.com/share/609bba5ec2b54b2aad94d4c09a4921ce
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.