rebrand: AI Assist -> Vibe Architect, sidebar highlight (v1.9.0)

This commit is contained in:
admin
2026-03-18 21:05:56 +00:00
Unverified
parent 2e90246130
commit 8265c655ce
6 changed files with 30 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ export default function Sidebar({ currentView, onViewChange }: SidebarProps) {
const t = translations[language].sidebar;
const common = translations[language].common;
const menuItems = [
const menuItems: Array<{ id: View; label: string; icon: any; count?: number; highlight?: boolean }> = [
{ id: "enhance" as View, label: t.promptEnhancer, icon: Sparkles },
{ id: "prd" as View, label: t.prdGenerator, icon: FileText },
{ id: "action" as View, label: t.actionPlan, icon: ListTodo },
@@ -28,7 +28,7 @@ export default function Sidebar({ currentView, onViewChange }: SidebarProps) {
{ id: "slides" as View, label: t.slidesGen, icon: Presentation },
{ id: "googleads" as View, label: t.googleAds, icon: Megaphone },
{ id: "market-research" as View, label: t.marketResearch, icon: Search },
{ id: "ai-assist" as View, label: t.aiAssist, icon: MessageSquare },
{ id: "ai-assist" as View, label: t.aiAssist, icon: MessageSquare, highlight: true },
{ id: "history" as View, label: t.history, icon: History, count: history.length },
{ id: "settings" as View, label: t.settings, icon: Settings },
];
@@ -69,7 +69,8 @@ export default function Sidebar({ currentView, onViewChange }: SidebarProps) {
variant={currentView === item.id ? "default" : "ghost"}
className={cn(
"w-full justify-start gap-2 h-9 lg:h-10 text-sm",
currentView === item.id && "bg-primary text-primary-foreground"
currentView === item.id && "bg-primary text-primary-foreground",
item.highlight && currentView !== item.id && "bg-gradient-to-r from-blue-500/10 to-purple-500/10 border border-blue-500/20 text-blue-600 dark:text-blue-400 font-bold"
)}
onClick={() => handleViewChange(item.id)}
>