feat : comment feature
CI / Verify (push) Successful in 2m30s
CI / Build immutable images and deploy (push) Successful in 3m9s

This commit is contained in:
2026-10-08 01:40:08 +07:00 Unverified
parent 8c8815cda5
commit 5812d99715
65 changed files with 27013 additions and 10 deletions
+4
View File
@@ -2,6 +2,7 @@
import { UsersIcon } from "lucide-react";
import { AdminUnreadBadge } from "@/components/comments/admin-unread-comments";
import { Badge } from "@/components/ui/badge";
import { useAdminPresence } from "@/hooks/use-presence";
@@ -9,6 +10,7 @@ export function EditorPresence({ guideId, section }: { guideId: string; section:
const presence = useAdminPresence(guideId, section);
const editors = presence?.editorsByGuide[guideId] ?? [];
return (
<div className="flex flex-col items-end gap-1">
<div className="flex flex-wrap items-center gap-1" aria-live="polite">
<Badge variant="secondary">
<UsersIcon data-icon="inline-start" />
@@ -21,5 +23,7 @@ export function EditorPresence({ guideId, section }: { guideId: string; section:
</Badge>
))}
</div>
<AdminUnreadBadge target={`guide:${guideId}`} />
</div>
);
}