mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
style(v1.4.15): prettier sweep on phase-D reconcile touched files
Class-order + line-length normalisation on tour.tsx, mock-client.ts, and codex-slug-fallback.test.ts after the focus-trap / strict-schema / inspect-helper-removal commits. No functional changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
79bb167333
commit
d94756389f
3 files changed
+6
-9
No files matched your search
@@ -366,7 +366,7 @@ export function OnboardingTour({
|
||||
<button
|
||||
type="button"
|
||||
aria-label={t("onboarding.tour.skip")}
|
||||
className="absolute inset-0 cursor-default bg-black/70 transition-opacity duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 motion-reduce:transition-none"
|
||||
className="focus-visible:ring-primary absolute inset-0 cursor-default bg-black/70 transition-opacity duration-150 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none motion-reduce:transition-none"
|
||||
style={clipPath ? { clipPath, WebkitClipPath: clipPath } : undefined}
|
||||
onClick={handleSkip}
|
||||
/>
|
||||
@@ -398,7 +398,7 @@ export function OnboardingTour({
|
||||
>
|
||||
<header className="flex items-start justify-between gap-3">
|
||||
<div>
|
||||
<p className="text-muted-foreground text-xs font-medium tracking-wide tabular-nums uppercase">
|
||||
<p className="text-muted-foreground text-xs font-medium tracking-wide uppercase tabular-nums">
|
||||
{t("onboarding.tour.stepOf", {
|
||||
current: counter.current,
|
||||
total: counter.total,
|
||||
@@ -445,9 +445,7 @@ export function OnboardingTour({
|
||||
onClick={handleNext}
|
||||
data-testid="onboarding-tour-primary"
|
||||
>
|
||||
{isLast
|
||||
? t("onboarding.tour.done")
|
||||
: t("onboarding.tour.next")}
|
||||
{isLast ? t("onboarding.tour.done") : t("onboarding.tour.next")}
|
||||
</Button>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -222,9 +222,7 @@ describe("Codex slug fallback chain", () => {
|
||||
it("does NOT walk on 401 — refreshes and retries same slug", async () => {
|
||||
const mockFetch = vi
|
||||
.fn()
|
||||
.mockResolvedValueOnce(
|
||||
new Response("unauthorized", { status: 401 }),
|
||||
)
|
||||
.mockResolvedValueOnce(new Response("unauthorized", { status: 401 }))
|
||||
.mockResolvedValueOnce(sseSuccessResponse());
|
||||
vi.stubGlobal("fetch", mockFetch);
|
||||
|
||||
|
||||
@@ -62,7 +62,8 @@ export class MockAIProvider implements AIProvider {
|
||||
this.model = opts.model ?? "mock-model";
|
||||
this.rejectWith = opts.rejectWith;
|
||||
if (Array.isArray(opts.responses)) {
|
||||
this.responses = opts.responses.length > 0 ? opts.responses : [DEFAULT_RESPONSE];
|
||||
this.responses =
|
||||
opts.responses.length > 0 ? opts.responses : [DEFAULT_RESPONSE];
|
||||
} else if (typeof opts.responses === "string") {
|
||||
this.responses = [opts.responses];
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user