Commit Graph

454 Commits

Author SHA1 Message Date
Translation updater bot 04998facb8 Localisation updates from https://translatewiki.net.
Change-Id: I046648d02ea0d88c785b6e44b3059945357c50c3
2019-08-15 08:33:36 +02:00
Translation updater bot 28979a02f8 Localisation updates from https://translatewiki.net.
Change-Id: I9e3c07f94d088ad27518010549d7ab1b5068ef9d
2019-08-14 08:34:43 +02:00
Translation updater bot 92672a4d96 Localisation updates from https://translatewiki.net.
Change-Id: I6a3c39fe1211520ff16fb7637bd10f342c7b2a61
2019-08-13 08:35:22 +02:00
Translation updater bot 45da253b9b Localisation updates from https://translatewiki.net.
Change-Id: Id5230f763d68ec402fa8e51c58597462329b1100
2019-08-12 08:27:16 +02:00
Translation updater bot a6ed7d8968 Localisation updates from https://translatewiki.net.
Change-Id: I5fe502e529f965b8524dae2b05497d81203934aa
2019-08-10 22:05:11 +02:00
Translation updater bot f362a1bac0 Localisation updates from https://translatewiki.net.
Change-Id: Ib308aab3b3d3df3144b7828de8d5fc582f5d4b48
2019-08-07 08:44:33 +02:00
Translation updater bot 19b95d7e6f Localisation updates from https://translatewiki.net.
Change-Id: Idab080fe6a83f19863d4d1dbc0b0c6032f415a86
2019-08-05 08:32:00 +02:00
Translation updater bot 89d60596db Localisation updates from https://translatewiki.net.
Change-Id: I71560a9d5a294bc87c5a5a733b07555c722db875
2019-07-31 22:12:04 +02:00
Piotr Miazga 7b5e210ed8 Show warning when user tries to use enhanced RecentChanges view
Bug: T228516
Change-Id: I16e3d69b410f20a3f70f4bb213a279664613f725
2019-07-31 15:32:58 +00:00
Translation updater bot 0c5c84f0ad Localisation updates from https://translatewiki.net.
Change-Id: Ife8e0556b697c6524ba43626f27f4007f0d32ab5
2019-07-30 08:27:41 +02:00
Translation updater bot 725383771e Localisation updates from https://translatewiki.net.
Change-Id: Ie6d4d8ae1b4b58410d584c1104704b6f3582e160
2019-07-29 08:32:20 +02:00
Translation updater bot 6bf480c5a3 Localisation updates from https://translatewiki.net.
Change-Id: Iad66e696b050aa6f19f832f104529d9aeebb019b
2019-07-27 08:49:21 +02:00
Translation updater bot 61cf3b3328 Localisation updates from https://translatewiki.net.
Change-Id: Idb5ccc0369ca2c688bf7216f70929aa7091f22e0
2019-07-25 22:42:19 +02:00
Translation updater bot a2521d7d6a Localisation updates from https://translatewiki.net.
Change-Id: I270b3bd9ae40e31f6f467ba537624ed785b7d50b
2019-07-24 22:05:48 +02:00
Stephen Niedzielski 0a4f5b6126 [UI] [new] add user menu
Add new user menu. The changes required include:

- Break up AuthMenuEntry into reusable components. They're now simple,
  independent, static functions in AuthUtil that are easy to reason
  about and compose.

  There's lots of verbose code because of the builder and director
  patterns. That is, most of the code is for building the thing we
  actually want to build instead of just building it. It's easy to write
  but no fun to read--even simple configurations are extremely verbose
  expressions that must be threaded through the system.

  These builders are also single purpose and unlikely to be reusable
  unlike a URI builder, for example. As objects, they're not especially
  composable either.

- Similarly, break up Menu/DefaultBuilder into BuilderUtil and ban
  inheritance. Inheritance has not worked well on the frontend of
  MobileFrontend. I don't think it's going to work well here. E.g., I
  could have made changes to the base class' getPersonalTools() method
  such that the client passes a parameter for the advanced config or
  maybe I just override it in the subclass. In either case, I think it
  makes the whole hierarchy nuanced and harder to reason about for
  something that should be simple.

- Add ProfileMenuEntry and LogOutMenuEntry for the user menu.

- Rename insertLogInOutMenuItem() to insertAuthMenuItem() which matches
  the entry name, AuthMenuEntry.

- Extension:SandboxLink is needed to display the sandbox link in the
  user menu.

- Performance note: the toolbar is now processed in MinervaTemplate,
  which corresponds to removing the buildPersonalUrls() override.

- To mimic the design of main menu, the following steps would be
  necessary:

  1. Create a user/Default and user/Advanced user menu builder and also
     a user/IBuilder interface.
  2. Create a user/Director.
  3. Create a service entry for Minerva.Menu.UserDirector in
     ServiceWiring. The Director is actually powerless and doesn't get
     to make any decisions--the appropriate builder is passed in from
     ServiceWiring which checks the mode.
  4. Access the service in SkinMinerva to set a userMenuHTML data member
     on the Minerva QuickTemplate.
  5. In MinervaTemplate, access the userMenuHTML QuickTemplate member
     and do the usual song and dance of inflating a Mustache template.

  This patch does everything except add a service, which was agreed to
  be unnecessary, so that logic is now in SkinMinerva.

- Wrap the existing echo user notifications button and new user menu
  button in a nav element. This seems like a semantic improvement.

- The existing styling and logic for the search bar and search overlay
  are pretty messy and delicate. Changes made to that LESS endeavored to
  be surgical. There's lots of room for improvement in the toolbar but
  it's out of scope.

- Rename logout icon to logOut.

Bug: T214540
Change-Id: Ib517864fcf4e4d611e05525a6358ee6662fe4e05
2019-07-24 18:24:07 +00:00
Translation updater bot 2fbe2c5477 Localisation updates from https://translatewiki.net.
Change-Id: Ib0e52bf72f569b253602d0d18ab726f0596b58c7
2019-07-22 22:16:48 +02:00
Translation updater bot 882ca639d4 Localisation updates from https://translatewiki.net.
Change-Id: I56a62b484ce4253d52c5e0b9a7a093d866463723
2019-07-17 22:22:57 +02:00
Piotr Miazga dee1c197b9 On user pages, move language icon from Toolbar to Overflow menu
The Language icon is not useful on user pages as most probably there
are no translated user pages, thus there is no need to show all-time
disabled Language icon.

If overflow menu is available, don't show Language switcher icon in
toolbar, show it as first item in the overflow menu.

Bug: T224735
Follow-Up: I46d58758356e870c408a74b2c087a42d6ad0ddea
Change-Id: I05be9e6457257a1f2eb224ca9ec5808814bc9ed7
2019-07-16 17:51:11 +00:00
Translation updater bot 71d2a8fc6d Localisation updates from https://translatewiki.net.
Change-Id: Icdaaf79cb1cbaa35bec6b006931153118273c76e
2019-07-14 22:20:27 +02:00
Translation updater bot cec9e052b3 Localisation updates from https://translatewiki.net.
Change-Id: I67f664db917a299d679729d07b39c5dda41d7113
2019-07-11 22:10:34 +02:00
Translation updater bot 5cd5785a85 Localisation updates from https://translatewiki.net.
Change-Id: I151633bf3908e792369578f3a6bd3fc0e5c508a6
2019-07-08 22:17:19 +02:00
Translation updater bot 7610467f28 Localisation updates from https://translatewiki.net.
Change-Id: I7e91c8d281cf6ebfccfad584e9fc9f8182fe2610
2019-07-07 22:11:00 +02:00
Translation updater bot 195b9a9fd6 Localisation updates from https://translatewiki.net.
Change-Id: Iefb4fb1e328a5fc0a3488632c3dbf980992d16a2
2019-07-03 22:12:45 +02:00
Translation updater bot 5b92c238b3 Localisation updates from https://translatewiki.net.
Change-Id: I9e523205a86d3dcfa93480f8c195a2f1b8f0a451
2019-07-01 22:02:09 +02:00
Translation updater bot 2a3f2590dd Localisation updates from https://translatewiki.net.
Change-Id: Ib431a2b7786d7d83d36a8b14ecf57544930fce89
2019-06-26 22:01:47 +02:00
Translation updater bot 8d89172bac Localisation updates from https://translatewiki.net.
Change-Id: Ifadc568c590df9f67983668f7f8ed8c7455adf0b
2019-06-23 22:11:21 +02:00
Translation updater bot 4b24daa117 Localisation updates from https://translatewiki.net.
Change-Id: I6343b83298d36d9ae8c240f5fbb5f35c4393dcb5
2019-06-19 23:37:08 +02:00
Translation updater bot fffb5ab379 Localisation updates from https://translatewiki.net.
Change-Id: If6e23b739c2283e79b380104744dd75226d5a732
2019-06-17 22:09:24 +02:00
Translation updater bot 77779ce441 Localisation updates from https://translatewiki.net.
Change-Id: Ic64d6110f83ce3d8a06e1dabf76945e9145951e6
2019-06-16 22:07:40 +02:00
jenkins-bot 3461c9dd93 Merge "Add wikidata link to overflow menu" 2019-06-14 16:54:12 +00:00
Translation updater bot da4c7757cd Localisation updates from https://translatewiki.net.
Change-Id: I048054483859abd622bfc676fb447ac3e53c5261
2019-06-13 22:13:13 +02:00
Nicholas Ray 162f8aa95c Add wikidata link to overflow menu
The director is now passed the array from `BaseTemplate::getToolbox()`
as all of the server rendered links we show in the main namespace/user
namespace overflow menus (including wikibase) will be in the toolbox
array except for the "Uploads" link in the User overflow menu which is
added in the UserNamespaceOverflowBuilder.

Bug: T222630
Change-Id: I280537c6b8b32036d68a5a004571bb5a41c2e703
2019-06-12 19:50:48 -06:00
Translation updater bot 63f4d51f19 Localisation updates from https://translatewiki.net.
Change-Id: I84c95d100a021fc0df687abccb1eaff64fbc839d
2019-06-08 22:12:36 +02:00
Translation updater bot 89fb347e09 Localisation updates from https://translatewiki.net.
Change-Id: Icd66a27cf3a859798b36886905723254326d53d2
2019-06-02 22:00:52 +02:00
Translation updater bot af7c282e79 Localisation updates from https://translatewiki.net.
Change-Id: I70f7f8562de9d7c68e8c40a8727e38edfb10f1e3
2019-05-30 22:25:02 +02:00
Translation updater bot dc729b0a66 Localisation updates from https://translatewiki.net.
Change-Id: I2ac2ab1b33ac61cf350e5e07c796ea43b000b435
2019-05-27 21:58:25 +02:00
Translation updater bot cc92cb47e2 Localisation updates from https://translatewiki.net.
Change-Id: I600b8e36342bbc69f538fe37259fe02f0ee73fb2
2019-05-23 22:42:28 +02:00
Translation updater bot 4a54748cfe Localisation updates from https://translatewiki.net.
Change-Id: Iaa9428aac013c27cd7fa14167abada01590bac03
2019-05-22 22:06:01 +02:00
Translation updater bot 2fc8dd0204 Localisation updates from https://translatewiki.net.
Change-Id: If661b9ee8ddd326eb116e72255ad05a8eec048e3
2019-05-20 21:57:52 +02:00
Translation updater bot 9937a8a72d Localisation updates from https://translatewiki.net.
Change-Id: I26ee2e60d9bcc94bd8e816503fc402814f98ec92
2019-05-16 08:32:09 +02:00
Translation updater bot 1f00a454b2 Localisation updates from https://translatewiki.net.
Change-Id: I8c917a7c48fb9d230570eff8a928b9a121abdb7f
2019-05-15 08:12:17 +02:00
Translation updater bot 863f1a7265 Localisation updates from https://translatewiki.net.
Change-Id: I7ed41c19734c7062473b38e6a84b7746dc396e3c
2019-05-13 22:48:39 +02:00
Translation updater bot cece9ae956 Localisation updates from https://translatewiki.net.
Change-Id: I29a101693b7472515b6bc38d3593b96dc44b983e
2019-05-12 22:01:26 +02:00
Translation updater bot 26474f796d Localisation updates from https://translatewiki.net.
Change-Id: I3ca5955082a5bfcc0bf34ecabff43d8253c34740
2019-05-10 08:35:21 +02:00
Translation updater bot c6cb52a8c3 Localisation updates from https://translatewiki.net.
Change-Id: I94c931de753fc933baf58c216158c4570e0812b2
2019-05-08 22:02:13 +02:00
Translation updater bot 65f5a71d0c Localisation updates from https://translatewiki.net.
Change-Id: Ibd27803e5915f5df70dafb6596477dab31e6f298
2019-05-05 21:58:31 +02:00
Translation updater bot 1f8d45d40d Localisation updates from https://translatewiki.net.
Change-Id: I0547d3eb14142486c12a7c09ea450488578309d5
2019-05-03 22:06:45 +02:00
Translation updater bot eddffd2cfa Localisation updates from https://translatewiki.net.
Change-Id: Iaeda9f9d20c4a61a886317df4d4342ea411baea4
2019-04-30 22:00:09 +02:00
Translation updater bot 2a431c9746 Localisation updates from https://translatewiki.net.
Change-Id: I1f46077fda98bb0f7ffc2ba1881b66bbccb648cb
2019-04-29 21:58:50 +02:00
Translation updater bot 9f0bd0d05c Localisation updates from https://translatewiki.net.
Change-Id: If92d8c10619e4fa60fa9713140cac6e1cbacaf49
2019-04-26 22:03:35 +02:00