feat(ui): InlineAction for small text actions, with a 44 px touch floor

Thirty-three hand-rolled underlined text links and buttons (Open
schedule, Select all, View all, Retry, Learn more, the device-code copy
action, ...) carried three different focus rings, none on half of them,
and a 16 px target on a phone. They now render through one InlineAction
primitive: tone primary / muted / foreground, size xs / sm, a focus ring,
and min-h-11 on a coarse pointer so the desktop layout does not move. A
structural test refuses a new hand-rolled copy.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 13:03:15 +02:00
1 parent ce8074ad08
commit 60be63bcd1
33 files changed
+484 -222

No files matched your search

@@ -65,6 +65,7 @@ import {
type IntegrationDocsProvider,
} from "./setup-guide-link";
import { failureStreakFor, type IntegrationStatusViewModel } from "./shared";
import { InlineAction } from "@/components/ui/inline-action";
export type OAuthIntegrationKey =
| "withings"
@@ -489,16 +490,17 @@ export function OAuthIntegrationCardView({
details || planLimited || viewModel?.metricFreshness?.length ? (
<>
{planLimited ? (
<a
href={WITHINGS_API_PLANS_URL}
target="_blank"
rel="noopener noreferrer"
data-testid="withings-plan-link"
className="text-primary inline-flex min-h-11 items-center gap-1 text-sm underline-offset-2 hover:underline sm:min-h-0"
>
{t("settings.integrations.withings.plan.link")}
<ExternalLink className="size-3" aria-hidden="true" />
</a>
<InlineAction asChild size="sm">
<a
href={WITHINGS_API_PLANS_URL}
target="_blank"
rel="noopener noreferrer"
data-testid="withings-plan-link"
>
{t("settings.integrations.withings.plan.link")}
<ExternalLink className="size-3" aria-hidden="true" />
</a>
</InlineAction>
) : null}
{details}
<MetricFreshnessList entries={viewModel?.metricFreshness} />