From 04ff69a6574ea06ed42b4b4b27e2c259911e51fe Mon Sep 17 00:00:00 2001 From: lucaronin Date: Sat, 28 Mar 2026 10:18:06 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20slim=20ADR=20section=20in=20CLAUDE.md?= =?UTF-8?q?=20(format=20lives=20in=20README)=20fix:=20SearchPanel=20test?= =?UTF-8?q?=20=E2=80=94=20fireEvent.keyDown=20on=20window=20not=20document?= =?UTF-8?q?=20chore:=20ignore=20src-tauri/gen/=20in=20eslint=20flat=20conf?= =?UTF-8?q?ig=20(Tauri=20iOS=20generated=20files)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 2 -- eslint.config.js | 2 +- src/components/SearchPanel.test.tsx | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 51279053..833e00af 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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) diff --git a/eslint.config.js b/eslint.config.js index 237fd755..037ba5a7 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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: [ diff --git a/src/components/SearchPanel.test.tsx b/src/components/SearchPanel.test.tsx index 22c19f63..25ed723b 100644 --- a/src/components/SearchPanel.test.tsx +++ b/src/components/SearchPanel.test.tsx @@ -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"]')!