From c06ebf850f923e1b27a6437cfc27b32139f8e901 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 9 Jul 2026 20:22:10 -0500 Subject: [PATCH] Call out account-level labels in the labels-on-me dialog The additional labels pill can surface both post and account labels, so the content-type dialog now uses post-oriented copy and flags account-level labels with a per-label admonition. Include the label uri in the list key so an account and post label sharing val and src do not collide. Reword the equivalent ModerationDetailsDialog admonition from "moderation" to "label". Co-Authored-By: Claude Fable 5 --- .../moderation/LabelsOnMeDialog.tsx | 27 ++++++++++++++++--- .../moderation/ModerationDetailsDialog.tsx | 4 +-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/components/moderation/LabelsOnMeDialog.tsx b/src/components/moderation/LabelsOnMeDialog.tsx index ac5f256751..0a641f823f 100644 --- a/src/components/moderation/LabelsOnMeDialog.tsx +++ b/src/components/moderation/LabelsOnMeDialog.tsx @@ -11,6 +11,7 @@ import {makeProfileLink} from '#/lib/routes/links' import {sanitizeHandle} from '#/lib/strings/handles' import {useSession} from '#/state/session' import {atoms as a, useTheme} from '#/alf' +import {Admonition} from '#/components/Admonition' import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {InlineLinkText} from '#/components/Link' @@ -23,6 +24,11 @@ export {useDialogControl as useLabelsOnMeDialogControl} from '#/components/Dialo export interface LabelsOnMeDialogProps { control: Dialog.DialogOuterProps['control'] labels: ComAtprotoLabelDefs.Label[] + /** + * Whether the labels are being shown on the user's account or on a post. + * With `content`, the list may include account-level labels, which get a + * per-label callout. + */ type: 'account' | 'content' } @@ -55,7 +61,7 @@ function LabelsOnMeDialogInner(props: LabelsOnMeDialogProps) { label={ isAccount ? _(msg`The following labels were applied to your account.`) - : _(msg`The following labels were applied to your content.`) + : _(msg`The following labels were applied to this post.`) }> {appealingLabel ? ( Labels on your account ) : ( - Labels on your content + Labels applied to this post )} @@ -89,9 +95,10 @@ function LabelsOnMeDialogInner(props: LabelsOnMeDialogProps) { {labels.map(label => ( {!isSelfLabel && ( diff --git a/src/components/moderation/ModerationDetailsDialog.tsx b/src/components/moderation/ModerationDetailsDialog.tsx index d0289496c5..0a71f5b350 100644 --- a/src/components/moderation/ModerationDetailsDialog.tsx +++ b/src/components/moderation/ModerationDetailsDialog.tsx @@ -191,8 +191,8 @@ function ModerationDetailsDialogInner({ {desc.isSubjectAccount && ( - This moderation was applied to the entire user account and will - appear on all posts. + This label was applied to the entire user account and will appear + on all posts. )}