-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stub components for the basic ingest and search configs
Signed-off-by: Tyler Ohlsen <[email protected]>
- Loading branch information
Showing
13 changed files
with
353 additions
and
7 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { | ||
EuiButton, | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiHorizontalRule, | ||
} from '@elastic/eui'; | ||
import { CREATE_STEP } from './workflow_inputs'; | ||
|
||
interface FooterProps { | ||
selectedStep: CREATE_STEP; | ||
setSelectedStep: (step: CREATE_STEP) => void; | ||
} | ||
|
||
/** | ||
* The footer component containing the navigation buttons. | ||
*/ | ||
export function Footer(props: FooterProps) { | ||
return ( | ||
<EuiFlexGroup direction="column" gutterSize="none"> | ||
<EuiFlexItem> | ||
<EuiHorizontalRule margin="m" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiFlexGroup direction="row" justifyContent="flexEnd"> | ||
{props.selectedStep === CREATE_STEP.INGEST ? ( | ||
<EuiFlexItem grow={false}> | ||
<EuiButton | ||
onClick={() => props.setSelectedStep(CREATE_STEP.SEARCH)} | ||
> | ||
Next | ||
</EuiButton> | ||
</EuiFlexItem> | ||
) : ( | ||
<> | ||
<EuiFlexItem grow={false}> | ||
<EuiButton | ||
onClick={() => props.setSelectedStep(CREATE_STEP.INGEST)} | ||
> | ||
Back | ||
</EuiButton> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiButton | ||
disabled={true} | ||
onClick={() => | ||
// TODO: implement creation | ||
console.log('Placeholder for workflow creation...') | ||
} | ||
> | ||
Create | ||
</EuiButton> | ||
</EuiFlexItem> | ||
</> | ||
)} | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
public/pages/workflow_detail/workflow_inputs/ingest_inputs/enrich_data.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; | ||
|
||
interface EnrichDataProps {} | ||
|
||
/** | ||
* Input component for configuring any data enrichment for ingest (ingest pipeline processors etc.) | ||
*/ | ||
export function EnrichData(props: EnrichDataProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="xs"> | ||
<h4>Enrich data</h4> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText grow={false}>TODO</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
6 changes: 6 additions & 0 deletions
6
public/pages/workflow_detail/workflow_inputs/ingest_inputs/index.ts
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './ingest_inputs'; |
27 changes: 27 additions & 0 deletions
27
public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; | ||
|
||
interface IngestDataProps {} | ||
|
||
/** | ||
* Input component for configuring the data ingest (the OpenSearch index) | ||
*/ | ||
export function IngestData(props: IngestDataProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="xs"> | ||
<h4>Ingest data</h4> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText grow={false}>TODO</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
37 changes: 37 additions & 0 deletions
37
public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_inputs.tsx
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule } from '@elastic/eui'; | ||
import { SourceData } from './source_data'; | ||
import { EnrichData } from './enrich_data'; | ||
import { IngestData } from './ingest_data'; | ||
|
||
interface IngestInputsProps {} | ||
|
||
/** | ||
* The base component containing all of the ingest-related inputs | ||
*/ | ||
export function IngestInputs(props: IngestInputsProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<SourceData /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiHorizontalRule margin="none" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EnrichData /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiHorizontalRule margin="none" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<IngestData /> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
public/pages/workflow_detail/workflow_inputs/ingest_inputs/source_data.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; | ||
|
||
interface SourceDataProps {} | ||
|
||
/** | ||
* Input component for configuring the source data for ingest. | ||
*/ | ||
export function SourceData(props: SourceDataProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="xs"> | ||
<h4>Source data</h4> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText grow={false}>TODO</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
public/pages/workflow_detail/workflow_inputs/search_inputs/configure_search_request.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; | ||
|
||
interface ConfigureSearchRequestProps {} | ||
|
||
/** | ||
* Input component for configuring a search request | ||
*/ | ||
export function ConfigureSearchRequest(props: ConfigureSearchRequestProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="xs"> | ||
<h4>Configure search request</h4> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText grow={false}>TODO</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
public/pages/workflow_detail/workflow_inputs/search_inputs/enrich_search_request.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; | ||
|
||
interface EnrichSearchRequestProps {} | ||
|
||
/** | ||
* Input component for enriching a search request (configuring search request processors, etc.) | ||
*/ | ||
export function EnrichSearchRequest(props: EnrichSearchRequestProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="xs"> | ||
<h4>Enrich search request</h4> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText grow={false}>TODO</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
27 changes: 27 additions & 0 deletions
27
public/pages/workflow_detail/workflow_inputs/search_inputs/enrich_search_response.tsx
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'; | ||
|
||
interface EnrichSearchResponseProps {} | ||
|
||
/** | ||
* Input component for enriching a search response (configuring search response processors, etc.) | ||
*/ | ||
export function EnrichSearchResponse(props: EnrichSearchResponseProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="xs"> | ||
<h4>Enrich search response</h4> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
<EuiFlexItem> | ||
<EuiText grow={false}>TODO</EuiText> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
6 changes: 6 additions & 0 deletions
6
public/pages/workflow_detail/workflow_inputs/search_inputs/index.ts
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './search_inputs'; |
37 changes: 37 additions & 0 deletions
37
public/pages/workflow_detail/workflow_inputs/search_inputs/search_inputs.tsx
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule } from '@elastic/eui'; | ||
import { ConfigureSearchRequest } from './configure_search_request'; | ||
import { EnrichSearchRequest } from './enrich_search_request'; | ||
import { EnrichSearchResponse } from './enrich_search_response'; | ||
|
||
interface SearchInputsProps {} | ||
|
||
/** | ||
* The base component containing all of the search-related inputs | ||
*/ | ||
export function SearchInputs(props: SearchInputsProps) { | ||
return ( | ||
<EuiFlexGroup direction="column"> | ||
<EuiFlexItem grow={false}> | ||
<ConfigureSearchRequest /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiHorizontalRule margin="none" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EnrichSearchRequest /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiHorizontalRule margin="none" /> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EnrichSearchResponse /> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
); | ||
} |
Oops, something went wrong.