Skip to content

Commit

Permalink
Merge branch 'main' into keyboard-a11y-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke authored Nov 15, 2024
2 parents d2ecfbc + bf7a289 commit b800dd2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/libs/multi-blast/src/lib/components/BlastWorkspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function BlastWorkspace(props: Props) {
const {
helpPageUrl,
workspaceUrl,
workspaceHeading = 'BLAST',
workspaceHeading = 'My BLAST Jobs',
workspaceShortName = 'BLAST',
submitButtonText = 'BLAST',
} = props;
Expand All @@ -41,12 +41,12 @@ export function BlastWorkspace(props: Props) {
routeBase={workspaceUrl}
items={[
{
display: 'New job',
route: '/new',
display: 'All',
route: '/all',
},
{
display: 'My jobs',
route: '/all',
display: 'New job',
route: '/new',
},
{
display: 'Help',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
.formInfo {
width: 80%;
text-align: justify;
font-size: 1.2em;
}
select {
max-width: 450px;
Expand Down
11 changes: 7 additions & 4 deletions packages/libs/user-datasets/src/lib/Components/UploadForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function UploadForm({
<>
Before uploading your dataset, please ensure your data is
formatted according to the instructions listed in the{' '}
<Link to={{ pathname: '../datasets/help' }}>"Help" tab</Link>.
<Link to={{ pathname: `${baseUrl}/help` }}>"Help" tab</Link>.
</>
),
}}
Expand Down Expand Up @@ -628,7 +628,9 @@ function validateForm<T extends string = string>(
) {
return {
valid: false,
errors: ['The provided data URL does not seem valid'],
errors: [
'The provided data URL does not seem valid. A valid URL must start with "http://" or "https://".',
],
};
}

Expand All @@ -655,12 +657,13 @@ function isCompleteDataUploadSelection(

// https://stackoverflow.com/a/43467144
function isValidUrl(string: string) {
let url: URL;
try {
new URL(string);
url = new URL(string);
} catch (_) {
return false;
}
return true;
return url.protocol === 'http' || url.protocol === 'https';
}

export default UploadForm;

0 comments on commit b800dd2

Please sign in to comment.