-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate about potential use of WordPress components in WordPress dashboard #31
Comments
I'd +1 this direction — where it makes sense. |
From March 22, 2021 Office Hours:
|
From March 29, 2021 Office Hours:
|
Take a closer look at this article: |
I believe that Iframe the editor content being worked on will also help bring Gutenberg to areas outside of the Block Editor environment. WordPress/gutenberg#21102 |
Interesting. I could see the use of notifications / notification hub as blocks if the blockified dashboard become widely used. Although I fail to see the benefits of making the notifications / notification hub from blocks... 🤔 |
I think it's important to make sure that we use the tool that makes sense. To start with, I'll quote from the WordPress Block handbook Glossary
In my experience building custom blocks, a block is an interactive component that has three main elements:
It's worth noting that the purpose of the Mission Ctrl plugin is to allow "users, developers, agencies, or even hosts set up the dashboard with custom widgets (called boards) that are built through the block editor". So there is some aspect of the user using the Mission Ctrl boards interacting with them, in both editing and saving the content of a board, and it's location, to then be rendered on the dashboard. A notification, however, while it may require some way to save data, will not require any interaction by the user to do so. A notification's data will be saved programmatically. At the same time, the edit functionality is not needed, as the content should never need to be edited. Once the notification is stored in the database, the only stage change will be along the lines of marking it as read. That having been said, I am excited about the possibility of building the notification component on top of at least the @wordpress/component package, and maybe even others, but in my mind, the notification component would not extend the block component. That would almost be like using a custom post type for notifications. |
+1 to this, Blocks don't seem a good fit here. Reuse |
Is what we did! :) Closing because outdated! |
Would we be able to import React components from the
@wordpress/component
package and use them in the WordPress dashboard?See @senadir reply in #17 #17 (comment)
Would it be a good thing to do ?
The text was updated successfully, but these errors were encountered: