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

raycast-notion-create-database-item-banner

Checklist

  • I read the contribution guidelines
Asked Jan 10 '22 21:01
avatar HenriChabrand
HenriChabrand

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:

Screenshot 2021-10-15 at 08 43 22

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:

Screenshot 2021-10-15 at 08 44 54

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:

Screenshot 2021-10-15 at 08 43 37

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 🙌

1
Answered Oct 15 '21 at 07:16
avatar  of HenriChabrand
HenriChabrand

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.

1
Answered Oct 22 '21 at 07:18
avatar  of danielrgjoseph
danielrgjoseph

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.

1
Answered Nov 02 '21 at 14:28
avatar  of HenriChabrand
HenriChabrand

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: Screenshot 2021-11-06 at 09 40 44

But I failed to understand what the difference between my code and the Doppler Share Secret example here.

1
Answered Nov 05 '21 at 10:51
avatar  of HenriChabrand
HenriChabrand

@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".

1
Answered Nov 09 '21 at 12:47
avatar  of PitNikola
PitNikola

@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.

1
Answered Nov 09 '21 at 13:35
avatar  of fe9lix
fe9lix