From 83df37c2d1c19ec98f1da91545d047fb15ad1c1a Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 1 Dec 2025 16:25:09 -0800 Subject: [PATCH] Update .github/copilot-instructions.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .github/copilot-instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index c8daefe56..b4dfb29f7 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -197,7 +197,7 @@ When adding query parameters to ETAPI endpoints (`apps/server/src/etapi/`), main 2. **Protected notes require session check** - Before accessing `note.title` or `note.getContent()` on protected notes, check `note.isContentAvailable()` or use `note.getTitleOrProtected()` which handles this automatically. -3. **Widget lifecycle matters** - Override `refreshWithNote()` for note changes, `doRenderBody()` for initial render, `entitiesReloadedEvent()` for entity updates. Widgets use jQuery (`this.$body`) - don't mix React patterns. +3. **Widget lifecycle matters** - Override `refreshWithNote()` for note changes, `doRenderBody()` for initial render, `entitiesReloadedEvent()` for entity updates. Widgets use jQuery (`this.$widget`) - don't mix React patterns. 4. **Tests run differently** - Server tests must run sequentially (shared database state), client tests can run in parallel. Use `pnpm test:sequential` for backend, `pnpm test:parallel` for frontend.