NotionX / NotionX/react-notion-x

Person property and person text support

Open
#44 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.4k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

Hey @transitive-bullshit

Problem 1

Person property is not rendered in the property list on the top of the page if no other mentions of this user exist on the page below. The error is reported by react-render-x is: missing user 5693XXXX-XXXX-45db-XXXX-a3166058XXXX

notion react-notion-x
image image

Problem 2

As soon as at least a single mention happens on the webpage, the property now gets resolved, with the only problem it rendering only the image without a name text.

Also please note, on the text style the name mention should not even have the image preview and should be rendered as an inline-block but it is treated like a regular block.

notion react-notion-x
image image

Are there ways to provide a custom component for rendering specific properties or persons/users?

Cheers!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the two reported cases: a Person property missing when there are no other user mentions, and person text rendering only an image or as a block. Compare the output with the linked Notion screenshots, then verify that resolved properties show the person name and text mentions render inline without an image preview.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.