refactor: change analysis to upload

This commit is contained in:
2026-06-18 18:24:19 +05:30
parent d8fa02dc5d
commit dff9e2222f
4 changed files with 17 additions and 17 deletions

View File

@@ -10,30 +10,30 @@ const options = [
{ value: 'combined', label: 'Road Defect Detection with vl' },
] as const;
interface AnalysisSettingsSectionProps {
interface UploadSettingsSectionProps {
value: string;
onValueChange: (value: string) => void;
disabled?: boolean;
}
export function AnalysisSettingsSection({
export function UploadSettingsSection({
value,
onValueChange,
disabled = false,
}: AnalysisSettingsSectionProps) {
}: UploadSettingsSectionProps) {
return (
<section className="space-y-3">
<div>
<h2 className="text-sm font-semibold text-foreground">
Analysis Settings
Upload Settings
</h2>
<p className="text-xs text-muted-foreground">
Select the AI model workflow for this job.
Select the detection workflow for this upload.
</p>
</div>
<div className="grid grid-cols-1 gap-3 md:grid-cols-2">
<FormField id="analysis-method" label="Analysis Method">
<FormField id="detection-method" label="Detection Method">
<SelectPopover
options={options}
value={value}