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

[App Search] Updated copy for Precision Slider step descriptions #103684

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

byronhulcher
Copy link
Contributor

@byronhulcher byronhulcher commented Jun 29, 2021

Summary

Updates copy based on external discussions. Also fixes a test which was broken but managed to pass because of the specific expect() I wrote. Please reference the issue linked below for the expected copy changes.

Checklist

Delete any items that are not applicable to this PR.

@byronhulcher byronhulcher requested a review from a team June 29, 2021 15:04
@byronhulcher byronhulcher self-assigned this Jun 29, 2021
@byronhulcher byronhulcher added release_note:skip Skip the PR/issue when compiling release notes v7.14.0 Feature:Plugins auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 29, 2021
@byronhulcher byronhulcher enabled auto-merge (squash) June 29, 2021 15:05
@@ -59,11 +60,14 @@ describe('PrecisionSlider', () => {

describe('Step Description', () => {
it('is visible when there is a step description', () => {
setMockValues({ ...MOCK_VALUES, precision: 10 });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

setting precision instead of searchSettings.precision meant that this setMockValues wasn't actually doing anything and searchSettings.precision remained at the value 2

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch!

rerender(wrapper);

expect(wrapper.find('[data-test-subj="StepDescription"]').render().text()).toEqual(
'Default. High recall, low precision.'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Luckily(????) I had used the default text (step 2) instead of the description text for step 10 here.

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@byronhulcher
Copy link
Contributor Author

Thanks @constancecchen I've enabled auto-merge!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 2.1MB 2.1MB +934.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @byronhulcher

@byronhulcher byronhulcher merged commit 662d8a6 into elastic:master Jun 29, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 103684

tylersmalley pushed a commit that referenced this pull request Jun 29, 2021
… | [App Search] Updated copy for Precision Slider step descriptions (#103684) (#103767)

* [App Search] New Precision Slider for Relevance Tuning (#103015)

* Precision is now a required param for search settings

* Made RelevanceTuningLogic aware of precision param

* New PrecisionSlider component

* Add PrecisionSlider to RelevanceTuning

* Fix types in test

* Fix imports for PrecisionSlider

* Slight panel and text adjustments.

* Comment out docs link

* Add commented out test for docs

* Can we just all agree not to talk about this commit

* Restore docs link

* Fix docs link again

* Clean-up step description logic

* Test for documentation link

* Moving the spacer to align titles.

* Missing test for updatePrecision

* Fix CSS for step description

* Remove containing EuiPanel

* Improve screen reader experience

Co-authored-by: Davey Holler <[email protected]>

* [App Search] Updated copy for Precision Slider step descriptions (#103684)

* Update precision slider description copy

* Fixed a broken (but passing) test

Co-authored-by: Byron Hulcher <[email protected]>
Co-authored-by: Davey Holler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants