Skip to content
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

Proposal: Add ClassifAI button in the editor Toolbar #812

Open
1 task done
Sidsector9 opened this issue Sep 28, 2024 · 2 comments
Open
1 task done

Proposal: Add ClassifAI button in the editor Toolbar #812

Sidsector9 opened this issue Sep 28, 2024 · 2 comments
Labels
type:enhancement New feature or request.
Milestone

Comments

@Sidsector9
Copy link
Member

Is your enhancement related to a problem? Please describe.

Currently the Content Resizing and Rewrite Tone features only work on multiple blocks if and only if the blocks selected are of the same type.

This is due to the limitation that Gutenberg doesn't display the button added to the Block Toolbar when multiple blocks of different types are selected.

Example:

Same types:

Screenshot 2024-09-09 at 9 18 49 PM

Different types:

Screenshot 2024-09-09 at 9 18 02 PM

We can add buttons to the Document Panel but this introduces poor UX when multiple blocks are selected.

  • When multiple blocks are selected, the "Block" panel is selected by default.
  • The user has the click the "Document/Post" panel to access the ClassifAI panel.

Designs

I propose adding an extendible plugin area at the top inside the Editor Toolbar like the following:

Screen.Recording.2024-09-28.at.4.27.50.PM.mov

In the example, I have added the controls for the existing features, but in practice this will contain controls for features like Content Resizing, Rewrite tone and any feature that has to work on multiple blocks.

@10up/open-source-practice open to hear your thoughts on this!

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Sidsector9 Sidsector9 added the type:enhancement New feature or request. label Sep 28, 2024
@jeffpaul jeffpaul added this to the 3.2.0 milestone Sep 29, 2024
@jeffpaul jeffpaul moved this from Incoming to Backlog in Open Source Practice Sep 29, 2024
@jeffpaul
Copy link
Member

That seems like a decent option for now, though we'll want to be mindful of a potential future Gutenberg update that would allow us to add a button to the group block for different block types.

@Sidsector9
Copy link
Member Author

On discussing with @fabiankaegy internally a block toolbar button is unlikely but not completely impossible - https://fueled10up.slack.com/archives/C8Z3WMN1K/p1725896911758419

@dkotter dkotter modified the milestones: 3.2.0, 3.3.0 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants