diff --git a/devfront/src/components/layout/AppLayout.tsx b/devfront/src/components/layout/AppLayout.tsx index 64ed2759..30393ab1 100644 --- a/devfront/src/components/layout/AppLayout.tsx +++ b/devfront/src/components/layout/AppLayout.tsx @@ -11,12 +11,12 @@ import { import { useEffect, useRef, useState } from "react"; import { useAuth } from "react-oidc-context"; import { NavLink, Outlet, useNavigate } from "react-router-dom"; +import { fetchMe } from "../../features/auth/authApi"; import { t } from "../../lib/i18n"; import { resolveProfileRole } from "../../lib/role"; import LanguageSelector from "../common/LanguageSelector"; -import { Toaster } from "../ui/toaster"; import { Badge } from "../ui/badge"; -import { fetchMe } from "../../features/auth/authApi"; +import { Toaster } from "../ui/toaster"; const navItems = [ { diff --git a/devfront/src/features/profile/ProfilePage.tsx b/devfront/src/features/profile/ProfilePage.tsx index 2878a948..e54723d5 100644 --- a/devfront/src/features/profile/ProfilePage.tsx +++ b/devfront/src/features/profile/ProfilePage.tsx @@ -1,11 +1,11 @@ import { useQuery } from "@tanstack/react-query"; import { - User, - Shield, Briefcase, - Mail, - Fingerprint, Building2, + Fingerprint, + Mail, + Shield, + User, } from "lucide-react"; import { useState } from "react"; import { useAuth } from "react-oidc-context"; @@ -16,8 +16,8 @@ import { CardHeader, CardTitle, } from "../../components/ui/card"; -import { fetchMe } from "../auth/authApi"; import { t } from "../../lib/i18n"; +import { fetchMe } from "../auth/authApi"; function ProfilePage() { const auth = useAuth(); diff --git a/devfront/tests/devfront-consents.spec.ts b/devfront/tests/devfront-consents.spec.ts index 567419cb..593cab76 100644 --- a/devfront/tests/devfront-consents.spec.ts +++ b/devfront/tests/devfront-consents.spec.ts @@ -1,9 +1,9 @@ import { expect, test } from "@playwright/test"; import { + type Consent, installDevApiMock, makeClient, seedAuth, - type Consent, } from "./helpers/devfront-fixtures"; test.describe("DevFront consents", () => { diff --git a/devfront/tests/helpers/devfront-fixtures.ts b/devfront/tests/helpers/devfront-fixtures.ts index 130201e8..bb7ec460 100644 --- a/devfront/tests/helpers/devfront-fixtures.ts +++ b/devfront/tests/helpers/devfront-fixtures.ts @@ -124,10 +124,13 @@ export async function seedAuth(page: Page, role?: string) { headers: { "Access-Control-Allow-Origin": "*" }, }); } else { - await route.fulfill({ status: 200, body: "ok", headers: { "Access-Control-Allow-Origin": "*" } }); + await route.fulfill({ + status: 200, + body: "ok", + headers: { "Access-Control-Allow-Origin": "*" }, + }); } }); - } function json(route: Route, payload: unknown, status = 200) {