NotionX / NotionX/react-notion-x

Filter/Sort component question

Open
#448 0 comments 0 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

Sorry, I am new to react-notion-x. Neither the sample page nor (https://transitivebullsh.it/) seem to have a filter/sort component on top of the database view for the visitor to filter or sort the data (not sure if I'm overlooking it). If react-notion-x doesn't provide this component by default, and if I want to do it myself, should I:

  1. create a new file in the component folder (e.g. NotionCollectionControls.tsx) to handle the filtering/sorting logic
  2. in component/NotionPage.tsx, add this NotionCollectionControls component on top of the NotionRenderer, and pass filter and sort props to NotionRenderer?

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

Start by checking the sample page and NotionRenderer to determine whether visitor-facing filter and sort controls already exist. Then inspect the component folder and component/NotionPage.tsx, including the proposed NotionCollectionControls.tsx location, to assess where this behavior would belong. Done requires an agreed implementation scope and a clear answer about the component and prop design.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.