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.
Hester Gong
6eb678374b
Refactor authors dropdown (send get request from frontend to avoid long wait time) ( #23890 )
...
Right now the authors search dropdown might take a long time to load if
amount of authors is huge.
Example: (In the video below, there are about 10000 authors, and it
takes about 10 seconds to open the author dropdown)
https://user-images.githubusercontent.com/17645053/229422229-98aa9656-3439-4f8c-9f4e-83bd8e2a2557.mov
Possible improvements can be made, which will take 2 steps (Thanks to
@wolfogre for advice):
Step 1:
Backend: Add a new api, which returns a limit of 30 posters with matched
prefix.
Frontend: Change the search behavior from frontend search(fomantic
search) to backend search(when input is changed, send a request to get
authors matching the current search prefix)
Step 2:
Backend: Optimize the api in step 1 using indexer to support fuzzy
search.
This PR is implements the first step. The main changes:
1. Added api: `GET /{type:issues|pulls}/posters` , which return a limit
of 30 users with matched prefix (prefix sent as query). If
`DEFAULT_SHOW_FULL_NAME` in `custom/conf/app.ini` is set to true, will
also include fullnames fuzzy search.
2. Added a tooltip saying "Shows a maximum of 30 users" to the author
search dropdown
3. Change the search behavior from frontend search to backend search
After:
https://user-images.githubusercontent.com/17645053/229430960-f88fafd8-fd5d-4f84-9df2-2677539d5d08.mov
Fixes: https://github.com/go-gitea/gitea/issues/22586
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2 years ago
..
admin
Convert `<div class="button">` to `<button class="button">` ( #23337 )
2 years ago
comp
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
captcha.js
Add new captcha: cloudflare turnstile ( #22369 )
2 years ago
citation.js
Fix switched citation format ( #23250 )
2 years ago
clipboard.js
Use clippie module to copy to clipboard ( #23801 )
2 years ago
codeeditor.js
Allow new file and edit file preview if it has editable extension ( #23624 )
2 years ago
colorpicker.js
JS refactors ( #22227 )
2 years ago
common-global.js
Fix dropdown direction behavior ( #23806 )
2 years ago
common-organization.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
contextpopup.js
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
copycontent.js
Use clippie module to copy to clipboard ( #23801 )
2 years 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
formatting.js
Introduce GiteaLocaleNumber custom element to handle number localization on pages. ( #23861 )
2 years ago
heatmap.js
JS refactors ( #22227 )
2 years ago
imagediff.js
Fix various ImageDiff/SVG bugs ( #23312 )
2 years ago
install.js
Fix various bugs for "install" page ( #23194 )
2 years ago
notification.js
Move helpers to be prefixed with `gt-` ( #22879 )
2 years ago
org-team.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
pull-view-file.js
Replace unstyled meter with progress ( #19968 )
3 years ago
repo-branch.js
Add apply-patch, basic revert and cherry-pick functionality ( #17902 )
3 years ago
repo-code.js
Use clippie module to copy to clipboard ( #23801 )
2 years ago
repo-code.test.js
Ignore line anchor links with leading zeroes ( #21728 )
2 years ago
repo-commit.js
Fix hidden commit status on multiple checks ( #22889 )
2 years ago
repo-common.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
repo-diff-filetree.js
JS refactors ( #22227 )
2 years ago
repo-diff.js
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
repo-editor.js
Editor preview support for external renderers ( #23333 )
2 years ago
repo-findfile.js
Refactor branch/tag selector to Vue SFC ( #23421 )
2 years ago
repo-findfile.test.js
Refactor branch/tag selector to Vue SFC ( #23421 )
2 years 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
Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form ( #23626 )
2 years ago
repo-issue-content.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
repo-issue-list.js
Refactor authors dropdown (send get request from frontend to avoid long wait time) ( #23890 )
2 years ago
repo-issue-pr-form.js
JS refactors ( #22227 )
2 years ago
repo-issue.js
Refactor authors dropdown (send get request from frontend to avoid long wait time) ( #23890 )
2 years ago
repo-legacy.js
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
repo-migrate.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
repo-migration.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
repo-projects.js
Sync the class change of Edit Column Button to JS code ( #23400 )
2 years ago
repo-release.js
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
repo-settings.js
Remove customized (unmaintained) dropdown, improve aria a11y for dropdown ( #19861 )
3 years ago
repo-template.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
repo-unicode-escape.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
repo-wiki.js
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
serviceworker.js
JS refactors ( #22227 )
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
Introduce GitHub markdown editor, keep EasyMDE as fallback ( #23876 )
2 years ago
user-auth-webauthn.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
2 years ago
user-auth.js
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none ( #22950 )
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