From 50070550a8798dba2f1758d39923f0f4ef09acb5 Mon Sep 17 00:00:00 2001 From: puni9869 <80308335+puni9869@users.noreply.github.com> Date: Sun, 1 Oct 2023 18:34:39 +0530 Subject: Hide archived labels when filtering by labels on the issue list (#27115) Followup https://github.com/go-gitea/gitea/pull/26820 ## Archived labels UI for issue filter and issue filter actions for issues/pull request pages. Changed: * Enhanced the Issue filter and Issue filter actions UI page to seamlessly incorporate a list of archived labels. * Pagination functionality is same as before. If archived label checkbox is checked then we are adding a query string`archived=true` in the url to save the state of page. * Issue filter actions menu is separated into different template. * Adding the archived flag in issue url labels. * Pull Request page is also work the same. Outsourced: * Defer the implementation of specialized handling for archived labels to upcoming pull requests. This step will be undertaken subsequent to the successful merge of this pull request. Screenshots ### Issue page image ### Issue page with label filter on archived label checkbox when not checked --> No archived label is there in list image ### Issue page with label filter on archived label checkbox when checked --> Show archived label in the list. image ### Issue page with label filter on issue action menu on archived label checkbox when checked --> Show archived label in the list. image ### Applied the archived=true in Issue labels when archived checkbox is checked. image --- Part of https://github.com/go-gitea/gitea/issues/25237 --------- Signed-off-by: puni9869 Co-authored-by: delvh Co-authored-by: Giteabot --- web_src/css/repo/issue-list.css | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web_src/css/repo') diff --git a/web_src/css/repo/issue-list.css b/web_src/css/repo/issue-list.css index 17ae6ea38f..d2f8e429f5 100644 --- a/web_src/css/repo/issue-list.css +++ b/web_src/css/repo/issue-list.css @@ -80,3 +80,11 @@ #issue-list .flex-item-body .checklist progress::-moz-progress-bar { background-color: var(--color-secondary-dark-4); } + +.archived-label-filter { + margin-left: 10px; + font-size: 12px; + display: flex !important; + margin-bottom: 8px; + min-width: fit-content; +} -- cgit v1.2.3