docs: ADR for client-side fetch exception in editor suggestion plugins #631
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
PR #629 introduced a per-keystroke client-side fetch from
PersonMentionEditor.svelteto/api/persons(driven by the Tiptap suggestion plugin'sitems()callback — now via the dropdown's debouncedonSearch). This violates thefrontend/CLAUDE.mdrule "no client-side API fetch — data flows from +page.server.ts via props".The inline comment at
PersonMentionEditor.svelte:140-153argues the exception is justified for Tiptap's suggestion plugin (browser-only by design, latency-sensitive, cookie-auth via Vite/Caddy proxy works identically) and references a follow-up ADR — but no ADR is on disk yet.Decision needed
Write an ADR formalising:
+server.tsproxy is identical in cost but adds a hop.Reviewer rationale: Markus on PR #629 comment #10919, re-flagged on comment #10959.
Acceptance
docs/adr/00XX-client-side-fetch-exception-for-suggestion-plugins.mdfollowing existing ADR template.frontend/CLAUDE.md(the "no client-side API fetch" rule should cite the exception).PersonMentionEditor.svelte:140-153updated to link the ADR file.