fix: show tool name instead of bundle name on AI feature install prompt

The install prompt and error messages were showing the underlying AI
bundle name (e.g. "Background Removal") instead of the actual tool name
(e.g. "Passport Photo"). Now the UI shows the correct tool name and
description while still installing the correct bundle behind the scenes.

Closes #130
This commit is contained in:
SnapOtter
2026-05-07 20:33:25 +08:00
parent 16af9c573a
commit 797b4577d4
4 changed files with 23 additions and 10 deletions
+6 -1
View File
@@ -292,7 +292,12 @@ export function ToolPage() {
if (isAiTool && !toolInstalled && featureBundle) {
return (
<AppLayout>
<FeatureInstallPrompt bundle={featureBundle} isAdmin={isAdmin} toolName={tool?.name} />
<FeatureInstallPrompt
bundle={featureBundle}
isAdmin={isAdmin}
toolName={tool?.name}
toolDescription={tool?.description}
/>
</AppLayout>
);
}