Proposal: Add ClassifAI button in the editor Toolbar

オープン
#812 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, wordpress
領域
frontend

調査の方向性

まず Gutenberg Block Toolbar と Editor Toolbar のエントリーポイントを確認し、次に既存の Content Resizing と Rewrite Tone のコントロールが Block Toolbar と Document Panel を通じてどのように公開されているかを比較します。異なるブロックタイプが選択されたときに、拡張可能なツールバー領域によってこれらのマルチブロックコントロールを利用でき、Document/Post panel に切り替える必要がなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
PHP
スター
714
フォーク
68
平均マージ
4時間 32分
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

10up/classifai のほかの issue

10up/classifai の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。