Commit graph

2360 commits

Author SHA1 Message Date
jdlrobson a220e553eb Fixes transition from input focus state to WVUI focus state
VueEnhancedSearchBox tries to mimic the styles of WVUI to get a
seamless transition however doesn't account for the focus state that
shows briefly while this occurs.

This was leading to the icon jumping as it transitioned.

Bug: T279015
Change-Id: I10a4ec5d64bb58e2f21506c8a09a1bb6c34ecd65
2021-06-29 14:39:10 -07:00
Translation updater bot 4ba15fc73f Localisation updates from https://translatewiki.net.
Change-Id: I44f778770a21d3ff8357aac22143ca3498dd664e
2021-06-28 09:25:07 +02:00
jdlrobson 62d0cf8d92 Dropdown toggles trigger click tracking instrumentation
Bug: T284542
Change-Id: Ib019c616bc53ebab50ed9eeef05b6d9712958f38
2021-06-24 23:08:19 +00:00
jenkins-bot b8545c4b5e Merge "Remove whitespace from page title template" 2021-06-24 22:16:07 +00:00
jenkins-bot 170a4eb9fa Merge "Update search loading animation delay to 500ms" 2021-06-24 17:49:13 +00:00
bwang 0c8154f1bd Update search loading animation delay to 500ms
Bug: T273093
Change-Id: I517bb80a9557c85607ae3588bb44dc83cbeb1dc0
2021-06-24 17:18:16 +00:00
bwang 9dc295945c Remove whitespace from page title template
Bug: T282318
Change-Id: Idd36ad20545e04706bbc9bfa034c65fc0d6bba16
2021-06-24 16:47:31 +00:00
Nicholas Ray b82ecc2173 Remove SkinVector::ICON_USER_LINK_MAP usage
Per T284594, we are now setting the icon key/value when the relevant
menu item is created (e.g see I95f2a0a01134f2c3dfc22083be66c99de26b530f
) to allow for easier reuse of icons across skins.

Additionally:

* Refactor SkinVector to pull the appropriate login/logout icon from
core instead of setting this in Vector

Bug: T284594
Depends-On: I95f2a0a01134f2c3dfc22083be66c99de26b530f
Depends-On: I6292de50c3940f39b0084a2af4f79af78583720f
Change-Id: I02163645937de4b8a2c4375f29851c29462a582d
2021-06-23 18:33:17 +00:00
Translation updater bot 02de393331 Localisation updates from https://translatewiki.net.
Change-Id: I3b20c80a5e5bc49fcef47d6b1d9c0cb9aeb6970b
2021-06-23 08:12:53 +02:00
jenkins-bot bea07a11c6 Merge "Partial Revert "Update tests for default Menu template value"" 2021-06-22 21:30:24 +00:00
bwang d8351bc0ae Update user links storybook
- Remove logged in links from logged out user links storybook
- Add icons to all user links

Bug: T284584
Change-Id: I7fbe22b257d1a6e08c27315d69b0ae1233868aed
2021-06-22 18:52:26 +00:00
jenkins-bot f6d116ff98 Merge "Add icon prefix to login link" 2021-06-22 17:06:10 +00:00
Clare Ming d9f4c51b4e Add icon prefix to login link
Add classes to prefix login link with login icon.

Bug: T276562
Change-Id: I2b188a25986a717436af223a469b05c95e5b2d88
2021-06-22 09:18:06 -06:00
bwang 84737bc9c7 Remove reference to BaseTemplateAfterPortlet
Bug: T280608
Change-Id: I87ebd765defd7c71f2463257d8bae14107988220
2021-06-22 15:02:01 +00:00
Translation updater bot 5029ce11e4 Localisation updates from https://translatewiki.net.
Change-Id: I689d4e589d662e41e166f8846308b25da3886760
2021-06-22 08:11:24 +02:00
bwang 7909cf1eb6 Update user links storybook
- Fixes logged in and logged out links in the user links storybook
- Fixes type def warnings by importing defs
- Update the user page styles in storybook

Bug: T284584
Change-Id: I8e56df16617f71be89ac8d3094497cdb0daa64ef
2021-06-21 21:34:35 +00:00
jenkins-bot b4e1929d84 Merge "VectorUseWvuiSearch should reflect production config" 2021-06-21 20:54:38 +00:00
jdlrobson 7d32418513 VectorUseWvuiSearch should reflect production config
At this point most wikis enable this config flag. Explicit overrides
exist for wikis where it is not available (commons and wikidata).

The config on master should always reflect production config so
it's time to change the default.

Change-Id: I8835e070d2636f600f733645119b0f8497eda3e8
2021-06-21 13:26:55 -07:00
Jdlrobson 604e24f6be Partial Revert "Update tests for default Menu template value"
This partially reverts commit 0fc7be61c1.

Reason for revert: was temporary change

Change-Id: Iad87da825e44a7d3a64b85dc314d8eb27d95b7a6
2021-06-21 20:20:34 +00:00
jenkins-bot 45598d0ec3 Merge "Update user menu icon and storybook" 2021-06-21 14:42:26 +00:00
jenkins-bot 30eb4196b9 Merge "Skin: Convert number of languages to interface language" 2021-06-21 14:22:40 +00:00
bwang 8389de9cb9 Update user menu icon and storybook
Bug: T284748
Change-Id: Icdbfd882490b380871befd3c6606c4b48d225132
2021-06-18 20:30:55 +00:00
Sam Smith 78929d58da Skin: Convert number of languages to interface language
Bug: T283955
Change-Id: Ic601cf94907bdec329021a48101da13a979af106
2021-06-18 17:18:52 +00:00
Translation updater bot 9f925d23fd Localisation updates from https://translatewiki.net.
Change-Id: Ibe8a279b6aebafeefe0a8dd6ca800a6d344823b4
2021-06-18 08:21:58 +02:00
Translation updater bot 4e952558f4 Localisation updates from https://translatewiki.net.
Change-Id: I6e7b6e1ce644d8b0f4ff3b2778291df9731b10d3
2021-06-17 08:21:32 +02:00
bwang 22e343eecb Ensure login button is only rendered for anon users
Bug: T276561
Change-Id: I0f4fa94b4caacc45b299d7518523aa906ff65849
2021-06-16 14:01:06 -05:00
jenkins-bot c7ad20524c Merge "Update tests for default Menu template value" 2021-06-16 00:10:12 +00:00
bwang 0fc7be61c1 Update tests for default Menu template value
Change-Id: I32586a379cbacaad5cfb361facf79c01e982818a
2021-06-15 17:02:53 -05:00
Translation updater bot 148380af9f Localisation updates from https://translatewiki.net.
Change-Id: I26ec7cf36d95c7a200004c6ac37d0336e9e4355c
2021-06-15 08:34:24 +02:00
jenkins-bot b54b85753b Merge "Move "logout" button to bottom of user links menu in modern Vector" 2021-06-14 23:02:46 +00:00
Jan Drewniak c26ae0f965 Move "logout" button to bottom of user links menu in modern Vector
For modern Vector, removes the logout link in the user menu and places it
below that menu by appending it to the html-after-portal property of the
skin data.

Also modifies the `.vector-user-menu-login` style to accommodate both the
login and logout button.

bug: T281791
Depends-On: If82a736e37174aaadd0ff07019a1fae3759a9e51
Change-Id: I7675230e09a50eaeab448182329f850ad2689514
2021-06-14 23:40:19 +02:00
jdlrobson 0b024a4a4d Allow disabling of the new compact languages button
Depends-On: I726c61d4c6895a28b999781752535e0ddc961744
Bug: T282149
Change-Id: I436554d9d51470d277d59c2c71e08124735e12fd
2021-06-14 15:49:43 +00:00
Translation updater bot 99a201d5b9 Localisation updates from https://translatewiki.net.
Change-Id: I3ed6c2b71f03cdbc60805deb40ff7b1ad1ab2dca
2021-06-14 08:41:22 +02:00
jenkins-bot 20d127a8df Merge "Remove UserMenu and use Menu template instead" 2021-06-11 16:03:57 +00:00
bwang 34344adbf5 Remove UserMenu and use Menu template instead
- Adds html-before-portlet to Menu.mustache
- Removes UserMenu.mustache and type def
- Factors out getCreateAccountHTML and getLoginHTML for generating HTML used in Menu
- Scopes UserLink template data under "data-vector-user-links"

Follow up to: 298f945983
Bug: T284584
Change-Id: I91104eb7c4fd12756e770561666f4c9a64da57d6
2021-06-11 09:41:58 -05:00
Translation updater bot 210a305d35 Localisation updates from https://translatewiki.net.
Change-Id: Id18358ca02c7eb36760ca7d36ad08879c47c4ed9
2021-06-11 08:35:52 +02:00
Clare Ming 9ec5d6ded0 Hide language links on print version
Add selector to hide language links for print version of pages.

Bug: T282304
Change-Id: I6b17676e7491863e684c1704d0a849f0ba3827f5
2021-06-10 16:35:28 -06:00
Translation updater bot ad95c880a1 Localisation updates from https://translatewiki.net.
Change-Id: I4fd31f6faa700d98143f135bdb898a534a5403e6
2021-06-10 08:36:06 +02:00
jenkins-bot 320b7708f4 Merge "Prefix user links menu items with icons" 2021-06-08 14:35:57 +00:00
Translation updater bot 0b65f84d40 Localisation updates from https://translatewiki.net.
Change-Id: I246252f7ebba77b14a30e32d1595fa6fa50e1ae1
2021-06-08 08:37:33 +02:00
Clare Ming b80d97b1e8 Prefix user links menu items with icons
- Add logic in Vector hooks to prefix user menu links with icons.
- Add method for getting icon name based on user menu key.
- Add constant to map user menu keys to associated icon references.
- Include icon treatment for both logged in/out users.

Bug: T276562
Change-Id: Ia69366eb4fbd50b48fe5513ef99048bdc5df64fb
2021-06-07 18:10:54 -06:00
Translation updater bot dbfcfdfac0 Localisation updates from https://translatewiki.net.
Change-Id: Ib19e284bd24ceca84dae9a9b23261c63628ff4ec
2021-06-07 08:45:28 +02:00
jenkins-bot 6f2c6f7776 Merge "Storybook: Add stories for logged in and logged out UserLinks" 2021-06-05 02:28:05 +00:00
jenkins-bot fcb1bf7a19 Merge "Update styles for user-interface-preferences in user links menu." 2021-06-05 02:26:39 +00:00
Clare Ming 06d0afbcb3 Update styles for user-interface-preferences in user links menu.
- Add new menu to UserLinks template.
- Fix styles for user links toolbar.

Bug: T282196
Change-Id: I42d6e6e11d76b2d25b2720a617f2fb2e545eb4b6
2021-06-05 02:01:17 +00:00
James D. Forrester 5c50fa8fd2 .nvmrc: Update to Node 12.21.0 as CI has migrated
Bug: T284345
Change-Id: Idd32bce55a3f8b0e0f2191738e89311539eb3d98
2021-06-04 14:45:10 -07:00
Translation updater bot 571764fdc6 Localisation updates from https://translatewiki.net.
Change-Id: Ib1cd3cecf279c9a3b208cda88058f9d83b696b0b
2021-06-04 08:39:36 +02:00
bwang b4c0e8e67d Storybook: Add stories for logged in and logged out UserLinks
- Update menu helper params to support additional data
- Add UserLinks typing

Follow up to: 298f945983
Change-Id: I0f9d1ac3289101566f437213714b872f6fa9199b
2021-06-03 21:42:28 +00:00
jenkins-bot 8021270bce Merge "Update UserLinks styles to use classes instead of ids" 2021-06-02 22:38:04 +00:00
bwang b5aa055900 Update UserLinks styles to use classes instead of ids
Follow up to: 298f945983

Change-Id: I5bc28501d0ae4c2597796dbf1ed9c10eacadad62
2021-06-02 22:16:59 +00:00