feat: display primary badge in comments

Extend the primary badge selection feature to comments, so users see
only their selected badge next to their comments (or all badges if
none selected).

Changes:
- Add primaryBadge field to CommentUser interface
- Update comment service mapComment to include primaryBadge
- Update comment-display component to show primary badge logic
- Import and expose PrimaryBadge enum in comment-display component
- Use same conditional logic as profile (show primary or all badges)
This commit is contained in:
2026-02-19 20:31:24 -08:00
committed by Naomi Carrigan
parent 9d965808a7
commit 18cfe16d87
3 changed files with 44 additions and 19 deletions
+10 -7
View File
@@ -4,14 +4,17 @@
* @author Naomi Carrigan
*/
import { PrimaryBadge } from "./auth.types";
interface CommentUser {
id: string;
username: string;
avatar?: string;
inDiscord?: boolean;
isVip?: boolean;
isMod?: boolean;
isStaff?: boolean;
id: string;
username: string;
avatar?: string;
primaryBadge?: PrimaryBadge;
inDiscord?: boolean;
isVip?: boolean;
isMod?: boolean;
isStaff?: boolean;
}
interface Comment {