fix(ui): restore tool links and reduce animation overhead

This commit is contained in:
2026-11-03 18:34:29 +05:30
parent f9c98a87b4
commit 34daaf57af
9 changed files with 28 additions and 81 deletions
@@ -15,7 +15,7 @@ import {
Cpu,
Smartphone,
} from 'lucide-react';
import { resolveLocalised, ToolItem, CategoryItem } from '@/types';
import { resolveLocalised, ToolItem, CategoryItem, AppItem } from '@/types';
import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider';
import { SpotlightCard } from '@/components/animate-ui/SpotlightCard';
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
@@ -26,6 +26,7 @@ export interface VerticalToolStackProps {
context: {
tools: ToolItem[];
categories: CategoryItem[];
apps: AppItem[];
locale: string;
};
}
@@ -70,7 +71,7 @@ const ACCENT_STYLES: Record<string, { badge: string; text: string }> = {
};
export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
const { tools, categories, locale } = context;
const { tools, categories, apps, locale } = context;
const [selectedCategory, setSelectedCategory] = useState<string>('all');
const filteredCategories = selectedCategory === 'all'
@@ -185,6 +186,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
{/* Dynamic Multi-Format Tool Cards with Alternating Layouts */}
<div className="space-y-10 sm:space-y-12">
{catTools.map((tool, toolIdx) => {
const homeApp = apps.find((app) => app.id === tool.homeApp);
const badgeInfo = MODEL_BADGES[tool.id] || {
model: 'Neural Vision v2.0',
latency: '< 450ms',
@@ -339,7 +341,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
</Link>
<Link
href={`/apps/${tool.homeApp}`}
href={homeApp ? `/apps/${homeApp.slug}` : '/apps'}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full text-xs font-bold text-slate-700 bg-slate-100 border border-slate-200 hover:bg-slate-200 transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />