Skip to content

Commit

Permalink
User datasets files and status (#1049)
Browse files Browse the repository at this point in the history
* Allow user to select any file

* Add space below status

* Only set `accepted` attr if non-empty
  • Loading branch information
dmfalke committed Apr 25, 2024
1 parent 7b29ae5 commit 59beb67
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class UserDatasetDetail extends React.Component {
},
{
attribute: 'Status',
className: classify('Status'),
value: (
<UserDatasetStatus
linkToDataset={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,8 @@
flex: 1 1 auto;
}
}
.UserDatasetDetail-Status {
margin-bottom: 1em;
}
}
}
8 changes: 5 additions & 3 deletions packages/libs/user-datasets/src/lib/Components/UploadForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,11 @@ function UploadForm({

const defaultFileInputField = (
<FileInput
accept={supportedFileUploadTypes
.map((fileUploadType) => `.${fileUploadType}`)
.join(',')}
accept={
supportedFileUploadTypes
?.map((fileUploadType) => `.${fileUploadType}`)
.join(',') || undefined
}
required={dataUploadMode === 'file'}
disabled={dataUploadMode !== 'file' || useFixedUploadMethod}
maxSizeBytes={maxSizeBytes}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { StateSlice } from '../StoreModules/types';
import { datasetIdType, DatasetUploadTypeConfigEntry } from '../Utils/types';
import { assertIsVdiCompatibleWdkService } from '../Service';

const SUPPORTED_FILE_UPLOAD_TYPES = ['csv', 'gz', 'tgz', 'tsv', 'txt', 'zip'];
const SUPPORTED_FILE_UPLOAD_TYPES: string[] = [];

interface Props<T extends string = string> {
baseUrl: string;
Expand Down

0 comments on commit 59beb67

Please sign in to comment.