diff --git a/FrontEnd/pages/RecipePage.tsx b/FrontEnd/pages/RecipePage.tsx
index 9f4765c..c340bd7 100644
--- a/FrontEnd/pages/RecipePage.tsx
+++ b/FrontEnd/pages/RecipePage.tsx
@@ -69,6 +69,11 @@ export const RecipePage: React.FC = () => {
const recipeData = JSON.parse(recipeStr);
setEditedRecipe(recipeData);
setHasChanges(false);
+
+ // Update recipes list with loaded data for preview
+ setRecipes(prev => prev.map(recipe =>
+ recipe.name === r.name ? { ...recipe, ...recipeData } : recipe
+ ));
} catch (e) {
console.error("Failed to load recipe details", e);
alert("Failed to load recipe details");
@@ -195,8 +200,47 @@ export const RecipePage: React.FC = () => {
: 'bg-white/5 border-white/5 text-slate-400 hover:bg-white/10 hover:border-white/20'}
`}
>
-
{r.name}
-
+
{r.name}
+
+ {/* Motion Model */}
+ {r.Motion && (
+
+ Motion: {r.Motion}
+
+ )}
+
+ {/* Barcode Types */}
+ {(r.BCD_1D !== undefined || r.BCD_QR !== undefined || r.BCD_DM !== undefined) && (
+
+ {r.BCD_1D && (
+ 1D
+ )}
+ {r.BCD_QR && (
+ QR
+ )}
+ {r.BCD_DM && (
+ DM
+ )}
+
+ )}
+
+ {/* Feature Flags */}
+ {(r.DisableCamera || r.DisablePrinter || (r.AutoOutConveyor && r.AutoOutConveyor > 0)) && (
+
+ {r.DisableCamera && (
+ No Cam
+ )}
+ {r.DisablePrinter && (
+ No Print
+ )}
+ {r.AutoOutConveyor && r.AutoOutConveyor > 0 && (
+ Auto Out
+ )}
+
+ )}
+
+ {/* Last Modified */}
+
{r.lastModified}
diff --git a/FrontEnd/types.ts b/FrontEnd/types.ts
index f82257a..9209b2c 100644
--- a/FrontEnd/types.ts
+++ b/FrontEnd/types.ts
@@ -19,6 +19,14 @@ export interface Recipe {
id: string;
name: string;
lastModified: string;
+ Motion?: string;
+ BCD_1D?: boolean;
+ BCD_QR?: boolean;
+ BCD_DM?: boolean;
+ DisableCamera?: boolean;
+ DisablePrinter?: boolean;
+ AutoOutConveyor?: number;
+ [key: string]: any;
}
export interface IOPoint {