+
@@ -218,75 +205,104 @@ function PermutationInfo(props: {
permutationIndex: number;
perm: Config;
}) {
- const id = createUniqueId();
-
+ const [openDifferenceDialog, setOpenDifferenceDialog] = createSignal(false);
+ const [openEditDialog, setOpenEditDialog] = createSignal(false);
+ console.log(props.perm.description);
return (
-
- {props.perm.name}
-
-
-
-
-
-
-
-
- deletePermutationFromExperiment(
- props.experimentIndex,
- props.permutationIndex,
- )
- }
- >
- Delete permutation
-
- {
- duplicatePermutation(
- props.experimentIndex,
- props.permutationIndex,
- );
- }}
- >
- Duplicate permutation
-
- {
- promotePermutationToExperiment(
- props.experimentIndex,
- props.permutationIndex,
- );
- }}
- >
- Promote permutation to a new experiment
-
- {
- swapPermutationAndReferenceConfiguration(
- props.experimentIndex,
- props.permutationIndex,
- );
- }}
- >
- Swap permutation with reference configuration
-
-
-
-
+ <>
+
+
+
+
{props.perm.name}
+
+ {props.perm.description}
+
+
+
+
+
+
+
+
+ setOpenEditDialog(true)}
+ >
+
+ Edit permutation
+
+ {
+ duplicatePermutation(
+ props.experimentIndex,
+ props.permutationIndex,
+ );
+ }}
+ >
+
+ Duplicate permutation
+
+ setOpenDifferenceDialog(true)}
+ >
+
+ View differences with reference configuration
+
+
+ {
+ promotePermutationToExperiment(
+ props.experimentIndex,
+ props.permutationIndex,
+ );
+ }}
+ >
+
+ Promote permutation to a new experiment
+
+ {
+ swapPermutationAndReferenceConfiguration(
+ props.experimentIndex,
+ props.permutationIndex,
+ );
+ }}
+ >
+
+ Swap permutation with reference configuration
+
+
+
+ deletePermutationFromExperiment(
+ props.experimentIndex,
+ props.permutationIndex,
+ )
+ }
+ >
+
+ Delete permutation
+
+
+
+
+ >
);
}
@@ -295,15 +311,15 @@ export function PermutationsList(props: {
experiment: Experiment;
}) {
return (
-
+
);
}
diff --git a/apps/class-solid/src/components/icons.tsx b/apps/class-solid/src/components/icons.tsx
index 02f34995..e92dfe83 100644
--- a/apps/class-solid/src/components/icons.tsx
+++ b/apps/class-solid/src/components/icons.tsx
@@ -319,3 +319,21 @@ export function MdiFileDocumentOutline(props: JSX.IntrinsicElements["svg"]) {
);
}
+
+export function MdiDotsHorizontal(props: JSX.IntrinsicElements["svg"]) {
+ return (
+
+ );
+}
diff --git a/apps/class-solid/src/components/ui/button.tsx b/apps/class-solid/src/components/ui/button.tsx
index f615e120..6681508e 100644
--- a/apps/class-solid/src/components/ui/button.tsx
+++ b/apps/class-solid/src/components/ui/button.tsx
@@ -27,6 +27,7 @@ const buttonVariants = cva(
sm: "h-9 rounded-md px-3",
lg: "h-11 rounded-md px-8",
icon: "size-10",
+ tinyicon: "size-6",
},
},
defaultVariants: {
diff --git a/apps/class-solid/tests/config-with-observations.json b/apps/class-solid/tests/config-with-observations.json
index dd404372..cda4836b 100644
--- a/apps/class-solid/tests/config-with-observations.json
+++ b/apps/class-solid/tests/config-with-observations.json
@@ -7,7 +7,7 @@
"permutations": [],
"observations": [
{
- "name": "2025-02-10_1916.sounding-2.csv",
+ "name": "2025-02-10_1916.sounding-2",
"height": [
20.0, 40.0, 60.0, 80.0, 100.0, 120.0, 140.0, 160.0, 180.0, 200.0, 220.0,
240.0, 260.0, 280.0, 300.0, 320.0, 340.0, 360.0, 380.0, 400.0, 420.0,