Skip to content

Add loading states to Excerpt Generation #380

@jeffpaul

Description

@jeffpaul

Description

Many of our experiments have buttons that start AI processing, but the excerpt gen one in the excerpt modal effectively closes the modal and eventually loads in the generated excerpt into the excerpt field. Meanwhile the small (re)generate icon next to the excerpt field shows a proper loading state. Let's go ahead and update within the excerpt modal to change the "Generate excerpt" button into a loading animation with "Generating..." text, keeping the excerpt modal open, filling in the generated excerpt when its ready, and then updating the button to "Re-generate excerpt".

Step-by-step reproduction instructions

excerpt-gen-loading-state.mp4

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Type

No fields configured for Bug.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions