core icon indicating copy to clipboard operation
core copied to clipboard

[Block Editor]: dotAI generate AI content dialog doesn't default the cursor to the prompt area when launched from the block editor

Open MariaFernandez778 opened this issue 1 year ago • 2 comments

User Story

The generate content dotAI screen in the block editor has a big textarea box that you can't type in (not for your prompt) that gets the initial focus when you open the modal. We should at least put cursor focus in the prompt input and ideally make that initial big text area just an instruction label so it is not as prominent.

Image

Acceptance Criteria

UX hierarchy for this dialog is fixed. We default the cursor to the prompt area for efficiency.

Proposed Objective

Core Features

Proposed Priority

Priority 3 - Average

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

MariaFernandez778 avatar May 02 '25 19:05 MariaFernandez778

PRs:

  • https://github.com/dotCMS/core/pull/32732

github-actions[bot] avatar Jul 18 '25 15:07 github-actions[bot]

Passed IQA

Tested in main: 0e875a1

Note: I see that the textarea size is a bit large when there isn't much content, but I understand that this is to avoid gaps between the skeleton and the final result, and it looks fine, so all good!

https://github.com/user-attachments/assets/9c368daa-542e-4805-8f5e-10c75ebe6f81

KevinDavilaDotCMS avatar Jul 21 '25 18:07 KevinDavilaDotCMS