From 5dc9d621fd998387bc8e495580055bc9f6756b5a Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 11 May 2026 07:25:26 +0200 Subject: [PATCH] refactor: replace Fomantic search module with first-party code (#37443) - Replace fomantic `search` code with minimal first-party code - Added a small fix to vertically align search box and search button - Manually tested all search forms. - Add `errorName` helper, similar to `errorMessage`. Signed-off-by: silverwind 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/org.test.ts | 23 +- tests/e2e/repo-collab.test.ts | 24 + tests/e2e/utils.ts | 14 + 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/common-fetch-action.ts | 4 +- web_src/js/features/comp/SearchRepoBox.ts | 31 +- web_src/js/features/comp/SearchUserBox.ts | 61 +- web_src/js/features/repo-settings.ts | 33 +- web_src/js/modules/errors.ts | 6 + web_src/js/modules/search.ts | 116 ++ 15 files changed, 232 insertions(+), 1663 deletions(-) create mode 100644 tests/e2e/repo-collab.test.ts delete mode 100644 web_src/fomantic/build/components/search.js create mode 100644 web_src/js/modules/search.ts diff --git a/templates/admin/badge/users.tmpl b/templates/admin/badge/users.tmpl index 89d2597310..051de1b466 100644 --- a/templates/admin/badge/users.tmpl +++ b/templates/admin/badge/users.tmpl @@ -4,8 +4,8 @@ {{.Title}}
-
- {{end}}
- - {{end}}
- -