Skip to content

Render clear errors for unsupported Notion blocks#131

Open
ncthuc2004 wants to merge 1 commit into
splitbee:masterfrom
ncthuc2004:fix-unsupported-block-errors
Open

Render clear errors for unsupported Notion blocks#131
ncthuc2004 wants to merge 1 commit into
splitbee:masterfrom
ncthuc2004:fix-unsupported-block-errors

Conversation

@ncthuc2004
Copy link
Copy Markdown

Summary

  • render a visible fallback when Notion returns an unsupported block type instead of silently outputting an empty placeholder
  • add a custom renderUnsupportedBlock escape hatch and showUnsupportedBlockError={false} for the previous silent behavior
  • surface missing or unsupported collection_view metadata as an unsupported block error
  • document the new options and add React server-render tests

Fixes #87.

Validation

  • yarn test --runInBand
  • npx tsc --noEmit --skipLibCheck
  • yarn lint (passes with existing warnings in asset/page-header)
  • yarn build
  • git diff --check
  • UTF-8/mojibake check

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.

Return errors when importing unsupported content types

1 participant