Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCH Excerpt Generator: Update UI #2259

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

acicovic
Copy link
Collaborator

@acicovic acicovic commented Mar 5, 2024

Description

This PR refreshes the UI of our PCH Excerpt Generator feature. It also implements a loading animation as described here.

Deviations from design proposal

  • The WRITE AN EXCERPT (OPTIONAL) textarea label was left as-is, since this value matches the WordPress default (we can change it if needed). Because the given text this is a label, it cannot have two colors and custom spacing without weird workarounds.
  • An external icon to the Learn more about manual excerpts link has been added, since it opens in external mode (we can change it if needed).

Motivation and context

How has this been tested?

Existing tests pass.

Screenshots

Current UI

Empty Suggestion Loading
image image image

Updated UI

Empty Suggestion Loading
image image image

Note: The button will display Generate Excerpt when in its initial state. If an excerpt is generated, the button will display Regenerate Excerpt.

@acicovic acicovic added this to the 3.14.0 milestone Mar 5, 2024
@acicovic acicovic self-assigned this Mar 5, 2024
@acicovic acicovic marked this pull request as ready for review March 5, 2024 10:32
@acicovic acicovic requested a review from a team as a code owner March 5, 2024 10:32
Copy link
Contributor

@vaurdan vaurdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty neat! Thank you!

I added a few minor comments, feel free to take a look.

@acicovic
Copy link
Collaborator Author

acicovic commented Mar 5, 2024

@vaurdan, thanks for your feedback. I have addressed as indicated. Feel free to take a look again 🙂

@acicovic acicovic requested a review from vaurdan March 5, 2024 14:27
Copy link
Contributor

@vaurdan vaurdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review!

Looks great, approved.

@acicovic acicovic merged commit 58d221f into redesign Mar 7, 2024
33 checks passed
@acicovic acicovic deleted the update/pch-excerpt-generator-ui branch March 7, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants