Admin ring on comments/channel + pending-submissions dots on Admin tab & Submissions subtab

- adminBadge.js: add applyAdminRing(el, id) for surfaces that already place the
  star on a specific element and just need the ring.
- comments: ring + star on admin authors' avatars; round the comment avatar box
  so the ring reads as a circle.
- channel page: ring the inner rounded avatar box (star already on the wrap).
- Notification dots: red dot on the profile modal's Admin nav tab and on the
  Submissions subtab button when there are pending submissions, so admins know
  where to look. profileModalController.setSubmissionsUnreadIndicator toggles
  both (Admin nav dot gated on the tab being visible); driven from
  applyProfileNotificationDot off app._submissionsPending.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.8 committed 2026-07-07 14:59:09 -04:00
1 parent 37edbd18d2
commit d091ce8bac
7 files changed
+100 -7

No files matched your search

+10
View File
@@ -879,6 +879,16 @@ export default class ApplicationBootstrap {
) {
app.profileController.setMessagesUnreadIndicator(app._dmUnread);
}
// Pending-submissions dots on the Admin tab + Submissions subtab so an
// admin knows exactly where to look.
if (
app.profileController &&
typeof app.profileController.setSubmissionsUnreadIndicator === "function"
) {
app.profileController.setSubmissionsUnreadIndicator(
app._submissionsPending,
);
}
};
app.refreshUnreadDmIndicator = async ({ reason = "" } = {}) => {