Add native Roam renderer for presentations - #15
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f54d905cf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 09c5b7ade2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2cf2708d7c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dda92576ad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a05e91e31
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| root | ||
| .querySelectorAll( | ||
| `[data-uid="${escapedUid}"], [data-block-uid="${escapedUid}"]`, | ||
| ) | ||
| .forEach((element) => { |
There was a problem hiding this comment.
Restrict hidden UID matches to actual blocks
When a visible bullet contains a block reference to a UID in hiddenUids—including a hidden block, layout source, or note—Roam's reference span can also carry that UID in data-uid. This selector then matches the reference, and getBlockContainer resolves to and hides the visible bullet containing it. Match actual rendered block containers via data-block-uid, or otherwise exclude .rm-block-ref elements before hiding their containers.
Useful? React with 👍 / 👎.
Summary
presentation2/slides2while leaving the existingpresentation/slidespath availableui.react.Block, and formatted titles toui.react.BlockStringWhy
The current renderer reconstructs Roam blocks as custom HTML. That loses native component behavior and lifecycle for code blocks, queries, search results, embeds, block view types, Excalidraw, Mermaid, tables, and other extension-owned renderers. The new path keeps Presentation-specific orchestration but lets Roam render the content itself.
Validation
npm run build:roam— source built with 0 errors.rm-multibarguides across all 17 slidesWIP for #6