Problem/Motivation

The generator form in the Media Library and on the Add media page spends a lot of height before the Generate button: the example description buttons, then the full "Made by AI with ... Your description is sent to ..." paragraph. On a laptop the Generate button is pushed down and the form needs scrolling.

Steps to reproduce

  1. Open the Media Library and choose "Generate image with AI".
  2. See the two example buttons and the disclosure paragraph under the description field.

Proposed resolution

  • Replace the example buttons with one small "Examples" button that opens a tooltip (a popover) with several very good examples. Choosing one fills the description, as the buttons do now.
  • Show the AI disclosure and the site context line in a tooltip on a small info button next to the field, keeping it read with the field (aria-describedby) for screen readers.
  • Raise the limit of examples from 3 to 8 and ship better defaults for image, SVG and video.
  • Both tooltips work with the keyboard and without a pointer.

AI-Generated: Yes

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ❌ Automated unit/functional testing coverage
  • ❌ Developer Documentation support
  • ❌ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ❌ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • The example buttons and the disclosure paragraph move into tooltips; the generator form is shorter.

 empty description, Examples button and info button

Examples popover in the Media Library

AI disclosure toggletip in the Media Library

Examples popover on the Add Image page

AI disclosure toggletip on the Add Image page

API changes

  • None.

Data model changes

  • None. The description_examples setting allows up to 8 lines instead of 3.

Release notes snippet

  • The AI generator form is shorter: examples and the AI disclosure are in tooltips.

Issue fork ai_media-3633788

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Merge request: !31

The description field starts empty; the examples and the AI disclosure are in popovers under it. Screenshots from a local Varbase 11 site in Gin:

 empty description, Examples button and info button

Examples popover in the Media Library

AI disclosure toggletip in the Media Library

Examples popover on the Add Image page

AI disclosure toggletip on the Add Image page

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed e1547e10 on 1.0.x
    task: #3633788 Put the generator examples and the AI disclosure in...
rajab natshah’s picture

Status: Active » Fixed
Issue tags: +ai_media-1.0.0-beta1

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.