Problem/Motivation

The generator form has an Examples popover and an info hint beside the description field. The hint pulls the AI Context selection on every form build, 45 to 300 ms, only to print a count, and logs a token-limit warning each time. The example descriptions are one more setting to maintain, and editors did not use them.

Proposed resolution

  • Remove the Examples popover, the info hint and the tools row under the description field. Keep the one-line field help.
  • Remove the description_examples setting from the install config, the schema and the settings page. Saving the settings form clears the stale key, so no update hook.
  • Stop injecting the AI Context service into the generation service; it is only used during generation.
  • Update the kernel tests and the e2e scenarios.

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 Examples button and the info button under the description field are gone. The field keeps its help line.

 the description field with its help line, then the Generate image button

API changes

  • AiMediaGeneration::fields() loses its $host parameter.
  • The ai_media.generation service no longer takes ai_media.context.

Data model changes

  • description_examples is removed from ai_media.settings.

Release notes snippet

  • Removed the example descriptions and the AI hint from the generator form.

AI-Generated: Yes

CommentFileSizeAuthor
gin-generate-no-tools.png37.53 KBrajab natshah

Issue fork ai_media-3634429

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 committed 677ef0ce on 1.0.x
    task: #3634429 Remove the example descriptions and the hints from the...
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +ai_media-1.0.0-rc1

✅ Released ai_media-1.0.0-rc1

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.