Skip to content

Commit 3646501

Browse files
committed
fix(executions): use new molcules-smi type
1 parent 17b47cd commit 3646501

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

components/executionsCards/JobCard/JobInputFields.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { MultipleMoleculeInput } from "./MultipleMoleculeInput";
1212
// These might be defined in the form generator types?
1313
export interface InputFieldSchema {
1414
title: string;
15-
type: "directory" | "file" | "molecule" | "molecules";
15+
type: "directory" | "file" | "molecules-smi";
1616
"mime-types"?: string[];
1717
multiple?: true;
1818
default?: string;
@@ -73,8 +73,8 @@ export const JobInputFields = ({
7373
</InputSection>
7474
);
7575
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
76-
} else if (type === "molecule" || type === "molecules") {
77-
// Going to remove the "molecules" type as this is specified by "multiple".
76+
} else if (type === "molecules-smi") {
77+
// Going to replace the "molecules-smi" type as this is specified by "multiple".
7878
// For now though, we assume it's always multiple molecules
7979
multiple = true;
8080

components/instances/JobDetails/InputOutputItemIcon.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ export const InputOutputItemIcon = ({ type }: InputOutputItemIconProps) => {
2626
<InsertDriveFileRounded />
2727
</Avatar>
2828
);
29-
case "molecule":
30-
return (
31-
<Avatar>
32-
<ScienceRounded />
33-
</Avatar>
34-
);
35-
case "molecules":
29+
case "molecules-smi":
3630
return (
3731
<Avatar>
3832
<ScienceRounded />

components/instances/JobDetails/JobInputSection/JobInputSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const JobInputSection = ({ instance }: JobInputSectionProps) => {
4747
{/* We currently have to assume that the outputs have a consistent type */}
4848
{inputs.map((input) => {
4949
const isFile = input.value.map((val) => val.startsWith(FILE_PROTOCOL)).some((v) => v);
50-
const moleculesType = input.type === "molecules" || input.type === "molecule";
50+
const moleculesType = input.type === "molecules-smi";
5151
let value = input.value;
5252
if (moleculesType && isFile) {
5353
value = value.map(removeFileProtocol);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@rjsf/validator-ajv8": "^5.2.1",
5555
"@sentry/nextjs": "7.43.0",
5656
"@squonk/account-server-client": "2.0.3",
57-
"@squonk/data-manager-client": "1.1.0",
57+
"@squonk/data-manager-client": "1.1.3-rc.2",
5858
"@squonk/mui-theme": "3.0.2",
5959
"@tanstack/match-sorter-utils": "8.7.6",
6060
"@tanstack/react-query": "4.26.1",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)