Add type-safe navigation helpers and public pages
- Create gotoLogin() helper for login redirects with search params - Add /terms and /privacy public routes with Tailwind typography - Update auth-guard to allow unauthenticated access to public pages - Fix resolve() usage across navigation components using as const pattern - Fix eslint-disable-next-line placement for svelte/no-navigation-without-resolve - Document SvelteKit resolve() patterns in CLAUDE.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,9 +51,9 @@ describe("getUserInitials", () => {
|
||||
});
|
||||
|
||||
test("handles empty display name", () => {
|
||||
expect(
|
||||
getUserInitials({ displayName: "", email: "bob@example.com" }),
|
||||
).toBe("BO");
|
||||
expect(getUserInitials({ displayName: "", email: "bob@example.com" })).toBe(
|
||||
"BO",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user