mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
style: prettier on touched test + e2e files
Run prettier on the test, e2e, and component files this v1.4.19 A8 wave touched. The .planning/* and docs/audit/* prettier warnings are pre-existing baseline noise — left alone to keep this commit narrow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
713b494f04
commit
ae2f671321
6 files changed
+15
-21
No files matched your search
@@ -120,7 +120,9 @@ describe("ApiTokenOverviewSection — truncate + tooltip (4th attempt)", () => {
|
||||
// card on mobile. Badge primitive already has `overflow-hidden`,
|
||||
// we add an upper bound on width so it ellipsises instead of
|
||||
// pushing the parent.
|
||||
expect(html).toMatch(/<span[^>]*max-w-(?:\[[^\]]+\]|full)[^>]*\btruncate\b/);
|
||||
expect(html).toMatch(
|
||||
/<span[^>]*max-w-(?:\[[^\]]+\]|full)[^>]*\btruncate\b/,
|
||||
);
|
||||
});
|
||||
|
||||
it("renders shadcn tooltip wrappers around truncated cells so the full value stays discoverable", () => {
|
||||
|
||||
@@ -41,7 +41,10 @@ vi.mock("@tanstack/react-query", async () => {
|
||||
}
|
||||
}
|
||||
return {
|
||||
data: { entries: [], meta: { total: 0, limit: 50, offset: 0, page: 1, perPage: 50 } },
|
||||
data: {
|
||||
entries: [],
|
||||
meta: { total: 0, limit: 50, offset: 0, page: 1, perPage: 50 },
|
||||
},
|
||||
isLoading: false,
|
||||
isError: false,
|
||||
refetch: vi.fn(),
|
||||
|
||||
@@ -45,10 +45,7 @@ function TruncatedCell({
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<span
|
||||
className={`block truncate ${className ?? ""}`}
|
||||
title={value}
|
||||
>
|
||||
<span className={`block truncate ${className ?? ""}`} title={value}>
|
||||
{value}
|
||||
</span>
|
||||
</TooltipTrigger>
|
||||
@@ -168,8 +165,7 @@ export function ApiTokenOverviewSection() {
|
||||
<tbody className="divide-border divide-y">
|
||||
{tokens.map((token, i) => {
|
||||
const isExpired =
|
||||
token.expiresAt &&
|
||||
new Date(token.expiresAt) < new Date();
|
||||
token.expiresAt && new Date(token.expiresAt) < new Date();
|
||||
return (
|
||||
<tr
|
||||
key={token.id}
|
||||
@@ -285,9 +281,7 @@ export function ApiTokenOverviewSection() {
|
||||
variant="secondary"
|
||||
className="max-w-full truncate text-[10px]"
|
||||
title={
|
||||
p === "*"
|
||||
? t("admin.tokenPermissionAllTooltip")
|
||||
: p
|
||||
p === "*" ? t("admin.tokenPermissionAllTooltip") : p
|
||||
}
|
||||
>
|
||||
{p === "*" ? t("admin.tokenPermissionAll") : p}
|
||||
|
||||
Reference in new issue
Block a user