Commit graph

4045 commits

Author SHA1 Message Date
Steph Toyofuku f614ce6687 Add feature flag for night mode
Adds a config flag, `MinervaNightMode`, and wires it up as a skin option
for enabling/disabling the night mode toggle (sold separately)

Additionally, allow this feature to be enabled via the
`minervanightmode` query param

For now, turning the flag on will result in the class
`skin-nightmode-clientpref-1` being added to the HTML element, but in a
later change this will be updated to switch values based on the
forthcoming client pref

Bug: T355118
Change-Id: I35848ab80ee75d324ceb35d17794e2d3e620cc19
2024-01-31 00:38:51 +00:00
Translation updater bot d44897d631 Localisation updates from https://translatewiki.net.
Change-Id: Ic31fb2fd0fdc85b926b6a9ce5247361cdd39b836
2024-01-30 09:41:28 +01:00
jenkins-bot 411e0b3244 Merge "Fix styling of tabs on history and diff pages" 2024-01-30 00:49:14 +00:00
jenkins-bot 26513e5c26 Merge "Adopt ADRs (architectural decision records)" 2024-01-30 00:28:12 +00:00
Jon Robson 568ab16285 Fix styling of tabs on history and diff pages
On English Wikipedia, talk tabs are enabled so this went undetected.
The history and diff pages should be loading these styles since they
both have tabs.

Bug: T356117
Change-Id: I380cc4ba9a4f809e4400873241d97de5a5fe6c1f
2024-01-29 23:04:12 +00:00
jenkins-bot 7a25179c59 Merge "Replace page-list with mw-mf-page-list" 2024-01-29 16:48:28 +00:00
Jan Drewniak b0af18ccc6 Adopt ADRs (architectural decision records)
Adds the first ADR to the MinervaNeue skin.
The file is placed in a top-level `/adr` folder since the `/doc` folder
is already used for auto-generated documentation.

Change-Id: I83ad4a1bf8e81caaea9312d4c3efc3bf5ce419be
2024-01-29 10:34:28 -05:00
Translation updater bot 6ae120b2be Localisation updates from https://translatewiki.net.
Change-Id: Ia59932daf3b9237d989285e5d9181413df13410c
2024-01-28 16:11:22 +01:00
Derk-Jan Hartman 33797c9a02 Replace page-list with mw-mf-page-list
This class was renamed in Ia33d199b84c978bf26bbaa1645515ae186bd26be

Bug: T337741
Change-Id: I508d8947b6091c216fab13fa608090b894929dad
2024-01-27 23:38:53 +01:00
Ed Sanders 8ef144f936 build: Update linters
Change-Id: I5aa3ab891890b52057a5fc855315e5b1b2203037
2024-01-24 22:02:12 +00:00
jenkins-bot c01d353e96 Merge "Long usernames should wrap on history page." 2024-01-19 21:53:37 +00:00
Translation updater bot e4b7b3032f Localisation updates from https://translatewiki.net.
Change-Id: I4fbfe696ebedd61ed44d3330e8fa568a77dcf904
2024-01-19 09:21:01 +01:00
Jon Robson f1c1347d56 Long usernames should wrap on history page.
Bug: T355369
Change-Id: I1f3c3b7e494cc655c98d662e4c0d822da502ea6a
2024-01-18 23:06:15 +00:00
Translation updater bot 5c30f055f7 Localisation updates from https://translatewiki.net.
Change-Id: Ie4f68533a09940cb9d4fe34b0a5d9bd2510b44f5
2024-01-18 09:33:07 +01:00
jenkins-bot dfc53408d0 Merge "Do not use mw.loader.require" 2024-01-17 18:57:27 +00:00
Translation updater bot c35d9cf370 Localisation updates from https://translatewiki.net.
Change-Id: Iea244bf9e92bf2358c2599fabf9f8177374970fc
2024-01-17 08:38:55 +01:00
jenkins-bot 7f66cb32e9 Merge "Update checkboxHack target node" 2024-01-16 19:13:21 +00:00
Translation updater bot c9f914a575 Localisation updates from https://translatewiki.net.
Change-Id: I68f4e53e3a0a45ab2447cfac033ab7b9c892f3e4
2024-01-16 08:27:45 +01:00
Translation updater bot 7851227f3e Localisation updates from https://translatewiki.net.
Change-Id: I3ec230c295b44cf2ad760712de72eb3f7580c4fd
2024-01-15 08:27:26 +01:00
Volker E 40912af36d build: Update 'svgo' to latest v3.2.0
The latest update of 'svgo' dependency includes three optimizations on
converting path commands, which
- improves closing paths and how we determine if to use absolute or
  relative commands.
- round arc or convert to lines based on the geometric sagitta
- convert cubic Bézier curves to quadratic Bézier curves where possible
Also unifiying npm command to qua standard notation `minify:svg`.

Bug: T354875
Change-Id: Ibf59b3435b82602c5355b6f1c9b03920ea2e8eab
2024-01-12 17:45:54 +00:00
jenkins-bot 6ab98eb62e Merge "Style thanks confirmable panel on mobile" 2024-01-12 17:04:29 +00:00
Jon Robson 5e4e3bd549 Style thanks confirmable panel on mobile
To test you must be using desktop Minerva
This addresses only the problem described in
T353062#9438627.

Bug: T353062
Change-Id: Ia7053b94aae1b6ab48307769de063d825a47c1db
2024-01-12 16:37:21 +00:00
Jon Robson a62f1e06ff Update checkboxHack target node
CHECKBOX_HACK_TARGET_SELECTOR only applies to the first list
and there are three lists in the menu. Use the parent instead.

Additional changes:
* Transform to ES6 while working on this code.

Bug: T354315
Change-Id: I354e33af872e9a2f93d97793f5f33b735d42e804
2024-01-12 08:00:59 -08:00
jenkins-bot 99f457d3a8 Merge "Remove old styles for unnested tabs" 2024-01-11 21:36:09 +00:00
jenkins-bot c5c8f4bbc9 Merge "Fix text overflow in history page" 2024-01-11 21:03:45 +00:00
Jon Robson 72726eac36 Fix text overflow in history page
This omitted the important overflow and text-overflow
rules that we use in MobileFrontend. The line height also
needs a slight adjustment.

Bug: T354218
Change-Id: I4b8dee3395603933aba2818725b1f8fbbde0a2a6
2024-01-11 19:38:15 +00:00
James D. Forrester 25fca0ed51 .nvmrc: Update now we're using Node 18
Change-Id: I788d29ae5ade7b3f0cbb1246353889abc8e21e08
2024-01-11 10:50:43 -05:00
Translation updater bot 1a0d605795 Localisation updates from https://translatewiki.net.
Change-Id: I714f248c05332c467d4a13ee3723999919931641
2024-01-11 10:11:59 +01:00
Translation updater bot b690d47291 Localisation updates from https://translatewiki.net.
Change-Id: I0203b79d17020424c170b151a1c08935f5aaaf0a
2024-01-10 08:34:42 +01:00
Steph Toyofuku 9c8896ae5c Remove old styles for unnested tabs
Once the cache has cleared out and all tab links are nested in li
elements (983960), follow up on the fixmes introduced and update the
stylesheet to reflect the single way we will be styling `minerva__tab`s
going forward.  This should not be merged until after the break to
ensure the cache has had time to clear

No visual changes on this one as it _should_ effectively be a noop

Bug: T340728
Change-Id: I36be5ab3cacfb5e0c0f056264055509d2ee22271
2024-01-09 22:55:42 +00:00
Translation updater bot b1243dae8e Localisation updates from https://translatewiki.net.
Change-Id: I193601fdf93619192d6228dd7633e29e09787ee8
2024-01-09 09:02:58 +01:00
Translation updater bot 25587b00f2 Localisation updates from https://translatewiki.net.
Change-Id: Ifa2c547cc10e5c5fbf709f6fa030c8123f4b32fe
2024-01-08 11:34:08 +01:00
Umherirrender 1ad05f4a2e Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I1eec0823b7af97ea5031ff00b111e0c88b45a155
2024-01-06 16:31:38 +01:00
Translation updater bot fd36ece4a3 Localisation updates from https://translatewiki.net.
Change-Id: Ib422cc6045ecf0266c3ca37f23a41c590b694e78
2024-01-05 09:16:27 +01:00
jenkins-bot 2c135d093e Merge "Add tests for getTabsData and dependencies" 2024-01-04 23:30:01 +00:00
Jon Robson d5e6a0b4ce Do not use mw.loader.require
That method is marked as private. Instead using require (the
ResourceLoader require)

Bug: T235198
Change-Id: I6e4e5c76717808e416dc703639c15d0de1070a09
2024-01-03 10:53:48 -08:00
Translation updater bot d8046497eb Localisation updates from https://translatewiki.net.
Change-Id: I822c9172ce4c71e81e1aaae7545d77e4697183b9
2024-01-03 08:36:33 +01:00
Steph Toyofuku a0837cd3f5 Add tests for getTabsData and dependencies
I recently put up a change and was informed by jenkins-bot that I had
decreased PHP test coverage :/

As I would like to be the type of person that only  increases  test
coverage, I wrote the corresponding tests for my change, as well as the
member functions it depends on.  From what I can tell, this is the
correct method of writing unit tests, but please do let me know if there
is anything I'm missing!

Change-Id: Id5c4f76ae058d2b0d487245c28b9ccecc2deef8e
2024-01-02 15:15:29 -08:00
Translation updater bot 5c5255af9a Localisation updates from https://translatewiki.net.
Change-Id: I3af137f15fe5c3b76a8db473ce5cf386ad41b065
2024-01-02 10:19:52 +01:00
Translation updater bot 08bd800c52 Localisation updates from https://translatewiki.net.
Change-Id: Ib24c8e3223625bed14139614ddf23b941684a646
2023-12-28 14:52:15 +01:00
Translation updater bot 6ed1489588 Localisation updates from https://translatewiki.net.
Change-Id: I7a9b4d1bd57a07c3aaa6fbc273609252803eaa96
2023-12-26 14:45:36 +01:00
Translation updater bot 625d225325 Localisation updates from https://translatewiki.net.
Change-Id: Ie8d7e893a44337c7083aa124cd3651b2270183a3
2023-12-22 17:49:25 +01:00
Steph Toyofuku 2b41416c0d Allow addPortletLink to target tabs/associated pages
Currently `mw.util.addPortletLink` cannot properly add a portlet link to
the associated pages tabs, as there is no `p-associated-pages` id on
mobile.  This change pulls the id from the page data, and adds the
necessary class for the tab to be styled correctly - since tabs do not
have corresponding icons while most portlet links do, we also branch on
this class (effectively on whether we are in the tab container) to
ensure an icon is not inserted

Finally, I added a few comments and spacing in the sections of code that
I touched to make them more readable and resolve some of the linter
warnings, but happy to hear if these are not helpful!

Bug: T340728
Change-Id: I33fc12611a6238552a3eb47f6ca37f087903a92a
2023-12-21 16:37:28 -08:00
Translation updater bot c2a8c42ddf Localisation updates from https://translatewiki.net.
Change-Id: I5f9c5c4e85e355bcd4ba474b5149a5edc7b88015
2023-12-21 19:47:49 +01:00
jenkins-bot 6b3393eb2f Merge "Rework tabs to use unordered list" 2023-12-20 22:06:00 +00:00
jenkins-bot 459d04d121 Merge "History: Make sure entire history row is clickable" 2023-12-20 19:13:06 +00:00
Jon Robson 67403c89b6 Switch to non-compact mode on tablet breakpoint instead of desktop
Bug: T353478
Change-Id: I2b6141f949c663f3d3d720f087d0d0a0936f89f3
2023-12-20 18:42:31 +00:00
Jon Robson 8d305924c9 History: Make sure entire history row is clickable
Bug: T353485
Change-Id: Ie10088636e727c2d5b263426073a02a8f978b692
2023-12-20 18:26:12 +00:00
Translation updater bot d616c5fb0e Localisation updates from https://translatewiki.net.
Change-Id: I7d083ad5cef6eb087863c119f90e3ed097880d26
2023-12-20 14:07:08 +01:00
Steph Toyofuku 88caf181e5 Rework tabs to use unordered list
As part of my work on fixing addPortletLink for tabs on mobile (T340728)
we need these tabs to be correctly designated as an unordered list (note,
this is also how they are rendered in Vector).  In addition, update the
styles to account for the link being nested in a list item now

There should be no visual change as a result of this, but if there is
please let me know!!  I will be testing locally in pixel after pushing
to ensure the change is transparent

Bug: T340728
Change-Id: I922558a59aa909ce76079bab057811d76467f644
2023-12-19 15:28:11 -08:00