borndeveloper commited on
Commit
b9de184
·
1 Parent(s): 5449cbc

feat: remove Loom Type from input, show in output header

Browse files
frontend/app/page.tsx CHANGED
@@ -44,7 +44,7 @@ export default function HomePage() {
44
 
45
  const [predictionInput, setPredictionInput] = useState<any>({
46
  weave: "", blend: "", warp_count: "", weft_count: "",
47
- finish_epi: "", finish_ppi: "", target_gsm: "", dataset: "all", loom_type: "",
48
  });
49
  const [weights, setWeights] = useState(DEFAULT_WEIGHTS);
50
  const [prediction, setPrediction] = useState<any>(null);
 
44
 
45
  const [predictionInput, setPredictionInput] = useState<any>({
46
  weave: "", blend: "", warp_count: "", weft_count: "",
47
+ finish_epi: "", finish_ppi: "", target_gsm: "", dataset: "all",
48
  });
49
  const [weights, setWeights] = useState(DEFAULT_WEIGHTS);
50
  const [prediction, setPrediction] = useState<any>(null);
frontend/components/PredictionStudio/InputForm.tsx CHANGED
@@ -53,13 +53,6 @@ export default function InputForm({
53
  options={["all", "working", "piece_dyed"]}
54
  tooltip="Working = general catalog. Piece Dyed = dyed after weaving."
55
  />
56
- <SelectField
57
- label="Loom Type"
58
- value={predictionInput.loom_type}
59
- onChange={(v: string) => update("loom_type", v)}
60
- options={filters?.loom_types || []}
61
- tooltip="Weaving machine type. Affects reed range compatibility."
62
- />
63
  <InputField
64
  label="Warp Count"
65
  value={predictionInput.warp_count}
 
53
  options={["all", "working", "piece_dyed"]}
54
  tooltip="Working = general catalog. Piece Dyed = dyed after weaving."
55
  />
 
 
 
 
 
 
 
56
  <InputField
57
  label="Warp Count"
58
  value={predictionInput.warp_count}
frontend/components/PredictionStudio/ResultsPanel.tsx CHANGED
@@ -87,6 +87,11 @@ export default function ResultsPanel({ prediction, predictionInput, handleExport
87
  <span className={cn("font-bold px-2 py-1 rounded uppercase text-xs", confidenceColor)}>
88
  {dq.confidence?.replace("_", " ")}
89
  </span>
 
 
 
 
 
90
  </div>
91
  {handleExportXML && (
92
  <button
 
87
  <span className={cn("font-bold px-2 py-1 rounded uppercase text-xs", confidenceColor)}>
88
  {dq.confidence?.replace("_", " ")}
89
  </span>
90
+ {rec.loom_type && (
91
+ <span className="text-slate-500">
92
+ Loom: <span className="font-medium text-indigo-600">{rec.loom_type}</span>
93
+ </span>
94
+ )}
95
  </div>
96
  {handleExportXML && (
97
  <button