Skip to content

Commit

Permalink
πŸŽ“πŸ… ↝ [SSP-9 SSP-29]: Classifications include all media files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Oct 16, 2024
1 parent 14a56fa commit 2e3344e
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 689 deletions.
30 changes: 29 additions & 1 deletion components/Projects/(classifications)/FormConfigurations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
import { FormConfig, ClassificationOption } from "./MegaClassificationForm";
export interface ClassificationOption {
id: number;
text?: string;
subOptions?: ClassificationOption[];
};

export interface FormConfig {
title?: string;
richTextFields: number;
options?: ClassificationOption[];
richTextTitles?: (string | undefined)[];
};

interface ClassificationFormProps {
config?: FormConfig;
onSubmit: (data: any) => void;
anomalyType: string;
anomalyId: string;
missionNumber: number;
assetMentioned: string;
originatingStructure?: number;
structureItemId?: number;
};

const defaultConfig: FormConfig = {
title: "Classification Form",
richTextFields: 1,
options: [],
};

const planetClassificationOptions: ClassificationOption[] = [
{ id: 1,
Expand Down
331 changes: 0 additions & 331 deletions components/Projects/(classifications)/MegaClassificationForm.tsx

This file was deleted.

4 changes: 3 additions & 1 deletion components/Projects/(classifications)/PostForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface ClassificationFormProps {
anomalyType: string;
anomalyId: string;
missionNumber: number;
assetMentioned: string;
assetMentioned: string | string[];
originatingStructure?: number;
structureItemId?: number;
}
Expand Down Expand Up @@ -85,6 +85,8 @@ const ClassificationForm: React.FC<ClassificationFormProps> = ({
return "Describe the plankton you see and their behaviour...";
case "lidar-earthCloudRead":
return "Describe the type of cloud you see...";
case "telescope-minorPlanet":
return "Does the highlighted object move smoothly through the images? What do you see...?"
default:
return "Enter your classification details...";
}
Expand Down
Loading

0 comments on commit 2e3344e

Please sign in to comment.