diff --git a/apps/web/src/app/(home)/_components/StackArchitech.tsx b/apps/web/src/app/(home)/_components/StackArchitech.tsx index b3243b3..ad959e2 100644 --- a/apps/web/src/app/(home)/_components/StackArchitech.tsx +++ b/apps/web/src/app/(home)/_components/StackArchitech.tsx @@ -858,9 +858,9 @@ const StackArchitect = () => { const [showPresets, setShowPresets] = useState(false); const [showHelp, setShowHelp] = useState(false); const [lastSavedStack, setLastSavedStack] = useState(null); - const [activeCategory, setActiveCategory] = useState( - CATEGORY_ORDER[0], - ); + // const [activeCategory, setActiveCategory] = useState( + // CATEGORY_ORDER[0], + // ); const [, setLastChanges] = useState< Array<{ category: string; message: string }> >([]); @@ -915,7 +915,6 @@ const StackArchitect = () => { setStack(randomStack as StackState); setShowHelp(false); setShowPresets(false); - setActiveCategory(CATEGORY_ORDER[0]); contentRef.current?.scrollTo(0, 0); toast.success("Random stack generated!"); }; @@ -1480,7 +1479,6 @@ const StackArchitect = () => { setStack(DEFAULT_STACK); setShowHelp(false); setShowPresets(false); - setActiveCategory(CATEGORY_ORDER[0]); contentRef.current?.scrollTo(0, 0); }; @@ -1495,7 +1493,6 @@ const StackArchitect = () => { setStack(lastSavedStack); setShowHelp(false); setShowPresets(false); - setActiveCategory(CATEGORY_ORDER[0]); contentRef.current?.scrollTo(0, 0); toast.success("Saved configuration loaded"); } @@ -1509,28 +1506,16 @@ const StackArchitect = () => { setStack(preset.stack); setShowPresets(false); setShowHelp(false); - setActiveCategory(CATEGORY_ORDER[0]); contentRef.current?.scrollTo(0, 0); toast.success(`Applied preset: ${preset.name}`); } }; - const handleSidebarClick = (category: string) => { - setActiveCategory(category); - const element = sectionRefs.current[category]; - if (element) { - element.scrollIntoView({ - behavior: "smooth", - block: "start", - }); - } - }; - return (
{
)} -
-
-
-
+
{filteredOptions.map((tech) => { let isSelected = false; const category = categoryKey as keyof StackState; diff --git a/bun.lock b/bun.lock index be9e809..4d53053 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,7 @@ }, "apps/cli": { "name": "create-better-t-stack", - "version": "2.9.6", + "version": "2.9.9", "bin": { "create-better-t-stack": "dist/index.js", },