feat : update
CI / Verify (push) Successful in 1m28s
CI / Build immutable images and deploy (push) Successful in 2m5s

This commit is contained in:
2026-09-05 18:15:06 +07:00 Unverified
parent e66b5a3a0d
commit 5aa0ae80c1
42 changed files with 4613 additions and 67 deletions
+7 -2
View File
@@ -18,7 +18,7 @@ import { Textarea } from "@/components/ui/textarea";
import { rarityGradientClass } from "@/lib/catalog/rarity";
import { cn } from "@/lib/utils";
type Character = { key: string; name: string; element: string | null; rarity: number | null; imageUrl: string };
type Character = { key: string; name: string; aliases: string[]; element: string | null; rarity: number | null; imageUrl: string };
export function CreateGuideFlow({ characters, existingKeys }: { characters: Character[]; existingKeys: string[] }) {
const router = useRouter();
@@ -28,7 +28,12 @@ export function CreateGuideFlow({ characters, existingKeys }: { characters: Char
const [overview, setOverview] = useState("");
const [pending, startTransition] = useTransition();
const existing = useMemo(() => new Set(existingKeys), [existingKeys]);
const filtered = characters.filter((character) => character.name.toLowerCase().includes(query.trim().toLowerCase()));
const filtered = characters.filter((character) =>
[character.name, ...character.aliases]
.join(" ")
.toLocaleLowerCase("th")
.includes(query.trim().toLocaleLowerCase("th")),
);
if (selected) {
return (