Adds a few pieces of information to improve tracking of autocomplete
usage.
* When using Special:Search 'go' feature forward wprov parameter to redirect
* Include a data attribute indicating autocomplete location to
differentiate usage of the header and Special:Search content autocompletes
* Report exact query string that was used for impression-results
* Add handling to allow searchSuggest subscribers to append tracking
information to generated article links
* Add a new hook, SpecialSearchGoResult, that can either change the url
redirected to in the 'go' feature or cancel it entirely.
Bug: T125915
Change-Id: Iec7171fcf301f1659d852afa87ce271f468177c1
Applying default cursor and making active button's hover state behave same
as normal state for improved user experience.
Bug: T77916
Depends-On: Ib89500d70b3e79edcf9ba989f05a311e0edec82b
Change-Id: I8fd74c28ccb89df1e257aa3d63d362697c4542ed
Adding Less parametric helper mixin for screen reader users.
This will help with changes such as
I7db2d7e5387f1a4392d587764598dbd82dd0a5cd
Bug: T119444
Change-Id: Ie9bce512804385578361eb77579106c799d5ff57
SearchInputWidget is similar to a TitleInputWidget, but doesn't has
a visible loading indication, doesn't highlight the first result and
uses the opensearch api endpoint for suggestions, instead of
prefixsearch.
Extra points:
* Improve documentation of mw.widgets.TitleInputWidget's configuration
option validateTitle
Bug: T118443
Change-Id: I8b8098041fe2971389fa908d007d2e77255829ec
As a useful utility function, we've copied this method several times
across multiple extensions, which is a pretty good sign it should
actually live in core.
Changes:
* Add `mediawiki.viewport` module
* Rewrite method to be more robust and accept any viewport
* Add `mw.viewport` to jsduck categories file
* Add method for checking if an element is close to the viewport
* Add unit tests
Bug: T124317
Change-Id: I38eec4f1e568f51e7e212b2b3f10b8da8d36f316
I merged it too early, sorry. Deployment is planned for a week later.
This reverts commit cb8fa5fd17.
Bug: T110555
Change-Id: I369fa6d2b4f6531f7ec475c08cba283d323a0ffb
Manual application of changes from up-stream ahead of v0.16.1 release, which
will miss the -wmf.15 cut, given the severity of the issue for Firefox users
and the simplicity of the change. Fix made by VolkerE in Ieac469d.
Bug: T128074
Change-Id: If43b86e27970ae0fe75a654a63f06cc19bcac865
OO.ui.ButtonWidget doesn't take focus itself, so clicking the "Make
request" button isn't sending the blur event, so stuff like
OO.ui.CapsuleMultiSelectWidget doesn't get to process its input until
too late.
Bug: T128054
Change-Id: I00913123e0019c096890b2829bfea3a77c551b2e
This bug is currently live. Try opening
https://www.wikidata.org/wiki/Special:NewItem
and have a look at the JavaScript console.
Introduced in If07d40a.
This patch is a manual cherry-pick from I748a4bc, which is the same
fix in the original repository. I feel we should backport this to
production.
Bug: T106313
Bug: T128075
Change-Id: I25a5deab2c287e97086726d0acbb3afeee842e0b
* Don't override "private", the default is to require empty
values for the tag
* Move some @private tags after descriptions so the latter
are not mistaken for tag values
* Require some value for @context, @source and @see tags
Change-Id: I583bb2ff3ec6537e1419732aaf1644ea8feb2255
Applying `max-width` to mw-ui-buttons and center-aligning subgroup
when class `mw-ui-block` is available.
Bug: T95367
Change-Id: I4aaf24042f451c3b5489f49098f4b9e7eeef8098
Also implement a way to use mediawiki.searchSuggests without wrapping
a link around the suggestions.
Bug: T117033
Change-Id: I2c7fc71d19cefaa16a6cc4526af05be9cd32366e
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.
This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:
git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
parallel zopflipng -m -y {} {} \;
Files which zopflipng was not able to compress more efficiently were left unmodified.
Bug: T127608
Change-Id: Ia9c70cf35da489985af39df1f8b58469eb4813fd
The format of the JSON response does not change.
But the request is different so the test also have to be updated.
Change-Id: I391a221f81fd92731c331363a8202c21d6b933b5
Aligning mixin whitespace to CSS/Less coding guidelines. Also fix some minor
inconsistencies and add browser support comments.
Change-Id: I50841e6062e59513def49719dc7a04956002de0e
I wasn't reading through them very carefully, so it's possible
that some of the 'oojs-ui-widgets' could be narrowed down further
to just 'oojs-ui-core', but this is good enough for me. At least
we're no longer loading toolbars everywhere.
Change-Id: I58799e22f9c0a2f78c1b4a02c4b7af576157883a
We used to create them like $( '<input type="checkbox" />' ), which
actually does HTML parsing under the hood, because on IE 8 and lower
trying to change the 'type' of an <input> node throws an exception.
But we dropped support for IE 8 recently and no longer need to do that.
Upstream change for OOjs UI is I166f5ab0dce5ab47dc6a1f4e2e5ad012635911ed.
Find: \$\( '<input type="(\w+)" ?/?>' \)
Replace with: $( '<input>' ).attr( 'type', '\1' )
Change-Id: Ie86f8917e8ce100de22006516daa542ad178aab6
Removing superflous `background-size` property, which is overwritten
few lines below and make use of correspondent mixin in `:checked`
state.
Change-Id: I4f24c84c2f93bd85f495ff74ae21fbc210c18f57
The BookletLayout now emits events during the upload file phase. It
uses these events to update a progress bar at the top of infoForm.
Bug: T115861
Change-Id: I0fd7f21f3fc1ef042330b7571c247e09c24d1a5c