style: prettier on W5 reconcile touchpoints

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marc-André BombeckandClaude Opus 4.7 committed 2026-05-10 22:30:53 +02:00
1 parent b094eaa2ae
commit bbdc3fbd00
9 files changed
+32 -39

No files matched your search

@@ -141,9 +141,7 @@ describe("ApiTokenOverviewSection — responsive", () => {
// two date columns (text-right + text-xs is unique to those cells)
// and assert none carries whitespace-nowrap.
const dateCellMatches =
tableMarkup.match(
/<td[^>]*\btext-right\b[^>]*\btext-xs\b[^>]*>/g,
) ?? [];
tableMarkup.match(/<td[^>]*\btext-right\b[^>]*\btext-xs\b[^>]*>/g) ?? [];
expect(dateCellMatches.length).toBeGreaterThanOrEqual(2);
for (const cell of dateCellMatches) {
expect(cell).not.toContain("whitespace-nowrap");
+4 -16
View File
@@ -242,10 +242,7 @@ export function TrendCard({
full layout returns at `>=sm`. */}
{compareBaseline !== "none" && compareDelta != null && (
<div
className={cn(
"mt-1",
avgAllTime !== undefined && "hidden sm:block",
)}
className={cn("mt-1", avgAllTime !== undefined && "hidden sm:block")}
>
<span
className={cn(
@@ -331,16 +328,10 @@ export function TrendCard({
combined secondary row below so the tile keeps the same
vertical density as every other trend card. */}
{avgAllTime !== undefined && (
<span
data-slot="trend-card-all-time"
className="hidden sm:inline"
>
<span data-slot="trend-card-all-time" className="hidden sm:inline">
{t(avgAllTimeLabelKey)}:{" "}
<span
className={cn(
"font-medium tabular-nums",
avgAllTimeColorClass,
)}
className={cn("font-medium tabular-nums", avgAllTimeColorClass)}
>
{avgAllTime !== null ? formatValue(avgAllTime) : "—"}
</span>
@@ -360,10 +351,7 @@ export function TrendCard({
<span>
{t(avgAllTimeLabelKey)}:{" "}
<span
className={cn(
"font-medium tabular-nums",
avgAllTimeColorClass,
)}
className={cn("font-medium tabular-nums", avgAllTimeColorClass)}
>
{avgAllTime !== null ? formatValue(avgAllTime) : "—"}
</span>
@@ -21,7 +21,12 @@ const useAuthMock = vi.fn<
isLoading: boolean;
}
>(() => ({
user: { id: "test-user", username: "tester", role: "USER", gravatarUrl: null },
user: {
id: "test-user",
username: "tester",
role: "USER",
gravatarUrl: null,
},
isAuthenticated: true,
isLoading: false,
}));
@@ -335,7 +340,9 @@ describe("<MessageThread>", () => {
const html = render(<MessageThread conversation={withKeyValues} />);
expect(html).toContain("30-day adherence");
// No stray empty unit/window markup.
expect(html).not.toMatch(/30-day adherence:\s*<\/span>\s*<strong[^>]*>\s*</);
expect(html).not.toMatch(
/30-day adherence:\s*<\/span>\s*<strong[^>]*>\s*</,
);
});
it("hides the disclosure entirely when keyValues is empty or absent", () => {
@@ -365,7 +372,9 @@ describe("<MessageThread>", () => {
expect(html).toMatch(
/<img[^>]+src="https:\/\/www\.gravatar\.com\/avatar\/abc123/,
);
expect(html).toMatch(/data-slot="coach-bubble-user-avatar"[^>]*class="[^"]*size-8/);
expect(html).toMatch(
/data-slot="coach-bubble-user-avatar"[^>]*class="[^"]*size-8/,
);
});
it("falls back to initials when no Gravatar URL is present", () => {
@@ -316,7 +316,7 @@ function ChatBubble({
className={cn(
"text-muted-foreground hover:text-foreground flex cursor-pointer",
"items-center gap-1.5 leading-relaxed",
"[&::-webkit-details-marker]:hidden marker:hidden",
"marker:hidden [&::-webkit-details-marker]:hidden",
"focus-visible:ring-ring/50 rounded outline-none focus-visible:ring-2",
)}
>