Phase 17: UI Optimization & Polish #24

Merged
luckberg merged 61 commits from gsd/phase-17-ui-optimization-polish into main 2026-06-18 16:24:54 -04:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit b5fcd1d172 - Show all commits
@@ -10,6 +10,7 @@
import React from 'react'; import React from 'react';
import { describe, it, expect, vi, beforeEach } from 'vitest'; import { describe, it, expect, vi, beforeEach } from 'vitest';
import { render, screen, fireEvent } from '@testing-library/react'; import { render, screen, fireEvent } from '@testing-library/react';
import { MemoryRouter } from 'react-router';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
// ── Module mocks ────────────────────────────────────────────────────────────── // ── Module mocks ──────────────────────────────────────────────────────────────
@@ -70,7 +71,11 @@ function renderWithQueryClient(ui: React.ReactElement) {
const queryClient = new QueryClient({ const queryClient = new QueryClient({
defaultOptions: { queries: { retry: false }, mutations: { retry: false } }, defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
}); });
return render(<QueryClientProvider client={queryClient}>{ui}</QueryClientProvider>); return render(
<QueryClientProvider client={queryClient}>
<MemoryRouter>{ui}</MemoryRouter>
</QueryClientProvider>,
);
} }
// ── Tests ───────────────────────────────────────────────────────────────────── // ── Tests ─────────────────────────────────────────────────────────────────────
+1 -1
View File
@@ -142,7 +142,7 @@ export function SettingsSheet({ isOpen, onClose }: SettingsSheetProps) {
// API failure does not block navigation — server cookie was cleared or already expired // API failure does not block navigation — server cookie was cleared or already expired
} }
onClose(); onClose();
navigate('/login'); void navigate('/login');
}; };
const handleToggle = async () => { const handleToggle = async () => {