NotionX / NotionX/react-notion-x
Filter/Sort component question
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:
- create a new file in the component folder (e.g. NotionCollectionControls.tsx) to handle the filtering/sorting logic
- in component/NotionPage.tsx, add this NotionCollectionControls component on top of the NotionRenderer, and pass filter and sort props to NotionRenderer?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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