diff --git a/openspec/changes/add-event-invitations/tasks.md b/openspec/changes/add-event-invitations/tasks.md index 9edf4d4..ff4b9b5 100644 --- a/openspec/changes/add-event-invitations/tasks.md +++ b/openspec/changes/add-event-invitations/tasks.md @@ -167,7 +167,7 @@ Every portal verify must report the exit codes of lint, tsc and vitest. Vitest e - **`ROUTE_MODULES`:** maps the print route. - Scope: `solvway-admin-portal/app/**` - Verify: as 5.1 -- [ ] 5.3 My QR codes (Share, full screen), the new-code notice in the shell, and the event leads Attended column and filter, Source column and Attended checkbox in the edit form. +- [x] 5.3 My QR codes (Share, full screen), the new-code notice in the shell, and the event leads Attended column and filter, Source column and Attended checkbox in the edit form. - Depends on: 5.2, 3.3 (event leads part) - Tests first: - **Share:** uses `navigator.share` when present, otherwise the clipboard. diff --git a/solvway-admin-portal/app/components/app/AppShell.test.tsx b/solvway-admin-portal/app/components/app/AppShell.test.tsx index 639e879..f3c664a 100644 --- a/solvway-admin-portal/app/components/app/AppShell.test.tsx +++ b/solvway-admin-portal/app/components/app/AppShell.test.tsx @@ -14,6 +14,7 @@ vi.mock("@/app/lib/AdminAuthContext", () => ({ })); vi.mock("./Sidebar", () => ({ default: () =>
})); +vi.mock("./NewCodeNotice", () => ({ NewCodeNotice: () => })); vi.mock("./Header", () => ({ default: () => })); import AppShell from "./AppShell"; @@ -53,6 +54,13 @@ describe("AppShell", () => { expect(nav.replace).not.toHaveBeenCalled(); }); + it("shows the new-code notice in the signed-in shell", () => { + auth.loading = false; + auth.name = "Admin User"; + render(+ {t("QrNewCode")}{" "} + {t("QrMyTitle")} +
+ +{t("CopyFailed")}
}