Skip to content

Add blockViewType#57

Merged
mdroidian merged 2 commits intomainfrom
add-block-view-type
Feb 16, 2026
Merged

Add blockViewType#57
mdroidian merged 2 commits intomainfrom
add-block-view-type

Conversation

@mdroidian
Copy link
Copy Markdown
Collaborator

@mdroidian mdroidian commented Feb 16, 2026

  • Added blockViewType to formatRoamNode and updated its usage in getFullTreeByParentUid.
  • Modified mockRoamEnvironment to support view-type for blocks.
  • Updated type definitions in native.ts to include block/view-type and blockViewType.
  • Adjusted gatherActions, updateBlock, and related functions to handle blockViewType correctly.

Open with Devin

Summary by CodeRabbit

Release Notes

  • New Features
    • Added block view type functionality enabling customizable display formats for blocks. Blocks now support multiple view type options, including the new horizontal-outline view alongside the existing outline view, providing greater flexibility in content presentation.

… components

- Added `blockViewType` to `formatRoamNode` and updated its usage in `getFullTreeByParentUid`.
- Modified `mockRoamEnvironment` to support `view-type` for blocks.
- Updated type definitions in `native.ts` to include `block/view-type` and `blockViewType`.
- Adjusted `gatherActions`, `updateBlock`, and related functions to handle `blockViewType` correctly.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 16, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

This pull request adds support for a new blockViewType property across the codebase. The changes introduce a "block/view-type" field to the RoamPull data structure, extend the BlockViewType union to include "horizontal-outline", and propagate this property through queries (getFullTreeByParentUid), type definitions (native.ts), write operations (createBlock and updateBlock), and testing utilities (mockRoamEnvironment). The package version is bumped from 0.86.5 to 0.86.6.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Add blockViewType' directly and clearly describes the main change across the codebase—introducing support for blockViewType as a new field throughout the system.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

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

@mdroidian
Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 16, 2026

✅ Actions performed

Full review triggered.

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@mdroidian mdroidian merged commit 5f4d1ad into main Feb 16, 2026
2 checks passed
@mdroidian mdroidian deleted the add-block-view-type branch February 16, 2026 01:57
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