alistair3149
b15a92c2ff
fix: do not collapse space in highlighted search title
...
Closes #494
2022-08-01 01:45:32 -04:00
alistair3149
9fe063acb9
feat(core): use URL-safe key for search suggestions
...
Use `title` in Action API and `key` in REST API to generate result link
Related: Miraheze T9428
2022-06-21 16:20:43 -04:00
alistair3149
9d8a631f44
fix(core): delay blur event for search suggestions
...
This is a hacky way to fix fix #404 and #410 . By introducing a delay to
the function to dismiss the suggestions, users on Safari should be able
to click the link properly.
2022-06-03 22:35:45 -04:00
alistair3149
726a348369
feat(core): hide redirect message in search results when not needed
...
If either the title or redirect title is a substring of the other,
hide the redirect.
Related: T303013
2022-05-20 19:48:07 -04:00
alistair3149
a5c52e48b7
feat(core): indicate when search results are from redirects
...
For REST API, search results will now indicate if they are from redirects.
The current implementation is that it will always show up, the logic to
trim redundant info will come later
Related: T303013
2022-05-20 19:10:36 -04:00
alistair3149
23795e05e3
chore(ci): disable mediawiki/class-doc
2022-05-13 00:20:05 -04:00
alistair3149
5ff7b4cf90
fix(core): invisible search suggestion item
2022-05-12 22:43:05 -04:00
alistair3149
86150d492d
refactor(core): clean up checkboxHack implementation
...
Mostly based on Vector 2022. Now we target checkbox hacks by the HTML classes
.mw-checkbox-hack-TYPE instead of defining each individually, which would
make it more scalable.
2022-05-12 22:37:28 -04:00
alistair3149
478a8396af
refactor(core): merge card content fade animation into mixin
2022-05-11 22:06:33 -04:00
alistair3149
7ff415db13
feat(core): use relative unit for search suggestion
2022-05-10 22:05:42 -04:00
alistair3149
6e35212007
refactor(core): clean up search box implementation
...
* Clean up DOM structure
* Clean up HTML classes
* Use relative units
* Remove unnessecary CSS
2022-05-10 10:52:36 -04:00
alistair3149
a3d85bb8a5
fix(core): fix overflow in search suggestions
2022-05-02 21:36:59 -04:00
alistair3149
ca59b097ba
refactor(core): merge duplicating mixins together
2022-05-01 22:53:41 -04:00
alistair3149
2c9a5f45ec
refactor(core): merge menu content show transition into mixin
2022-05-01 22:11:31 -04:00
alistair3149
60d57dea85
feat(core): switch searchbox transitions to scale
2022-05-01 21:35:33 -04:00
alistair3149
c23a1d7838
feat: unify modal styles
...
All modals should follow the same styles
2022-04-28 15:18:41 -04:00
github-actions
df7abc4010
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-12-16 03:20:34 +00:00
alistair3149
59ca621c80
feat: use neutral background for search suggestion thumbnails
2021-08-31 13:13:49 -04:00
alistair3149
e203bbeaab
fix: tweak weird gap between search box and suggestion
2021-07-25 20:21:12 -04:00
alistair3149
7dc0d14c70
feat: simplify background color variables in core styles
...
--background-color-dp-XX is soft depreciated, please use --color-surface-X instead
2021-07-25 19:16:05 -04:00
alistair3149
5f168f03ee
feat: add page load progress bar
2021-06-12 09:54:47 -04:00
alistair3149
62f161f633
fix: incorrect variable name
2021-05-27 11:20:12 -04:00
alistair3149
5c6408d766
feat: convert border radius to CSS variable
2021-05-27 11:20:12 -04:00
alistair3149
257abc84d0
feat: refresh the typeahead when blur
2021-05-18 13:26:00 -04:00
alistair3149
5e1d51d8a1
fix: unable to click link in typeahead
2021-05-18 13:14:51 -04:00
github-actions
ea428465b8
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-18 16:35:05 +00:00
alistair3149
48deb87709
fix: add null check when accessing undefined keys
...
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-05-18 12:34:08 -04:00
alistair3149
5c57415a86
refactor: add polyfill for replaceChildren
...
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-05-18 12:25:34 -04:00
alistair3149
2564ba1268
refactor: replace onBlur event with click listener
2021-05-18 12:23:05 -04:00
alistair3149
edf6aa1834
fix: search suggestion height overflow
2021-05-17 17:58:48 -04:00
github-actions
9d792fc5b0
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-05-17 21:55:52 +00:00
alistair3149
3607a3dbcc
feat: tweak search suggestion styles
2021-05-17 17:55:00 -04:00
alistair3149
b2bd79196d
feat: rework search module ( #386 )
...
* feat: rewrite search module (WIP)
There are some caveats because it is a WIP
- Messages are not i18n yet
- Missing placeholder suggestion thumbnail
- Only REST mode works
- Missing greeting message when there is no search query
- Code might look like a mess (I learned JS not long ago)
* refactor: remove old search module
* feat: clean up search suggestion styles
* feat: hide overflow for suggestion text
* feat: add action API and various cleanup
* feat: re-add abort controller
* feat: add message support and tweaks
* feat: use virtual config instead of ResourceLoader hook
* fix: missing comma in const definition
* feat: add ARIA attributes
2021-05-17 16:34:14 -04:00