close
Skip to content

Generate Image action only toggles accordion and does not trigger generation #487

@vishnupprajapat

Description

@vishnupprajapat

Description

In the Image block, the "Generate Image" option appears inside an accordion. However, clicking on "Generate Image" only toggles (expands/collapses) the accordion and does not trigger any image generation action.

This creates confusion, as the label suggests an actionable feature but behaves like a UI toggle instead.

Step-by-step reproduction instructions

  1. Go to WordPress editor (Gutenberg)
  2. Add an Image block
  3. Add Caption
  4. Locate the "Generate Image" option
  5. Click on "Generate Image"

Expected behaviour

Clicking on "Generate Image" should:

  • Either trigger the image generation flow (AI prompt / modal / generation action), OR
  • Clearly indicate that it is only a collapsible section (with proper labeling)

Actual behaviour

Clicking on "Generate Image":

  • Only expands/collapses the accordion
  • Does not initiate any image generation process

Screenshots, screen recording, code snippet

Screenshots, screen recording, code snippet

Image
Edit.Post.test.Custom.Gutenberg.Blocks.WordPress.mp4

Environment info

WordPress information

  • WordPress version: 7.0
  • Are all plugins except Gutenberg deactivated? Yes
  • Required AI plugin
  • Are you using a default theme? Yes

Device information

  • Device: Desktop
  • Operating system: Windows / macOS
  • WordPress app version: N/A

Additional context

This might be a UX issue where the label "Generate Image" is misleading if it is intended to only expand a section. It could be improved by:

  • Renaming it to something like "Image Generation Settings", OR
  • Triggering the actual generation flow on click.

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Type] BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions