-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Uptime] Fix: Adjust tooltip on Run test button for Private Locations #138863
Merged
awahab07
merged 15 commits into
elastic:main
from
awahab07:fix-adjust-tooltip-on-run-test-for-on-private-locations
Sep 21, 2022
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3b8ba62
Move reusable translations up.
awahab07 2909086
Control popover logic with MouseOver and MouseOut to be able to show …
awahab07 109f85f
Run "Test now" only on public locations.
awahab07 a7b9a9d
PR Feedback.
awahab07 651761a
Fix.
awahab07 9ca9c7c
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
kibanamachine 8dff2ac
Merge remote-tracking branch 'origin/main' into fix-adjust-tooltip-on…
awahab07 2fce195
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
awahab07 13de910
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
kibanamachine 6da8135
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
awahab07 d0c22dd
Show specific tooltip when only private locations are available.
awahab07 9b310c2
Merge remote-tracking branch 'elastic-kibana/main' into fix-adjust-to…
awahab07 3d255ca
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
awahab07 6387ad0
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
awahab07 69fce5c
Merge branch 'main' into fix-adjust-tooltip-on-run-test-for-on-privat…
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -83,3 +83,35 @@ export const STATUS_ALERT_COLUMN = i18n.translate( | |||||
export const TEST_NOW_COLUMN = i18n.translate('xpack.synthetics.monitorList.testNow.label', { | ||||||
defaultMessage: 'Test now', | ||||||
}); | ||||||
|
||||||
export const TEST_NOW_AVAILABLE_LABEL = i18n.translate( | ||||||
'xpack.synthetics.monitorList.testNow.available', | ||||||
{ | ||||||
defaultMessage: 'Test now is only available for monitors added via Monitor Management.', | ||||||
} | ||||||
); | ||||||
|
||||||
export const TEST_SCHEDULED_LABEL = i18n.translate( | ||||||
'xpack.synthetics.monitorList.testNow.scheduled', | ||||||
{ | ||||||
defaultMessage: 'Test is already scheduled', | ||||||
} | ||||||
); | ||||||
|
||||||
export const PRIVATE_AVAILABLE_LABEL = i18n.translate( | ||||||
'xpack.synthetics.monitorList.testNow.available.private', | ||||||
{ | ||||||
defaultMessage: `You can't currently test monitors running on private locations on demand.`, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The copy comes from here #137912 (comment). |
||||||
} | ||||||
); | ||||||
|
||||||
export const TEST_NOW_ARIA_LABEL = i18n.translate( | ||||||
'xpack.synthetics.monitorList.testNow.AriaLabel', | ||||||
{ | ||||||
defaultMessage: 'Click to run test now', | ||||||
} | ||||||
); | ||||||
|
||||||
export const TEST_NOW_LABEL = i18n.translate('xpack.synthetics.monitorList.testNow.label', { | ||||||
defaultMessage: 'Test now', | ||||||
}); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do when a value isn't specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we don't want the popover to capture focus when it's opened, to behave like a tooltip. Providing an empty selector is the only option as
undefined
is the default value.Without specifying the prop, it focuses the popover, stealing the focus from monitor form.