Skip to content

Commit f296d4b

Browse files
fix: Unblock nightly UI build (#6570)
* fix: Unblock nightly UI build Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> * ci: Add UI production build check Signed-off-by: Francisco Javier Arceo <farceo@redhat.com> --------- Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 6c1b24e commit f296d4b

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/unit_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ jobs:
103103
- name: Build yarn rollup
104104
working-directory: ./ui
105105
run: yarn build:lib
106+
- name: Build production UI
107+
working-directory: ./ui
108+
run: CI=true npm run build --omit=dev
106109
- name: Run yarn tests
107110
working-directory: ./ui
108111
run: yarn test --watchAll=false

ui/src/components/DataSourceFormModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect } from "react";
1+
import React, { useState } from "react";
22
import {
33
EuiFormRow,
44
EuiFieldText,

ui/src/components/LineageEventsList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
EuiFieldSearch,
1111
EuiFlexGroup,
1212
EuiFlexItem,
13-
EuiSelect,
1413
EuiFlyout,
1514
EuiFlyoutHeader,
1615
EuiFlyoutBody,

ui/src/pages/saved-data-sets/CreateDatasetForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const CreateDatasetForm = ({ onClose }: CreateDatasetFormProps) => {
106106
const [storageType, setStorageType] = useState("file");
107107
const [storagePath, setStoragePath] = useState("");
108108
const [tags, setTags] = useState<TagEntry[]>([]);
109-
const [allowOverwrite, setAllowOverwrite] = useState(false);
109+
const [allowOverwrite] = useState(false);
110110

111111
// Job tracking
112112
const [jobId, setJobId] = useState<string | null>(null);

ui/src/pages/saved-data-sets/DatasetOverviewTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const DatasetOverviewTab = () => {
6464
);
6565
}
6666

67-
const { isLoading, isSuccess, isError, data } = useLoadDataset(datasetName);
67+
const { isLoading, isError, data } = useLoadDataset(datasetName);
6868

6969
if (isLoading) {
7070
return (

ui/src/pages/saved-data-sets/DatasetUsageTab.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
EuiText,
66
EuiSpacer,
77
EuiCodeBlock,
8-
EuiHorizontalRule,
98
EuiFlexGroup,
109
EuiFlexItem,
1110
EuiCallOut,

0 commit comments

Comments
 (0)