-
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
Add tech preview label for search applications #155649
Conversation
@@ -120,34 +120,6 @@ describe('EnginesList', () => { | |||
|
|||
describe('CreateEngineButton', () => { | |||
describe('disabled={true}', () => { | |||
it('renders a disabled button that shows a popover when focused', () => { |
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.
I repurposed the popover for the platinum license acknowledgement based on the design.
The initial platinum license popover was only visible when not on an platinum+/trial license (and hidden on trial/platinum+)
The Create Search Application
would also be disabled when not on platinum+/trial.
Because the popover is now visible regardless of the license level and whether the create button is disabled, I removed part of the tests.
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.
LGTM
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow> | ||
<EuiCallOut title="Technical Preview feature" color="warning" iconType="beaker"> | ||
<p> |
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.
title and description are missing translations. Guide on how to do + some examples below of how i18n util is used.
@@ -81,21 +80,18 @@ export const CreateEngineButton: React.FC<CreateEngineButtonProps> = ({ disabled | |||
> | |||
<EuiPopoverTitle> | |||
<FormattedMessage | |||
id="xpack.enterpriseSearch.content.searchApplications.createEngineDisabledPopover.title" | |||
defaultMessage="Platinum only feature" | |||
id="xpack.enterpriseSearch.content.searchApplications.createEngineTechnicalPreviewPopover.title" |
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.
run node scripts/i18n_check --fix
for updating removed i18n messages if they have been translated already.
@ioanatia Thanks for getting this up so fast! Some feedback
1b. If the badge is not possible for some reason, then I'd want to copy over the callout from the flyout and have it sit below the platinum license gate callout.
(and remove the copy below that title, just title + button)
"Create Search Application" -> "Create"
|
Per Nick and Serena feedback, if we can do the above then we can lose the paragraph below the popover too! |
...ch/public/applications/enterprise_search_content/components/engines/create_engine_flyout.tsx
Outdated
Show resolved
Hide resolved
...ch/public/applications/enterprise_search_content/components/engines/create_engine_flyout.tsx
Outdated
Show resolved
Hide resolved
...ise_search/public/applications/enterprise_search_content/components/engines/engines_list.tsx
Outdated
Show resolved
Hide resolved
<FormattedMessage | ||
id="xpack.enterpriseSearch.content.searchApplications.createEngineTechnicalPreviewPopover.title" | ||
defaultMessage="Technical Preview" | ||
/> |
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.
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.
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.
That works for me Ioana!
…-ref HEAD~1..HEAD --fix'
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.
just one note about keyboard navigability
closePopover={() => setShowPopover(false)} | ||
button={ | ||
<div | ||
data-test-subj="create-engine-button-hover-target" | ||
onMouseEnter={() => setShowPopover(true)} | ||
onFocus={() => setShowPopover(true)} | ||
onMouseLeave={() => setShowPopover(false)} |
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.
we may still want a focus event for users navigating with a keyboard
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.
Yes, we should definitely have that. I am also concerned about other potential accessibility issues here. Does the popover announce its presence when opened? Does tabIndex 0 make sense in the context of this page? Does onFocus get triggered when someone tabs to the button, or only when it tabs to the div?
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.
I'll get these fixed in a follow up PR. thanks for the feedback
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
* main: (1294 commits) [SecuritySolution] Refactor security packages (elastic#155365) [Discover] Show "Temporary" badge for ad-hoc data views in Alerts flyout (elastic#155717) [RAM] Conditional actions feedback on pr review (elastic#155804) [Files] Adds bulk delete method (elastic#155628) [Lens] Use proper way to generate absolute short URL (elastic#155512) [Guided onboarding] Use Kibana features to grant access (elastic#155065) [Index Management] Fix duped mock (elastic#155844) [Lens] Enhance visualization modifier popup with layer palette (elastic#155280) Fix flaky combobox tests on role management screen (elastic#155711) [Infrastructure UI] Create InventoryViewsService and InventoryViewsClient (elastic#155126) [Fleet] always create agent upload write indices (elastic#155729) [Fleet] [Cloud Security Posture] Add CloudFormation agent install method (elastic#155045) Add tech preview label for search applications (elastic#155649) [ML] AIOps: Stabilize flaky functional tests. (elastic#155710) [ES UI Shared] Migrate JsonEditor to monaco (elastic#155610) [Security Solution] Fixes security_solution storybooks always rendering in a flyout (elastic#155814) [Synthetics] Make error popover disappear `onMouseLeave` of metric item card (elastic#155800) Remove Exploratory View components from Observability (elastic#155629) [Discover] Remove redundant "Filter was added" toast (elastic#155645) [RAM][Security Solution][Alerts] Support the ability to trigger a rule action per alert generated (elastic#153611) (elastic#155384) ...
<EuiCallOut title="Technical Preview feature" color="warning" iconType="beaker"> | ||
<FormattedMessage | ||
id="xpack.enterpriseSearch.content.engines.createEngine.technicalPreviewCallOut.title" | ||
defaultMessage="This functionality is in technical preview and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but features in technical preview are not subject to the support SLA of official GA features." |
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.
Can we quickly change this to say:
This functionality may be changed or removed completely in a future release.
To make it less wordy
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.
Just realized this was in the wrong place, need this for the popover, not the callout. Callout is fine as is.
Adds a tech preview popover and acknowledgement for search applications.
The popover is visible on mouse hover.
On platinum+/trial:
other licenses (e.g. basic):