The VS Code of video editing, built for agents.
TypeScript
Add AI credits icon and update references in components
konstantin-paulused4a04fb44c7
diff --git a/apps/web/src/assets/icons/ai-credits.svg b/apps/web/src/assets/icons/ai-credits.svgnew file mode 100644index 00000000..10aa77f6--- /dev/null+++ b/apps/web/src/assets/icons/ai-credits.svg@@ -0,0 +1,4 @@+<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">+<circle cx="12.5" cy="12.5" r="6" stroke="currentColor"/>+<path d="M12.5 9Q13.7 11.3 16 12.5Q13.7 13.7 12.5 16Q11.3 13.7 9 12.5Q11.3 11.3 12.5 9Z" stroke="currentColor" stroke-linejoin="round"/>+</svg>diff --git a/apps/web/src/assets/icons/billing.svg b/apps/web/src/assets/icons/billing.svgindex c94e460a..aad6b29c 100644--- a/apps/web/src/assets/icons/billing.svg+++ b/apps/web/src/assets/icons/billing.svg@@ -1,6 +1,5 @@<svg viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">-<clipPath id="a"><path d="M0 0H25V10H0Z"/></clipPath>-<path d="M9.76 10.6L13.436 5.997L17.379 9.217L16.274 10.6M12.222 10.6L14.927 7.214" stroke="currentColor" stroke-linejoin="round" clip-path="url(#a)"/>-<path d="M9 9.5H7.5A1 1 0 0 0 6.5 10.5A1 1 0 0 0 7.5 11.5H17A1.5 1.5 0 0 1 18.5 13V17A1.5 1.5 0 0 1 17 18.5H8.5A2 2 0 0 1 6.5 16.5V10.5" stroke="currentColor" stroke-linejoin="round"/>-<path d="M15.5 15.5H16.5" stroke="currentColor" stroke-linecap="round"/>+<rect x="5.5" y="7.5" width="14" height="10" rx="0.5" stroke="currentColor"/>+<path d="M5.5 10.5H19.5" stroke="currentColor"/>+<path d="M8.5 13.5H11.5" stroke="currentColor" stroke-linecap="round"/></svg>diff --git a/apps/web/src/components/genai/action-bar.tsx b/apps/web/src/components/genai/action-bar.tsxindex 947038f0..16d6f723 100644--- a/apps/web/src/components/genai/action-bar.tsx+++ b/apps/web/src/components/genai/action-bar.tsx@@ -110,7 +110,7 @@ export function ActionBar(props: ActionBarProps) {<DropdownMenuPortal><DropdownMenuContent><div class="flex items-center gap-1 px-0 pr-2 h-7">- <Icon name="ai-generate" class="text-muted-foreground" />+ <Icon name="ai-credits" class="text-muted-foreground" /><span class="text-xs text-muted-foreground">{totalCredits()} AI credits used</span></div><Separator class="my-1" />@@ -153,7 +153,7 @@ export function ActionBar(props: ActionBarProps) {<DropdownMenuPortal><DropdownMenuContent><div class="flex items-center gap-1 px-0 pr-2 h-7">- <Icon name="ai-generate" class="text-muted-foreground" />+ <Icon name="ai-credits" class="text-muted-foreground" /><span class="text-xs text-muted-foreground">{totalCredits()} AI credits used</span></div><Separator class="my-1" />diff --git a/apps/web/src/components/genai/prompt-input-actions.tsx b/apps/web/src/components/genai/prompt-input-actions.tsxindex 35ffb242..67275a6a 100644--- a/apps/web/src/components/genai/prompt-input-actions.tsx+++ b/apps/web/src/components/genai/prompt-input-actions.tsx@@ -94,7 +94,7 @@ export function PromptInputActions() {<DropdownMenuContent><Show when={isGenerated()}><div class="flex items-center gap-1 px-0 pr-2 h-7">- <Icon name="ai-generate" class="text-muted-foreground" />+ <Icon name="ai-credits" class="text-muted-foreground" /><span class="text-xs text-muted-foreground">{totalCredits()} AI credits used</span>diff --git a/apps/web/src/pages/dashboard.tsx b/apps/web/src/pages/dashboard.tsxindex 04d023e0..67d3fc49 100644--- a/apps/web/src/pages/dashboard.tsx+++ b/apps/web/src/pages/dashboard.tsx@@ -160,7 +160,7 @@ export function DashboardPage() {<DashboardSidebarItem active={view() === "account"} onClick={() => setView("account")} icon="user" label="Account" /><DashboardSidebarItem active={view() === "settings"} onClick={() => setView("settings")} icon="settings" label="General" /><DashboardSidebarItem active={view() === "mcp"} onClick={() => setView("mcp")} icon="ai-mcp-cli" label="MCP & CLI" />- <DashboardSidebarItem active={view() === "ai-credits"} onClick={() => setView("ai-credits")} icon="ai-generate" label="AI credits" />+ <DashboardSidebarItem active={view() === "ai-credits"} onClick={() => setView("ai-credits")} icon="ai-credits" label="AI credits" /><DashboardSidebarItem active={view() === "billing"} onClick={() => setView("billing")} icon="billing" label="Billing" /><DashboardSidebarItem active={view() === "help"} onClick={() => setView("help")} icon="help" label="Help" /></DashboardSidebarSection>