-
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
Obsolete PR #196338
Obsolete PR #196338
Conversation
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 commented some concerns there @sphilipse
x-pack/plugins/serverless_search/public/application/components/connectors_router.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/serverless_search/public/application/components/web_crawlers_router.tsx
Outdated
Show resolved
Hide resolved
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.
Thanks Jose! I added a bunch of comments, some of these are just reminders so that we don't forget to fix these things before merging.
...ss_search/public/application/components/connectors/elastic_managed_connector_coming_soon.tsx
Outdated
Show resolved
Hide resolved
...ss_search/public/application/components/connectors/elastic_managed_connector_coming_soon.tsx
Outdated
Show resolved
Hide resolved
...earch/public/application/components/web_crawlers/elastic_managed_web_crawler_coming_soon.tsx
Outdated
Show resolved
Hide resolved
<EuiButtonEmpty | ||
data-test-subj="serverlessSearchElasticManagedWebCrawlerEmptyBackButton" | ||
iconType="arrowLeft" | ||
onClick={() => navigateToUrl(`./`)} |
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 shouldn't be navigating back this way, but by explicitly going to a complete URL.
<EuiFlexItem grow={false}> | ||
<EuiStepsHorizontal | ||
css={css` | ||
pointer-events: none; |
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.
Don't disable a pointer shape using CSS: these items are still interactive and clickable. People using screenreaders or tabbing through will still see these steps as interactive. If you want the visual element of steps but no interactivity, you should find a different solution than using interactive elements.
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've been discussing this issue with the EUI team. And this a11y issue can be avoid using the inert HTML attribute to prevent click and focus events for all this content. In addition using the role="presentation" attribute we don't expose it to the accessibility tree.
With all that <EuiStepsHorizontal>
component is not interactive with either the keyboard or the mouse:
<EuiStepsHorizontal
css={css`
pointer-events: none;
`}
steps={horizontalSteps}
size="s"
role="presentation"
// @ts-ignore
inert=""
/>
x-pack/plugins/serverless_search/public/application/components/web_crawlers_overview.tsx
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,64 @@ | |||
/* |
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.
These next two components are extremely similar. We can probably combine them into one component, that just takes some inputs
export const FILE_UPLOAD_PATH = '/app/ml/filedatavisualizer'; | ||
|
||
export const CRAWLER = { |
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.
Are you expecting to add more things to these objects? Otherwise I would just export two constants called CRAWLER_GITHUB_LINK
and CONNECTORS_GITHUB_LINK
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.
For now I'm getting these values to be centrilised:
export const CRAWLER = {
github_repo: 'https://github.com/elastic/crawler',
docker_doc:
'https://github.com/elastic/crawler?tab=readme-ov-file#running-open-crawler-with-docker',
};
export const CONNECTORS = {
github_repo: 'https://github.com/elastic/connectors',
self_managed_docs:
'https://www.elastic.co/docs/current/serverless/elasticsearch/ingest-data-through-integrations-connector-client',
docker_doc: 'https://github.com/elastic/connectors/blob/main/scripts/stack/README.md',
};
x-pack/plugins/serverless_search/public/application/components/web_crawlers_router.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/serverless_search/public/application/components/connectors_overview.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/serverless_search/public/application/components/connectors_overview.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/serverless_search/public/application/components/connectors_overview.tsx
Outdated
Show resolved
Hide resolved
export const EDIT_CONNECTOR_PATH = `${BASE_CONNECTORS_PATH}/:id`; | ||
export const ELASTIC_MANAGED_CONNECTOR_PATH = '/elastic_managed'; |
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.
Better to construct these the way the edit connector path above is constructed
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.
If I modify these constants in this:
export const ELASTIC_MANAGED_CONNECTOR_PATH = `${BASE_CONNECTORS_PATH}/elastic_managed`;
export const ELASTIC_MANAGED_WEB_CRAWLERS_PATH = `${BASE_WEB_CRAWLERS_PATH}/elastic_managed`;
Consuming them from the connectors_router.tsx like:
<Route exact path={ELASTIC_MANAGED_CONNECTOR_PATH}>
<ConnectorsElasticManaged />
</Route>
Generates a non working route URL:
http://localhost:5601/app/connectors/connectors/elastic_managed
With a duplicated connectors/connectors...
@@ -0,0 +1,367 @@ | |||
/* |
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.
Both this component and the elastic managed web crawlers component have a lot of stuff in common. Instead of duplicating tons of code, we should find ways to re-use some.
...ss_search/public/application/components/connectors/elastic_managed_connector_coming_soon.tsx
Outdated
Show resolved
Hide resolved
...ss_search/public/application/components/connectors/elastic_managed_connector_coming_soon.tsx
Outdated
Show resolved
Hide resolved
|
||
import { CONNECTORS } from '../constants'; | ||
|
||
export const ConnectorsElasticManaged = () => { |
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.
Why is there a full connectors managed page here? We don't have any elastic managed connectors yet, and you're create connector creates a non-managed connector.
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.
This page aims for rendering the Coming soon page content for connectors as we do also with Web Crawlers. Consuming the and rendering as children the
<EuiPageTemplate.Section restrictWidth color="subdued">
<ElasticManagedConnectorComingSoon />
</EuiPageTemplate.Section>
We want to track how many users open this page so I guess this is the way to do it and get a dedicated URL route for this. But let me know if there is another way I should take care of.
x-pack/plugins/serverless_search/public/application/components/connectors_router.tsx
Outdated
Show resolved
Hide resolved
…onal EuiStepsHorizontal
💔 Build Failed
Failed CI StepsHistory
cc @JoseLuisGJ |
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
This PR was moved to this one: #199284