docs: slim ADR section in CLAUDE.md (format lives in README)

fix: SearchPanel test — fireEvent.keyDown on window not document
chore: ignore src-tauri/gen/ in eslint flat config (Tauri iOS generated files)
This commit is contained in:
lucaronin
2026-03-28 10:18:06 +01:00
parent b8c2e8a83e
commit 04ff69a657
3 changed files with 2 additions and 4 deletions

View File

@@ -94,8 +94,6 @@ ADRs live in `docs/adr/`. Read `docs/adr/README.md` for the format.
**After completing a task**: if you made a significant architectural decision that isn't already documented in `docs/adr/`, create a new ADR in the same commit. A decision is "significant" if it affects: data storage, platform support, major dependencies, core abstractions, or cross-cutting concerns.
ADRs use Laputa note format — YAML frontmatter with `type: ADR`, `status: active|superseded|proposed`, `date: YYYY-MM-DD`.
**Do not create ADRs for**: implementation details, UI styling choices, refactoring decisions, or anything that doesn't affect how future code should be written.
## Design File (UI tasks)

View File

@@ -6,7 +6,7 @@ import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig([
globalIgnores(['dist', 'coverage', 'src-tauri/resources/', 'src-tauri/target/', 'tools/']),
globalIgnores(['dist', 'coverage', 'src-tauri/resources/', 'src-tauri/target/', 'src-tauri/gen/', 'tools/']),
{
files: ['**/*.{ts,tsx}'],
extends: [

View File

@@ -189,7 +189,7 @@ describe('SearchPanel', () => {
expect(screen.getByText('Result One')).toBeInTheDocument()
})
fireEvent.keyDown(document, { key: 'ArrowDown' })
fireEvent.keyDown(window, { key: 'ArrowDown' })
await waitFor(() => {
const resultTwo = screen.getByText('Result Two').closest('[class*="cursor-pointer"]')!