feat(guides) : add team transfer and visibility controls
CI / Verify (push) Successful in 1m5s
CI / Build immutable images and deploy (push) Successful in 1m55s

This commit is contained in:
2026-09-04 19:46:46 +07:00 Unverified
parent 50a2a5428d
commit dd87510d68
15 changed files with 3972 additions and 19 deletions
+9 -1
View File
@@ -19,6 +19,7 @@ import {
startCatalogSync,
} from "@/app/admin/actions";
import { DeleteConfirmationDialog } from "@/components/admin/delete-confirmation-dialog";
import { GuideVisibilityControl } from "@/components/admin/guide-visibility-control";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
@@ -48,6 +49,7 @@ type GuideCard = {
version: number;
updatedAt: Date;
trashedAt: Date | null;
isPublic: boolean;
};
export function StructuredDashboard({
@@ -160,7 +162,7 @@ export function StructuredDashboard({
{new Date(guide.updatedAt).toLocaleString("th-TH")}
</p>
</CardContent>
<CardFooter className="justify-between pb-5">
<CardFooter className="flex-wrap justify-between gap-2 pb-5">
<Button
className="relative z-20"
render={<Link href={`/admin/${guide.characterKey}`} />}
@@ -168,6 +170,12 @@ export function StructuredDashboard({
>
แก้ไข Guide
</Button>
<GuideVisibilityControl
className="relative z-20"
guideId={guide.id}
guideName={guide.name}
isPublic={guide.isPublic}
/>
<DeleteConfirmationDialog
showSuccessToast={false}
trigger={