Commit graph

577 commits

Author SHA1 Message Date
jenkins-bot 309bf6738c Merge "Mark extension as Beta Feature" into dev 2016-01-16 04:40:36 +00:00
Prateek Saxena 8bfb922c1a Mark extension as Beta Feature
Change-Id: I33d2c1cd7c868e98874328216b16627a7c47dbc4
2016-01-15 18:51:19 +05:30
Antoine Musso d8b773f9a4 Rake entry point and rubocop fix up
Introduce the rake test entry point which is invoked by CI.

Add a basic rubocop configuration based on
https://www.mediawiki.org/wiki/Manual:Coding_conventions/Ruby

Fix up a few ruby issues.

Bug: T120715
Change-Id: I3df0a3b13155259ec6cb5010e7aaa3bf9aa7b230
2016-01-06 16:57:22 +01:00
Kunal Mehta 5a26ceec1d build: Updating development dependencies
* jakub-onderka/php-parallel-lint: 0.9 → 0.9.2

Change-Id: I7f46747f4f20187e40a9fc6c4478d2aae13cc2f1
2016-01-05 10:39:59 -08:00
Kunal Mehta 027f2d4bac build: Updating development dependencies
* mediawiki/mediawiki-codesniffer: 0.5.0 → 0.5.1

Change-Id: I05d53a56646b8979d3f779b2d4bc388bfdb794df
2016-01-03 18:51:59 -08:00
Kunal Mehta a191109027 build: Updating development dependencies
* grunt-jsonlint: 1.0.6 → 1.0.7

Change-Id: Id9f788c6927912e826bd4fa491f4218708f1c054
2015-12-29 21:06:31 +00:00
Baha d2599c5211 Do not load related articles on diff comparision pages
Bug: T122076
Change-Id: I1dc00b3bd76053d353dc31137c4c15a10286184e
2015-12-29 07:57:47 +05:00
Baha f19aee12b8 Add Gemfile
mediawiki_selenium 1.4 or greater is need for running browser tests.

Bug: T120715
Change-Id: If5bf9dcc7310896b8d8b218d636952c344a2a105
2015-12-28 15:54:25 +01:00
jenkins-bot 37ecea38f1 Merge "QA: Add extension tags to tests" into dev 2015-12-23 02:46:42 +00:00
jenkins-bot a079805616 Merge "Hygiene: Minor styling improvements" into dev 2015-12-21 03:08:54 +00:00
jdlrobson 302ddedf21 Hygiene: Minor styling improvements
* Using nesting in LESS allows you to easily identify in large stylesheets
what to remove/update when changing a component class/removing it entirely

Change-Id: I9190e16c5db9ba0bd6357f8685268af5e1cb93fe
2015-12-18 17:34:42 +00:00
Paladox 3a92ad0071 Remove composer.lock
Removing composer.lock for reasons it is not needed since the scripts that
are run are just php code sniffing and phplint.

Change-Id: Ie85d737687e504e2f3ad1e4cd6814a571523f9e3
2015-12-17 21:29:59 +00:00
jdlrobson c5408e3624 Release 2.1.0
Bug: T121052
Change-Id: I46c7f99b1a54eabf4f8304727f6ea7684f038e14
2015-12-14 09:40:11 -08:00
Baha a3d9b22a66 Fix loading related articles on small screens
Related articles are loaded when the user scrolls past
half the document height, which used to be calculated on
page load. This height, however, changes after all sections
are collapsed on small screens, thus never loading the
related articles for the page. Calculating the document height
just before showing related articles allows us to correctly
decide whether it's time to load the needed modules.

Bug: T121263
Change-Id: I1266894ab763cfb571b14f067086445fb6be1887
2015-12-14 15:34:17 +05:00
jdlrobson ed338bbed5 Disable RelatedArticles when editor enabled
We only want to show it in view mode.
When a reader hits edit, wgAction is view so we add a CSS rule to
hide the widget when that transition occurs.

This means related widget does not show up post edit (you'll need to
refresh but this seems like an acceptable workaround until we can
understand this issue some more)

Bug: T120443
Bug: T120735
Change-Id: If1356906d5f55167c9d1abbed88f433f36b7f390
2015-12-09 16:47:52 -08:00
jenkins-bot 4af4c384dc Merge "RelatedArticles load after half window scroll" into dev 2015-12-08 23:27:24 +00:00
Sumit Asthana 9623c1cc42 RelatedArticles load after half window scroll
Only triggers RelatedArticles module load and query after user has scrolled
through half the document height.

Bug: T116838
Change-Id: If290988fb7cc187cad37dd4a8a2c4f38abed9bb9
2015-12-08 20:51:16 +05:30
Paladox 8a73239abf Update packages
Update grunt-jscs to 2.4.0

Update grunt-jsonlint to 1.0.6

Change-Id: I34b1f23469a35e64345ee42a183dd74679e50b81
2015-12-07 21:00:56 +00:00
jenkins-bot 011566984b Merge "Add browser tests for ReadMore" into dev 2015-12-07 20:28:30 +00:00
jdlrobson 1db93f0d14 QA: Add extension tags to tests
Certain tests only work when certain tests are installed. Tag them

Bug: T120715
Change-Id: I6b4333e5c45c41fc5699bf18f6b3a76556290df6
2015-12-07 20:27:25 +00:00
Baha d843523fcf Breaking: Release version 2.0.0
Bug: T119749
Change-Id: I5e159bbe116771b4efef96baa2e85b2dcf783a6f
2015-12-07 21:00:19 +05:00
Translation updater bot 7442b601ef Merge "Localisation updates from https://translatewiki.net." into dev 2015-12-05 22:18:00 +00:00
Translation updater bot b8a7f34c03 Localisation updates from https://translatewiki.net.
Change-Id: I936bb66294ad8d9e7c02833c92852e7afd871029
2015-12-05 23:13:22 +01:00
Baha 9932fee563 Add browser tests for ReadMore
Change-Id: Ia1f628b4f2e1af7d33dc6779a139c2800be82964
2015-12-04 15:43:45 +05:00
Translation updater bot bff09a4180 Merge "Localisation updates from https://translatewiki.net." into dev 2015-12-03 22:18:48 +00:00
Translation updater bot c5c612864e Localisation updates from https://translatewiki.net.
Change-Id: I5c86672c9215997601cc350810d7777c592d463f
2015-12-03 23:16:32 +01:00
jenkins-bot 21db191b34 Merge "Configure footer and sidebar placements" into dev 2015-12-02 22:42:52 +00:00
jenkins-bot 1ffd313910 Merge "[Hygiene] Reorganise hooks to reflect placements" into dev 2015-12-02 22:42:50 +00:00
Translation updater bot 7e1f5a1e98 Merge "Localisation updates from https://translatewiki.net." into dev 2015-12-02 21:02:06 +00:00
Translation updater bot 8ff5d88576 Localisation updates from https://translatewiki.net.
Change-Id: Ib264fc7c18ec31d9adad711c3790ec3f9ba9a8db
2015-12-02 21:58:53 +01:00
Sam Smith 040314c504 Configure footer and sidebar placements
Changes:
* Rename $wgRelatedArticlesShowReadMore to $wgRelatedArticlesShowInFooter
* Add $wgRelatedArticlesShowInSidebar, which is truthy by default, and
  short circuit the SkinBuildSidebar and SkinTemplateToolboxEnd hook
  handlers if it is falsy

Bug: T119926
Change-Id: Idf04bf3221ba44d7b898160764fbd6ba83561abb
2015-12-02 11:17:54 +00:00
Sam Smith 9157e303d2 [Hygiene] Reorganise hooks to reflect placements
There are two positions where the list of related articles is rendered:
the sidebar, and the the footer. Move the hook handlers related to
rendering the former to RelatedArticles\SidebarHooks and those related
to rendering the latter to RelatedArticles\FooterHooks.

Change-Id: Idde57905d828e63309bfdc360a3a09e64e291304
2015-12-02 11:10:04 +00:00
jenkins-bot 9794dd499b Merge "Correctly show related articles on desktop" into dev 2015-12-02 02:08:08 +00:00
Baha 18990e6631 Correctly show related articles on desktop
When $wgRelatedArticlesShowReadMore was false, while deciding
whether to show related articles on the sidebar,
we used to incorrectly consider whether BetaFeatures was
enabled for the user. BetaFeatures should only be used
for enabling ReadMore and not for showing related articles
on the sidebar.

We also used to show the beta features option for ReadMore
even when the ReadMore feature was disabled. Now we only
show that option if ReadMore is enabled.

Also rename isAbleToShowRelatedPages to isInSidebar to make
the function less confusing.

Bug: T119926
Change-Id: Ia5e44d94bb20660af711772cab7e3a59f98c931f
2015-12-02 06:08:19 +05:00
Translation updater bot d8ccc34997 Merge "Localisation updates from https://translatewiki.net." into dev 2015-12-01 20:38:03 +00:00
Translation updater bot 0c476af23a Localisation updates from https://translatewiki.net.
Change-Id: Ic935d02165a01d2137492f93871946a5a86c209d
2015-12-01 21:35:55 +01:00
jenkins-bot 2cfe468387 Merge "Fix RelatedPagesGateway unit test failures" into dev 2015-12-01 18:43:31 +00:00
Translation updater bot c43bef2096 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-30 20:38:49 +00:00
Translation updater bot 26651286e4 Localisation updates from https://translatewiki.net.
Change-Id: Ib1a6952da8f1f9d64b5571743323f15d1fcde504
2015-11-30 21:36:10 +01:00
Translation updater bot 4094f0c364 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-28 20:51:33 +00:00
Translation updater bot 72516ec68b Localisation updates from https://translatewiki.net.
Change-Id: I06663f0696fc7db15cc04f0e1cf2783b9d20ff1b
2015-11-28 21:47:36 +01:00
Translation updater bot f8938ad89e Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-27 21:49:55 +00:00
Translation updater bot 14f2c69da2 Localisation updates from https://translatewiki.net.
Change-Id: I9bec6fb991688e42ea8f4bbebe740db4a2d697b2
2015-11-27 22:47:23 +01:00
Baha 3e943d79a1 Release version 1.2.0
Bug: T119749
Change-Id: I0038b4400ddc507639a22df7cb85e699cad4a877
2015-11-27 08:32:06 +05:00
Translation updater bot b0126156a5 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-26 21:07:45 +00:00
Translation updater bot fd3cfb10cf Localisation updates from https://translatewiki.net.
Change-Id: Id3a2a90e518661d113306869d597f82b4a6e3b21
2015-11-26 22:03:26 +01:00
jenkins-bot f61ee0ef6c Merge "Make RelatedArticles available as a beta feature" into dev 2015-11-25 20:14:12 +00:00
Baha 95ea0b0ef7 Make RelatedArticles available as a beta feature
Hide the related articles from the sidebar if ReadMore is enabled.
Otherwise leave as is because it's used in WikiVoyage.

Bug: T117444
Change-Id: I3879ae1e53de301b0d3f5f2c066f8e8de7c1c223
2015-11-25 20:43:51 +05:00
Sam Smith fbc696177a Fix RelatedPagesGateway unit test failures
I33936a3 didn't introduce a regression but highlighted an issue with the
fixture in the RelatedPagesGateway unit test: the fixture is in the
legacy JSON format despite the API request URL including
formatversion=2.

Change-Id: Id372d022625d88eea685267ea6b6484cf6b28cbc
2015-11-25 14:34:11 +00:00
Translation updater bot c327ff1859 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-24 22:13:52 +00:00