diff --git a/content/pages/publish.json b/content/pages/publish.json index 59ea6e2e7..77a6a7e8c 100644 --- a/content/pages/publish.json +++ b/content/pages/publish.json @@ -20,12 +20,19 @@ }, { "name": "files", - "label": "Files", + "label": "File", "placeholder": "e.g. https://file.com/file.json", - "help": "Please provide a URL to your data set file.", + "help": "Please provide a URL to your data set file. This URL will be stored encrypted after publishing.", "type": "files", "required": true }, + { + "name": "links", + "label": "Sample file", + "placeholder": "e.g. https://file.com/samplefile.json", + "help": "Please provide a URL to a sample of your data set file. This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing.", + "type": "files" + }, { "name": "access", "label": "Access Type", diff --git a/src/components/atoms/Button.tsx b/src/components/atoms/Button.tsx index 7e3769742..6327e46f1 100644 --- a/src/components/atoms/Button.tsx +++ b/src/components/atoms/Button.tsx @@ -17,6 +17,8 @@ interface ButtonProps { style?: 'primary' | 'ghost' | 'text' type?: 'submit' download?: boolean + target?: string + rel?: string } export default function Button({ diff --git a/src/components/molecules/FormFields/FilesInput/index.tsx b/src/components/molecules/FormFields/FilesInput/index.tsx index 555a451cd..cb0a7259a 100644 --- a/src/components/molecules/FormFields/FilesInput/index.tsx +++ b/src/components/molecules/FormFields/FilesInput/index.tsx @@ -23,7 +23,7 @@ export default function FilesInput(props: InputProps): ReactElement { const newFileInfo = await getFileInfo(url) newFileInfo && helpers.setValue([newFileInfo]) } catch (error) { - toast.error('Could not fetch file info. Please check url and try again') + toast.error('Could not fetch file info. Please check URL and try again') console.error(error.message) } finally { setIsLoading(false) diff --git a/src/components/organisms/AssetContent/MetaSecondary.tsx b/src/components/organisms/AssetContent/MetaSecondary.tsx index d7587f5db..aebd331b4 100644 --- a/src/components/organisms/AssetContent/MetaSecondary.tsx +++ b/src/components/organisms/AssetContent/MetaSecondary.tsx @@ -1,10 +1,9 @@ import React, { ReactElement } from 'react' -import shortid from 'shortid' -import { ListItem } from '../../atoms/Lists' import MetaItem from './MetaItem' import styles from './MetaSecondary.module.css' import { MetadataMarket } from '../../../@types/Metadata' import Tags from '../../atoms/Tags' +import Button from '../../atoms/Button' export default function MetaSecondary({ metadata @@ -15,18 +14,21 @@ export default function MetaSecondary({ return (