extensions notion Extension
Adding Notion extension.
Description
Notion extension that lets you search and create pages within your Notion workspace.
Type of change
- New extension
Screenshot

Checklist
- I read the contribution guidelines
6 Answer:
Hello @PitNikola 👋
Thanks a lot for this detailed feedback 🙏
Database and Page Access The way Notion read/write rights work make it mandatory for the user to "invite" an integration to a set of page and database. If a user wants to access and create a page in a database from Raycast – they will need first to invite the integration to the given database.
I've just added a "How to" screen when this append in Raycast to guide users:

Empty Page For now, the preview only displays the content of a Page; not its properties. So chances are that the page you previewed had no content.
I've just added an "empty state" for pages when they don't have content:

Future improvement: my goal is to display database property the same way you display details for Github Pull Request detail. So once this is available in the Raycast API, I'll implement it this way:

Navigation As for the pop and push navigation, I didn't manage to make it work when I started this integration. But as I get a bit more knowledgeable on how React works, I'll give it another try – I'm just not sure when I'll have the time to... But I'll keep you posted 🙌
Not sure if this is a bug, but when using the "Search Page" command, the only pages that can be directly opened in the notion app are ones that are a database (have a table in them). Any other page just shows "preview" as an option and "open in web". Also, for pages that don't have a table, the preview only shows the beginning of the page. Again, not sure if this is intended or not, but it did greatly confuse me the first time I used it.
Hello @PitNikola 👋
I've refactored my code to use React hook as requested.
I'm committing a first iteration of the extension including only the Create Database Page
for now.
I'll add the other command in future iterations.
Hello @PitNikola 👋
Thanks for the feedback – I've implemented the local store
/load
of Databases and associated Properties. It's definitely faster!
However, I didn't manage to make the storeValue
of the Database Dropdown to work – no sure why.
On top of that, when building the extension I've got this error:
But I failed to understand what the difference between my code and the Doppler Share Secret example here.
@fe9lix, do you know if storeValue
is supposed to work in the case of asynchronously loading data?
Anyway, I think it's not a blocker and we can merge this PR once you rename extension title from "Notion" to "Notion Database".
@fe9lix, do you know if
storeValue
is supposed to work in the case of asynchronously loading data?Anyway, I think it's not a blocker and we can merge this PR once you rename extension title from "Notion" to "Notion Database".
Not entirely sure tbh, but @HenriChabrand if there's something that looks like a bug, please open an issue with a small, isolated example that demonstrates the issue.