+
เลือกตัวละครแล้วส่องดูได้เลย
diff --git a/components/admin/guide-section-editor.tsx b/components/admin/guide-section-editor.tsx index dbbeb53..d8924f2 100644 --- a/components/admin/guide-section-editor.tsx +++ b/components/admin/guide-section-editor.tsx @@ -13,6 +13,7 @@ import { CopyIcon, GripVerticalIcon, HeartPulseIcon, + MousePointerClickIcon, PlusIcon, RefreshCcwIcon, SearchIcon, @@ -130,6 +131,7 @@ import { Separator } from "@/components/ui/separator"; import { Skeleton } from "@/components/ui/skeleton"; import { Toggle } from "@/components/ui/toggle"; import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"; +import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Dialog, DialogContent, @@ -918,17 +920,17 @@ function SortableConditionTab({
เงื่อนไขค่าสถานะแนะนำ
-เงื่อนไขอันดับอาร์ติแฟกต์
-เงื่อนไขค่าสถานะเป้าหมาย
-ภาพรวมแนวทาง
{guide.name}
{guide.overview}
{activeGroup.note}
: null} diff --git a/lib/guides/queries.ts b/lib/guides/queries.ts index 9445299..cc66b38 100644 --- a/lib/guides/queries.ts +++ b/lib/guides/queries.ts @@ -265,6 +265,7 @@ export async function listPublicGuideCards() { updatedAt: guides.updatedAt, publishedAt: guides.publishedAt, element: catalogCharacters.element, + elementIconKey: catalogCharacters.elementIconKey, weaponType: catalogCharacters.weaponType, rarity: catalogCharacters.rarity, coverObjectKey: media.objectKey, @@ -279,10 +280,11 @@ export async function listPublicGuideCards() { alias: glossaryAliases.alias, }).from(glossaryAliases)]); const grouped = aliasesByItem(aliases); - return rows.map(({ coverObjectKey, ...guide }) => ({ + return rows.map(({ coverObjectKey, elementIconKey, ...guide }) => ({ ...guide, aliases: grouped.character.get(guide.characterKey) ?? [], coverUrl: publicMediaUrl(coverObjectKey), + elementIconUrl: elementIconKey ? publicMediaUrl(elementIconKey) : null, })); }