From 01e3763f1e425a64b2a3179d5b2ae229486fdb83 Mon Sep 17 00:00:00 2001
From: tresabhi <43380238+tresabhi@users.noreply.github.com>
Date: Sat, 31 Oct 2026 17:06:00 -0500
Subject: [PATCH] ai can you do this? probably not
---
.../components/DropdownMenu/index.module.css | 3 +-
.../TankSearchFilters/index.module.css | 1 +
.../components/TankSearchFilters/index.tsx | 120 +++++++++---------
.../[...locale]/tanks/index.astro | 1 +
4 files changed, 63 insertions(+), 62 deletions(-)
diff --git a/packages/website/src/components/DropdownMenu/index.module.css b/packages/website/src/components/DropdownMenu/index.module.css
index ef059cd40..7d86f0141 100644
--- a/packages/website/src/components/DropdownMenu/index.module.css
+++ b/packages/website/src/components/DropdownMenu/index.module.css
@@ -23,7 +23,8 @@
}
.Item,
- .CheckboxItem {
+ .CheckboxItem,
+ .RadioItem {
position: relative;
background-color: var(--gray-3);
diff --git a/packages/website/src/components/TankSearchFilters/index.module.css b/packages/website/src/components/TankSearchFilters/index.module.css
index 4f60fc8e4..9500fa0d5 100644
--- a/packages/website/src/components/TankSearchFilters/index.module.css
+++ b/packages/website/src/components/TankSearchFilters/index.module.css
@@ -1,5 +1,6 @@
.filters {
display: flex;
+ flex-wrap: wrap;
gap: var(--space-3);
diff --git a/packages/website/src/components/TankSearchFilters/index.tsx b/packages/website/src/components/TankSearchFilters/index.tsx
index 9ff1d8734..d750740f4 100644
--- a/packages/website/src/components/TankSearchFilters/index.tsx
+++ b/packages/website/src/components/TankSearchFilters/index.tsx
@@ -5,9 +5,9 @@ import locales from "@blitzkit/i18n/locales.json";
import { ShellType, TankType } from "@blitzkit/protos";
import {
CheckIcon,
+ DotFilledIcon,
LockClosedIcon,
LockOpen2Icon,
- ResetIcon,
TrashIcon,
} from "@radix-ui/react-icons";
import { Fragment } from "react";
@@ -27,7 +27,6 @@ import { MissingShellIcon } from "../MissingShellIcon";
import { ResearchedIcon } from "../ResearchedIcon";
import { ScienceIcon } from "../ScienceIcon";
import { ScienceOffIcon } from "../ScienceOffIcon";
-import { Text } from "../Text";
import { Tooltip } from "../Tooltip";
import styles from "./index.module.css";
@@ -163,13 +162,13 @@ export function TankSearchFilters() {
- {/*
+
- */}
+
);
}
@@ -183,7 +182,7 @@ function ResetButton() {
TankFilters.set(TankFilters.initial);
}}
>
-
+
);
}
@@ -586,11 +585,11 @@ function TypeFilter() {
function ShellFilter() {
return (
-
+
-
+
);
}
@@ -607,15 +606,13 @@ function IndividualShellFilter({
return (
-
+
{shells[index] === null && (
-
-
-
+
)}
+
{shells[index] !== null && (
-
+
+
+
{
strings.common.shells[
@@ -666,6 +657,15 @@ function IndividualShellFilter({
] as keyof typeof strings.common.shells
]
}
+
+
);
})}
@@ -686,8 +686,9 @@ function IndividualShellFilter({
});
}}
>
-
{strings.website.common.tank_search.clear}
+
+
@@ -821,8 +822,8 @@ function ConsumablesFilter() {
return (
-
@@ -908,8 +909,8 @@ function ProvisionsFilter() {
return (
-
- {provisions.slice(0, MAX_ICONS).map((provision, index) => (
+
+ {provisions.slice(0, MAX_ICONS).map((provision) => (
-
+
+
+
{unwrap(provisionDefinition.name!)}
+
+
);
})}
@@ -977,8 +975,9 @@ function ProvisionsFilter() {
});
}}
>
-
{strings.website.common.tank_search.clear}
+
+
@@ -1010,8 +1009,8 @@ function GameModeAbilitiesFilter() {
return (
-
- {icons.slice(0, MAX_ICONS).map((icon, index) => (
+
+ {icons.slice(0, MAX_ICONS).map((icon) => (
))}
@@ -1071,19 +1070,18 @@ function GameModeAbilitiesFilter() {
checked={selected}
key={consumable}
>
+
+
+
+
+ {unwrap(abilityDefinition.name!)}
+
-
- {unwrap(abilityDefinition.name!)}
);
}
@@ -1123,19 +1121,18 @@ function GameModeAbilitiesFilter() {
checked={selected}
key={provision}
>
+
+
+
+
+ {unwrap(powerDefinition.name!)}
+
-
- {unwrap(powerDefinition.name!)}
);
}
@@ -1157,8 +1154,9 @@ function GameModeAbilitiesFilter() {
});
}}
>
-
{strings.website.common.tank_search.clear}
+
+
diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro
index c9aea8507..739bfff1b 100644
--- a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro
+++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro
@@ -14,6 +14,7 @@ const { locale } = Astro.props;
+