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
1 change: 1 addition & 0 deletions src/components/Shell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ test('shows nav, endpoint pill, and outlet content when connected', async () =>
expect(screen.getByText('home content')).toBeInTheDocument()
await waitFor(() => expect(screen.getByText('127.0.0.1:8731')).toBeInTheDocument())
expect(screen.queryByText(/connect to your knowledge base/i)).not.toBeInTheDocument()
expect(screen.getByRole('button', { name: /toggle theme/i })).toBeInTheDocument()
})
1 change: 1 addition & 0 deletions src/components/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export function Shell() {
<button
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
title="Toggle theme"
aria-label="Toggle theme"
className="rounded-lg p-2 text-sepia transition hover:bg-paper-3 hover:text-ink"
>
<SunMoon size={16} />
Expand Down