]> source.dussan.org Git - gitea.git/commit
Refactor sidebar assignee&milestone&project selectors (#32465)
authorwxiaoguang <wxiaoguang@gmail.com>
Sun, 10 Nov 2024 20:07:54 +0000 (04:07 +0800)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 20:07:54 +0000 (04:07 +0800)
commita928739456b78072136a1a264a68758571238aac
tree6031dfd4eb110262338e3b2636dee445cac63fa7
parent58c634b8549fb279aec72cecd6a48511803db067
Refactor sidebar assignee&milestone&project selectors (#32465)

Follow #32460

Now the code could be much clearer than before and easier to maintain. A
lot of legacy code is removed.

Manually tested.

This PR is large enough, that fine tunes could be deferred to the future if
there is no bug found or design problem.

Screenshots:

<details>

![image](https://github.com/user-attachments/assets/35f4ab7b-1bc0-4bad-a73c-a4569328303c)

</details>
23 files changed:
modules/base/tool.go
modules/base/tool_test.go
modules/container/set.go
modules/container/set_test.go
modules/templates/helper.go
routers/web/repo/compare.go
routers/web/repo/issue.go
routers/web/repo/pull.go
services/forms/repo_form.go
templates/repo/issue/milestone/select_menu.tmpl [deleted file]
templates/repo/issue/new_form.tmpl
templates/repo/issue/sidebar/assignee_list.tmpl
templates/repo/issue/sidebar/label_list.tmpl
templates/repo/issue/sidebar/label_list_item.tmpl
templates/repo/issue/sidebar/milestone_list.tmpl
templates/repo/issue/sidebar/participant_list.tmpl
templates/repo/issue/sidebar/project_list.tmpl
templates/repo/issue/sidebar/reviewer_list.tmpl
templates/repo/issue/view_content/sidebar.tmpl
web_src/css/repo.css
web_src/js/features/repo-issue-sidebar-combolist.ts
web_src/js/features/repo-issue-sidebar.md
web_src/js/features/repo-issue-sidebar.ts