Proposal: Add ClassifAI button in the editor Toolbar

Aperta
#812 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php, wordpress
Ambito
frontend

Direzione di ricerca

Inizia esaminando i punti di ingresso di Gutenberg Block Toolbar e Editor Toolbar, quindi confronta il modo in cui i controlli esistenti Content Resizing e Rewrite Tone vengono esposti tramite Block Toolbar e Document Panel. Il lavoro è completo quando un'area della toolbar estendibile rende disponibili questi controlli multi-blocco quando vengono selezionati tipi di blocco diversi, senza richiedere il passaggio al Document/Post panel.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

https://github.com/user-attachments/assets/2961ca1f-8a99-4b24-b3b3-e706383d0dfa

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
Lingua principale
PHP
Stelle
714
Fork
68
Merge medio
4h 32m
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 10up/classifai

Tutte le issue di 10up/classifai

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.