Files
gitea/web_src/js/features/comp
silverwindandClaude 5859380a12 Convert search box to imperative attach API
- attachSearchBox(el, url, parse) replaces the await-style chooseFromApi
- The component handles input update + change-event dispatch on
  selection, so callers don't loop or write back the value themselves
- Each caller is now a single statement; response shape is conveyed via
  the parse callback's parameter annotation (T inferred)

Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
2026-04-27 00:44:53 +02:00
..