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

Opinionated changes to Features page copy and controls. #3721

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

JakePT
Copy link
Contributor

@JakePT JakePT commented Oct 24, 2023

Description of the Change

Changes all feature settings that were radio buttons with just Enabled/Disabled options into checkbox controls, with descriptive labels.

Also changes the labels and help text for consistency (help text is all phrased as directives now).

How to test the Change

Changelog Entry

Changed - Updated the labels of feature settings and options for consistency and clarity.

Credits

Props @JakePT

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@JakePT JakePT added this to the 5.0.0 milestone Oct 24, 2023
Copy link
Contributor

@tott tott left a comment

Choose a reason for hiding this comment

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

Overall looks good but the "enable to" when using checkboxes feels wonky and I'd just simplify this.

'type' => 'checkbox',
'default' => '0',
'key' => 'trigger_ga_event',
'help' => __( 'Enable to fire a gtag tracking event when an autosuggest result is clicked.', 'elasticpress' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

Feels like this could just be "Fire a gtag tracking event when an autosuggest result is clicked."

'value' => 'any',
],
],
'type' => 'radio',
],
[
'default' => '1',
'help' => __( 'When enabled, it will show the term count in the instant results widget.', 'elasticpress' ),
'help' => __( 'Enable to show the number of matching results next to filter options.', 'elasticpress' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

Could also be just "Show the number of matching results next to filter options."

],
],
'type' => 'radio',
],
[
'default' => '0',
'help' => __( 'Wrap search terms in HTML tags in results for custom styling. The wrapping HTML tag comes with the "ep-highlight" class for easy styling.' ),
'help' => __( 'Enable to wrap search terms in HTML tags in results for custom styling. The wrapping HTML tag comes with the <code>ep-highlight</code> class for easy styling.' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to "Wrap search terms in HTML tags in results for custom styling. The wrapping HTML tag comes with the ep-highlight class for easy styling."

@felipeelia felipeelia merged commit d621760 into 5.0.0 Oct 24, 2023
9 of 13 checks passed
@felipeelia felipeelia deleted the feature/feature-settings-ui branch October 24, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants