mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: resolve pre-existing test failures for content-aware-crop removal and watermark validation
- Replace content-aware-crop with ai-canvas-expand in TOOLS[], AI_TOOL_IDS,
and FEATURE_BUNDLES (matching the already-updated tool-registry.tsx and
feature-manifest.json from commit c6a5d3f)
- Fix trailing syntax error in features.ts (extra closing brace)
- Add ai-canvas-expand-settings mock to tool-registry test files
- Update watermark-image tests to expect 400 (validation rejection) instead
of 422 (processing failure) for corrupted image buffers, matching the
actual route behavior where validateImageBuffer catches them first
This commit is contained in:
@@ -250,12 +250,12 @@ export const TOOLS: Tool[] = [
|
||||
route: "/content-aware-resize",
|
||||
},
|
||||
{
|
||||
id: "content-aware-crop",
|
||||
name: "Content-Aware Crop",
|
||||
description: "Extend canvas beyond image bounds with AI-powered fill",
|
||||
id: "ai-canvas-expand",
|
||||
name: "AI Canvas Expand",
|
||||
description: "Expand canvas with AI-powered fill",
|
||||
category: "ai",
|
||||
icon: "Expand",
|
||||
route: "/content-aware-crop",
|
||||
route: "/ai-canvas-expand",
|
||||
},
|
||||
{
|
||||
id: "transparency-fixer",
|
||||
@@ -1248,5 +1248,5 @@ export const PYTHON_SIDECAR_TOOLS = [
|
||||
"restore-photo",
|
||||
"passport-photo",
|
||||
"transparency-fixer",
|
||||
"content-aware-crop",
|
||||
"ai-canvas-expand",
|
||||
] as const;
|
||||
|
||||
@@ -40,7 +40,7 @@ export const FEATURE_BUNDLES: Record<string, FeatureBundleInfo> = {
|
||||
name: "Object Eraser & Colorize",
|
||||
description: "Erase objects from photos and colorize B&W images",
|
||||
estimatedSize: "1-2 GB",
|
||||
enablesTools: ["erase-object", "colorize", "content-aware-crop"],
|
||||
enablesTools: ["erase-object", "colorize", "ai-canvas-expand"],
|
||||
},
|
||||
"upscale-enhance": {
|
||||
id: "upscale-enhance",
|
||||
|
||||
Reference in New Issue
Block a user