diff --git a/src/components/workflows/config/ConditionEditor.tsx b/src/components/workflows/config/ConditionEditor.tsx index ea62426..de2a893 100644 --- a/src/components/workflows/config/ConditionEditor.tsx +++ b/src/components/workflows/config/ConditionEditor.tsx @@ -27,6 +27,7 @@ const conditionTypeLabels: Record = { asset_type: "Asset Type", iso_range: "ISO Range", focal_length: "Focal Length", + resolution: "Resolution", rating: "Rating", is_favorited: "Favorited", file_size: "File Size", @@ -197,6 +198,25 @@ function ConditionFields({ condition, onChange }: { condition: ICondition; onCha onChange({ ...condition, max: parseInt(e.target.value) || undefined })} /> ); + case "resolution": { + const unit = (condition.metric || "megapixels") === "megapixels" ? "MP" : "px"; + return ( +
+ +
+ onChange({ ...condition, min: e.target.value === "" ? undefined : parseFloat(e.target.value) })} /> + onChange({ ...condition, max: e.target.value === "" ? undefined : parseFloat(e.target.value) })} /> +
+
+ ); + } case "is_favorited": return (