fix: add remove-background settings to pipeline step configurator

The pipeline step settings had an empty array for remove-background,
showing "No configurable settings" even though the tool supports
model selection and background color. Add AI model selector (u2net,
birefnet-general-lite, birefnet-general, birefnet-portrait, bria-rmbg)
and background color picker matching the standalone tool's options.
This commit is contained in:
Siddharth Kumar Sah
2026-03-28 15:32:28 +08:00
parent d5add549af
commit 017a71562a
@@ -479,7 +479,27 @@ const TOOL_FIELDS: Record<string, FieldDef[]> = {
{ key: "background", label: "Background", type: "color", defaultValue: "#FFFFFF" },
],
"remove-background": [],
"remove-background": [
{
key: "model",
label: "AI Model",
type: "select",
defaultValue: "birefnet-general-lite",
options: [
{ value: "u2net", label: "Fast (u2net)" },
{ value: "birefnet-general-lite", label: "Balanced (general)" },
{ value: "birefnet-general", label: "Best (general)" },
{ value: "birefnet-portrait", label: "Portrait / Passport" },
{ value: "bria-rmbg", label: "Products (bria)" },
],
},
{
key: "backgroundColor",
label: "Background color",
type: "color",
defaultValue: "",
},
],
favicon: [],
"color-palette": [],
"barcode-read": [],