Repository navigation
feat: derive DeepnoteBlock type from Zod schema, update createMarkdown - #29
Merged
andyjakubowski merged 2 commits intoOct 7, 2025
Conversation
Signed-off-by: Andy Jakubowski <hello@andyjakubowski.com>
andyjakubowski
requested review from
Artmann,
jamesbhobbs and
saltenasl
as code owners
October 7, 2025 14:24
Contributor
📝 WalkthroughWalkthrough
Sequence Diagram(s)sequenceDiagram
autonumber
participant Caller
participant Markdown as createMarkdown(block)
participant Error as UnsupportedBlockTypeError
Caller->>Markdown: call with DeepnoteBlock
alt block.type == "markdown"
Note right of Markdown #DDEBF7: New early return\nreturns block.content || ""
Markdown-->>Caller: string (content or "")
else block.type in {"text","separator","image"}
Note right of Markdown #F7F3DD: existing rendering paths
Markdown-->>Caller: rendered string
else other type
Note right of Error #FBE7E6: unsupported -> throw
Markdown->>Error: throw UnsupportedBlockTypeError
end
Possibly related PRs
Suggested reviewers
Pre-merge checks✅ Passed checks (3 passed)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
==========================================
+ Coverage 93.55% 93.59% +0.03%
==========================================
Files 19 19
Lines 590 593 +3
Branches 117 120 +3
==========================================
+ Hits 552 555 +3
Misses 38 38 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andyjakubowski
dismissed stale reviews from coderabbitai[bot] and Artmann
via
October 7, 2025 14:40
6eab8e0
Contributor
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
packages/blocks/src/markdown.test.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
packages/blocks/src/markdown.test.ts (2)
packages/blocks/src/index.ts (1)
createMarkdown(3-3)packages/blocks/src/markdown.ts (1)
createMarkdown(12-30)
Artmann
approved these changes
Oct 7, 2025
andyjakubowski
deleted the
andy/grn-4902-derive-deepnoteblock-type-from-zod-schema-update
branch
October 7, 2025 15:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes hand coded
DeepnoteBlockinterface and uses a Zod schema derived type instead.Signed-off-by: Andy Jakubowski hello@andyjakubowski.com
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Tests