Skip to content

Commit b408e8c

Browse files
[8.18] [ML] File upload: Adding link to full file upload tool (elastic#211443) (elastic#211491)
# Backport This will backport the following commits from `main` to `8.18`: - [[ML] File upload: Adding link to full file upload tool (elastic#211443)](elastic#211443) <!--- Backport version: 9.6.5 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"James Gowdy","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-17T16:38:05Z","message":"[ML] File upload: Adding link to full file upload tool (elastic#211443)\n\nAdds a link to the original file upload page from file upload lite help\r\ntext.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/12c9799f-95e6-4fa4-81f3-d997a689677a)","sha":"24dbf7ecfd6e5aaa9e34e514f2afd801ef566808","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["non-issue",":ml","release_note:skip","Feature:File and Index Data Viz","Feature:File Upload","v9.0.0","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[ML] File upload: Adding link to full file upload tool","number":211443,"url":"https://github.com/elastic/kibana/pull/211443","mergeCommit":{"message":"[ML] File upload: Adding link to full file upload tool (elastic#211443)\n\nAdds a link to the original file upload page from file upload lite help\r\ntext.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/12c9799f-95e6-4fa4-81f3-d997a689677a)","sha":"24dbf7ecfd6e5aaa9e34e514f2afd801ef566808"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211443","number":211443,"mergeCommit":{"message":"[ML] File upload: Adding link to full file upload tool (elastic#211443)\n\nAdds a link to the original file upload page from file upload lite help\r\ntext.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/12c9799f-95e6-4fa4-81f3-d997a689677a)","sha":"24dbf7ecfd6e5aaa9e34e514f2afd801ef566808"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: James Gowdy <[email protected]>
1 parent 035b784 commit b408e8c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

x-pack/platform/plugins/private/data_visualizer/public/lite/file_upload_lite_view.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
EuiFlyoutBody,
1414
EuiFlyoutFooter,
1515
EuiFlyoutHeader,
16+
EuiLink,
1617
EuiLoadingSpinner,
1718
EuiSpacer,
1819
EuiText,
@@ -38,6 +39,7 @@ import { IndexInput } from './index_input';
3839
import { OverallUploadStatus } from './overall_upload_status';
3940
import { ImportErrors } from './import_errors';
4041
import { DataViewIllustration } from './data_view_illustration';
42+
import { useDataVisualizerKibana } from '../application/kibana_context';
4143

4244
interface Props {
4345
dataStart: DataPublicPluginStart;
@@ -61,6 +63,12 @@ export const FileUploadLiteView: FC<Props> = ({
6163
indexSettings,
6264
onClose,
6365
}) => {
66+
const {
67+
services: {
68+
application: { navigateToApp },
69+
},
70+
} = useDataVisualizerKibana();
71+
6472
const [indexName, setIndexName] = useState<string>('');
6573
const [indexValidationStatus, setIndexValidationStatus] = useState<STATUS>(STATUS.NOT_STARTED);
6674

@@ -85,6 +93,11 @@ export const FileUploadLiteView: FC<Props> = ({
8593
[uploadStatus.fileClashes]
8694
);
8795

96+
const fullFileUpload = useCallback(
97+
() => navigateToApp('home', { path: '#/tutorial_directory/fileDataViz' }),
98+
[navigateToApp]
99+
);
100+
88101
useEffect(() => {
89102
return () => {
90103
fm.destroy();
@@ -128,6 +141,23 @@ export const FileUploadLiteView: FC<Props> = ({
128141
id="xpack.dataVisualizer.file.uploadView.uploadFileDescription"
129142
defaultMessage="Upload your file, analyze its data, and import the data into an Elasticsearch index. The data can also be automatically vectorized using semantic text."
130143
/>
144+
145+
<br />
146+
147+
<FormattedMessage
148+
id="xpack.dataVisualizer.file.uploadView.uploadFileDescriptionLink"
149+
defaultMessage="If you need to customize the file upload process, the full version is available {fullToolLink}."
150+
values={{
151+
fullToolLink: (
152+
<EuiLink onClick={fullFileUpload}>
153+
<FormattedMessage
154+
id="xpack.dataVisualizer.file.uploadView.uploadFileDescriptionLinkText"
155+
defaultMessage="here"
156+
/>
157+
</EuiLink>
158+
),
159+
}}
160+
/>
131161
</p>
132162
</EuiText>
133163

0 commit comments

Comments
 (0)