Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"jsdom": "^29.1.1",
"oxfmt": "^0.59.0",
"oxlint": "^1.74.0",
"oxlint-tsgolint": "^0.23.0",
"oxlint-tsgolint": "^7.0.2001",
"typescript": "~6.0.3",
"vite": "^8.1.3",
"vitest": "^4.1.9",
Expand Down
66 changes: 33 additions & 33 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions frontend/src/composables/useGraphQL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ export function useQuery<TData = Record<string, unknown>, TVariables = Record<st
// Watch enabled flag
if (options?.enabled && (isRef(options.enabled) || typeof options.enabled === "function")) {
const enabledGetter =
typeof options.enabled === "function"
? (options.enabled as () => boolean)
: () => (options.enabled as Ref<boolean>).value;
typeof options.enabled === "function" ? options.enabled : () => (options.enabled as Ref<boolean>).value;

watch(enabledGetter, (val) => {
if (val) void execute();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/auth/LoginPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import LoginPage from "./LoginPage.vue";
// ── Hoisted mocks ─────────────────────────────────────────────────

const { mockRoute, mockPush, mockSignIn } = vi.hoisted(() => ({
mockRoute: { query: {} as Record<string, string> },
mockRoute: { query: {} },
mockPush: vi.fn<() => void>(),
mockSignIn: vi.fn<(email: string, password: string) => Promise<{ success: boolean; errors: string[] }>>()
}));
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/auth/PasswordResetConfirmPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PasswordResetConfirmPage from "./PasswordResetConfirmPage.vue";
// ── Hoisted mocks ─────────────────────────────────────────────────

const { mockRoute, mockResetPassword } = vi.hoisted(() => ({
mockRoute: { query: { reset_password_token: "valid-token-123" } as Record<string, string> },
mockRoute: { query: { reset_password_token: "valid-token-123" } },
mockResetPassword:
vi.fn<(token: string, pw: string, pwc: string) => Promise<{ success: boolean; errors: string[] }>>()
}));
Expand Down
Loading