productSlug fixes
CI / test (push) Successful in 7s

This commit is contained in:
2026-01-26 07:10:37 -05:00
parent b09ccc542e
commit fb2effca47
2 changed files with 44 additions and 11 deletions
+9 -3
View File
@@ -295,7 +295,7 @@ function buildAssemblyRows(params: {
rows.push({
key: `${groupLabel}-${paths.complete}`,
kind: "category",
label: "Complete Assembly (Fastest)",
label: "Completed Lower (Fastest)",
categoryId: paths.complete,
indent: 0,
pill: mode === "complete" ? "Selected" : undefined,
@@ -1625,9 +1625,15 @@ function GunbuilderPageContent() {
</div>
{selectedPart ? (
<div className="text-[0.7rem] text-zinc-500 line-clamp-1">
<Link
href={`/parts/p/${canonicalPlatform}/${category.id}/${selectedPart.id}-${selectedPart.name
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/(^-|-$)/g, "")}`}
className="text-[0.7rem] text-zinc-500 hover:text-amber-300 hover:underline line-clamp-1 transition-colors"
>
{selectedPart.name}
</div>
</Link>
) : (
<div className="text-[0.7rem] text-zinc-600">
No part selected