You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js/features
Giteabot 28d970e4a6
Hide archived labels when filtering by labels on the issue list (#27115) (#27381)
Backport #27115 by @puni9869

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
<img width="1360" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/d7efb2ef-5b2b-449d-83f0-d430a32ec432">

### Issue page with label filter on archived label checkbox when not
checked --> No archived label is there in list
<img width="1249" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/ceea68ef-91f2-4693-910f-2e25e236bfc9">

### Issue page with label filter on archived label checkbox when checked
--> Show archived label in the list.
<img width="710" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/2414d26b-2079-4c3c-bd9e-f2f5411bcabf">

### Issue page with label filter on issue action menu on archived label
checkbox when checked --> Show archived label in the list.
<img width="409" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/259cac87-3e21-4778-99a2-a6a0b8c81178">


### Applied the archived=true in Issue labels when archived checkbox is
checked.
<img width="984" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/657ce3db-c0ae-402e-b12d-3b580d3c2ed0">

---




Part of https://github.com/go-gitea/gitea/issues/25237

Signed-off-by: puni9869 <punitinani1@hotmail.com>
Co-authored-by: puni9869 <80308335+puni9869@users.noreply.github.com>
Co-authored-by: delvh <dev.lh@web.de>
1 year ago
..
admin Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) 2 years ago
comp Use fetch helpers instead of fetch (#27026) 1 year ago
captcha.js Add new captcha: cloudflare turnstile (#22369) 2 years ago
citation.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 2 years ago
clipboard.js Use clippie module to copy to clipboard (#23801) 2 years ago
codeeditor.js Fix EOL handling in web editor (#27141) (#27234) 1 year ago
colorpicker.js JS refactors (#22227) 2 years ago
common-global.js Use fetch helpers instead of fetch (#27026) 1 year ago
common-issue-list.js Use fetch helpers instead of fetch (#27026) 1 year ago
common-issue-list.test.js Use vitest globals (#27102) (#27311) 1 year ago
common-organization.js Fix Org edit page bugs: renaming detection, maxlength (#24161) 2 years ago
contextpopup.js Fix issue and commit status popup padding (#25254) 2 years ago
copycontent.js Use fetch helpers instead of fetch (#27026) 1 year ago
dropzone.js JS refactors (#22227) 2 years ago
emoji.js JS refactors (#22227) 2 years ago
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers (#20584) 3 years ago
file-fold.js Scroll collapsed file into view (#23702) 2 years ago
heatmap.js Remove fomantic loader module (#26670) 2 years ago
imagediff.js Improve Image Diff UI (#26696) 2 years ago
install.js Use fetch helpers instead of fetch (#27026) 1 year ago
notification.js Fix notification list bugs (#25781) 2 years ago
org-team.js Add status indicator on main home screen for each repo (#24638) 2 years ago
pull-view-file.js Use fetch helpers instead of fetch (#27026) 1 year ago
repo-branch.js Display warning when user try to rename default branch (#24512) 2 years ago
repo-code.js Change form actions to fetch for submit review box (#25219) 2 years ago
repo-code.test.js Use vitest globals (#27102) (#27311) 1 year ago
repo-commit.js Show branches and tags that contain a commit (#25180) 2 years ago
repo-common.js Improve "language stats" UI (#26968) 1 year ago
repo-diff-commit.js Use fetch helpers instead of fetch (#27026) 1 year ago
repo-diff-commitselect.js Add commits dropdown in PR files view and allow commit by commit review (#25528) 2 years ago
repo-diff-filetree.js JS refactors (#22227) 2 years ago
repo-diff.js Remove "TODO" tasks from CSS file (#26835) 2 years ago
repo-editor.js Use unique class for breadcrumb divider (#26524) 2 years ago
repo-findfile.js Refactor branch/tag selector to Vue SFC (#23421) 2 years ago
repo-findfile.test.js Use vitest globals (#27102) (#27311) 1 year ago
repo-graph.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
repo-home.js Fix the topic validation rule and suport dots (#26286) 2 years ago
repo-issue-content.js Improve issue history dialog and make poster can delete their own history (#27323) (#27327) 1 year ago
repo-issue-list.js Hide archived labels when filtering by labels on the issue list (#27115) (#27381) 1 year ago
repo-issue-pr-form.js JS refactors (#22227) 2 years ago
repo-issue.js Remove "TODO" tasks from CSS file (#26835) 2 years ago
repo-legacy.js Improve "language stats" UI (#26968) 1 year ago
repo-migrate.js Use fetch helpers instead of fetch (#27026) 1 year ago
repo-migration.js Use "input" event instead of "keyup" event for migration form (#26602) 2 years ago
repo-projects.js Refactor project templates (#26448) 2 years ago
repo-release.js Update JS dependencies, add new eslint rules (#24597) 2 years ago
repo-settings.js Improve repo/user/org search (#27030) 1 year ago
repo-template.js Add status indicator on main home screen for each repo (#24638) 2 years ago
repo-unicode-escape.js Improve accessibility when (re-)viewing files (#24817) 2 years ago
repo-wiki.js Improve wiki sidebar and TOC (#25460) 2 years ago
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
stopwatch.js Move helpers to be prefixed with `gt-` (#22879) 2 years ago
tablesort.js JS refactors (#22227) 2 years ago
tribute.js Avoiding accessing undefined mentionValues (#26461) 2 years ago
user-auth-webauthn.js Use fetch helpers instead of fetch (#27026) 1 year ago
user-auth.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) 2 years ago
user-settings.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago