diff --git a/ui/src/components/IssueProperties.test.tsx b/ui/src/components/IssueProperties.test.tsx
index 6d4ef3258fc..69e36f8bccb 100644
--- a/ui/src/components/IssueProperties.test.tsx
+++ b/ui/src/components/IssueProperties.test.tsx
@@ -130,8 +130,8 @@ vi.mock("../lib/assignees", () => ({
}));
vi.mock("./StatusIcon", () => ({
- StatusIcon: ({ status, blockerAttention }: { status: string; blockerAttention?: Issue["blockerAttention"] }) => (
- {status}
+ StatusIcon: ({ status, blockerAttention, className, glyphContainerClassName, size }: { status: string; blockerAttention?: Issue["blockerAttention"]; className?: string; glyphContainerClassName?: string; size?: string }) => (
+ {status}
),
}));
@@ -527,6 +527,12 @@ describe("IssueProperties", () => {
expect(surface?.classList).toContain("pl-4");
expect(surface?.querySelectorAll('[data-property-section="true"]').length).toBeGreaterThan(1);
expect(surface?.querySelector('[data-property-value="true"]')).not.toBeNull();
+ const statusVisual = surface?.querySelector(
+ '[data-property-label="Status"] + [data-property-value="true"] [data-testid="status-icon"]',
+ );
+ expect(statusVisual).not.toBeNull();
+ expect(statusVisual?.getAttribute("data-size")).toBeNull();
+ expect(statusVisual?.getAttribute("data-glyph-container-class")).toContain("size-6");
expect(surface?.querySelector('[data-property-section="true"] > div')?.classList)
.toContain("text-muted-foreground/70");
const projectLabel = surface?.querySelector('[data-property-label="Project"]');
diff --git a/ui/src/components/StatusIcon.test.tsx b/ui/src/components/StatusIcon.test.tsx
index 8b258b4d93e..3c9dfc32181 100644
--- a/ui/src/components/StatusIcon.test.tsx
+++ b/ui/src/components/StatusIcon.test.tsx
@@ -108,6 +108,16 @@ describe("StatusIcon — glyph size (PAP-243a)", () => {
expect(html).toContain('width="16"');
expect(html).toContain('height="16"');
});
+
+ it("can place the default glyph in a larger layout footprint without resizing it", () => {
+ const html = renderToStaticMarkup(
+ ,
+ );
+ expect(html).toContain('data-status-glyph-container="true"');
+ expect(html).toContain('class="size-6"');
+ expect(html).toContain('width="16"');
+ expect(html).toContain('height="16"');
+ });
});
diff --git a/ui/src/components/StatusIcon.tsx b/ui/src/components/StatusIcon.tsx
index e84fb6bf53c..30f90f04017 100644
--- a/ui/src/components/StatusIcon.tsx
+++ b/ui/src/components/StatusIcon.tsx
@@ -17,6 +17,8 @@ interface StatusIconProps {
blockerAttention?: IssueBlockerAttention | null;
onChange?: (status: string) => void;
className?: string;
+ /** Optional layout wrapper around the glyph. Does not change glyph dimensions. */
+ glyphContainerClassName?: string;
showLabel?: boolean;
/** Glyph size (PAP-243a). Default `md` (16px); lists/detail/mentions use `lg` (20px). */
size?: StatusGlyphSize;
@@ -76,14 +78,14 @@ function blockedAttentionLabel(blockerAttention: IssueBlockerAttention | null |
* glyph — the blocked shape recoloured blue — while the full blocked reason
* still rides on the accessible label.
*/
-export function StatusIcon({ status, externalConversationState, blockerAttention, onChange, className, showLabel, size = "md" }: StatusIconProps) {
+export function StatusIcon({ status, externalConversationState, blockerAttention, onChange, className, glyphContainerClassName, showLabel, size = "md" }: StatusIconProps) {
const [open, setOpen] = useState(false);
const displayStatus = status === "in_review" && externalConversationState === "waiting" ? "idle" : status;
const isCoveredBlocked = status === "blocked" && blockerAttention?.state === "covered";
const ariaLabel = status === "blocked" ? blockedAttentionLabel(blockerAttention) : statusLabel(displayStatus);
const glyphStatus = isCoveredBlocked ? "in_queue" : displayStatus;
- const glyph = (
+ const glyphIcon = (
);
+ const glyph = glyphContainerClassName ? (
+
+ {glyphIcon}
+
+ ) : glyphIcon;
if (!onChange) {
return showLabel ? (
diff --git a/ui/src/components/issue-properties/IssueProperties.tsx b/ui/src/components/issue-properties/IssueProperties.tsx
index aa21568cdc7..510a3ad0d3a 100644
--- a/ui/src/components/issue-properties/IssueProperties.tsx
+++ b/ui/src/components/issue-properties/IssueProperties.tsx
@@ -1947,7 +1947,7 @@ export function IssueProperties({
{projectName(issue.projectId)}
>
@@ -2334,8 +2334,9 @@ export function IssueProperties({
>
onUpdate({ status })}
showLabel