From 77f78076fef8b563f3c74fa5269f4cf09ac7a7a0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 26 Apr 2026 20:43:58 +0200 Subject: [PATCH 01/14] Replace Fomantic search module with first-party autocomplete Drops the 1565-line vendored Fomantic UI search jQuery plugin in favor of a small first-party TypeScript module covering the three call sites (repo, user, and team autocomplete). Adds an e2e regression suite that exercises each search box. Also fixes input/button vertical alignment in the four forms that wrap a search box: the fomantic-era `tw-align-middle` workaround is replaced by `flex-text-block` on the form, which is the codebase's standard flex helper for this layout. Co-Authored-By: Claude (Opus 4.7) --- templates/admin/badge/users.tmpl | 4 +- templates/repo/settings/actions_general.tmpl | 4 +- templates/repo/settings/collaboration.tmpl | 8 +- tests/e2e/search-box.test.ts | 83 + tests/e2e/utils.ts | 28 + web_src/css/modules/search.css | 2 +- web_src/fomantic/build/components/search.js | 1565 ------------------ web_src/fomantic/build/fomantic.js | 1 - web_src/fomantic/theme.config.less | 1 - web_src/js/features/comp/SearchRepoBox.ts | 29 +- web_src/js/features/comp/SearchUserBox.ts | 58 +- web_src/js/features/repo-settings.ts | 31 +- web_src/js/modules/fomantic/search.ts | 120 ++ 13 files changed, 291 insertions(+), 1643 deletions(-) create mode 100644 tests/e2e/search-box.test.ts delete mode 100644 web_src/fomantic/build/components/search.js create mode 100644 web_src/js/modules/fomantic/search.ts diff --git a/templates/admin/badge/users.tmpl b/templates/admin/badge/users.tmpl index 97d332010f..77d126acb9 100644 --- a/templates/admin/badge/users.tmpl +++ b/templates/admin/badge/users.tmpl @@ -4,8 +4,8 @@ {{.Title}}
-
- {{end}}
- - {{end}}
- -