fix(i18n): capitalize on-behalf-of attribution label (MUL-5026) (#5670)

This commit is contained in:
YYClaw
2026-07-23 16:35:22 +08:00
committed by GitHub
parent 4bf17f5786
commit e3ebf317ae
2 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ describe("AttributionBadge", () => {
};
renderWithI18n(<AttributionBadge attribution={attribution} />);
expect(screen.getByText("on behalf of Ada Lovelace")).toBeInTheDocument();
expect(screen.getByText("On behalf of Ada Lovelace")).toBeInTheDocument();
expect(screen.getByTitle("Direct member action")).toBeInTheDocument();
});
@@ -45,7 +45,7 @@ describe("AttributionBadge", () => {
<AttributionBadge attribution={attribution} />,
);
expect(screen.getByText("on behalf of Grace")).toBeInTheDocument();
expect(screen.getByText("On behalf of Grace")).toBeInTheDocument();
expect(container.querySelector(".text-warning")).not.toBeNull();
expect(screen.getByTitle("No precise owner — attributed to the agent owner"))
.toBeInTheDocument();
@@ -64,7 +64,7 @@ describe("AttributionBadge", () => {
<AttributionBadge attribution={attribution} />,
);
expect(screen.getByText("on behalf of Bohan")).toBeInTheDocument();
expect(screen.getByText("On behalf of Bohan")).toBeInTheDocument();
// No warning tone — the confusing yellow that flagged backfilled runs is gone.
expect(container.querySelector(".text-warning")).toBeNull();
expect(container.querySelector(".text-muted-foreground")).not.toBeNull();
@@ -93,7 +93,7 @@ describe("AttributionBadge", () => {
};
renderWithI18n(<AttributionBadge attribution={attribution} />);
expect(screen.getByText("on behalf of someone")).toBeInTheDocument();
expect(screen.getByText("On behalf of someone")).toBeInTheDocument();
});
it("renders nothing when no responsible member resolved (MUL-4765)", () => {
@@ -134,7 +134,7 @@ describe("AttributionBadge", () => {
// Only the avatar (name plumbs through the stub) — no "on behalf of" chip.
expect(screen.getByTestId("actor-avatar")).toHaveTextContent("Ada Lovelace");
expect(screen.queryByText("on behalf of Ada Lovelace")).toBeNull();
expect(screen.queryByText("On behalf of Ada Lovelace")).toBeNull();
});
it("avatar variant renders nothing without an accountable member", () => {

View File

@@ -482,7 +482,7 @@
"status_failed": "Failed",
"status_cancelled": "Cancelled",
"attribution": {
"on_behalf_of": "on behalf of {{name}}",
"on_behalf_of": "On behalf of {{name}}",
"someone": "someone",
"source_direct_human": "Direct member action",
"source_delegation": "Delegated from another run",