Commit graph

189 commits

Author SHA1 Message Date
Translation updater bot 8c31a9dcf7 Localisation updates from https://translatewiki.net.
Change-Id: I66dc5a23063b614523d71c449eb00882e7e47426
2016-02-02 21:32:25 +01:00
Translation updater bot 52100c5063 Localisation updates from https://translatewiki.net.
Change-Id: Ief385b2f639c1aaba98b23564d88085b61cae35b
2016-02-01 21:55:06 +01:00
Translation updater bot a824ee0f91 Localisation updates from https://translatewiki.net.
Change-Id: Ic731cc58ae02b45477ff556d7f395561ce1cb6dd
2016-01-31 21:41:14 +01:00
Translation updater bot 36d9d355a1 Localisation updates from https://translatewiki.net.
Change-Id: I9f8cec5e10f5162c658a66d9ee38f4dd902cdfa0
2016-01-30 22:49:10 +01:00
Translation updater bot 538d8757b7 Localisation updates from https://translatewiki.net.
Change-Id: I2144d30430835c9b1b9ad06ff69bcb1142743930
2016-01-29 22:43:18 +01:00
Translation updater bot 42861faae6 Localisation updates from https://translatewiki.net.
Change-Id: Ic473f67cc294451bf6999543cf0c47dba7d020de
2016-01-28 21:09:48 +01:00
Sam Smith d24e8f01d2 Design review
Changes:
* Reduce the size and increase the spacing of the Related Pages header

Bug: T122030
Change-Id: I26273a1602e2e329b68d23d01c0f75f69b821b92
2016-01-28 19:05:41 +00:00
Translation updater bot ae1872a837 Localisation updates from https://translatewiki.net.
Change-Id: Ie1de1f72abe02c888edc093705a6d381a024c54d
2016-01-27 21:43:52 +01:00
jdlrobson f13cdafbb1 Remove bottom border on related pages heading
Bug: T122030
Change-Id: Id656acadec617f837046816a9b8b2dfbe756b7f0
2016-01-26 16:00:38 -08:00
Baha 01461aba3d Make the master branch default
Change-Id: If745155f8c7b15ff12062f5947226de8b92ca7f5
2016-01-26 13:41:08 -05:00
Sam Smith 1392810c40 Retitle the footer section "Related Pages"
The circle is complete...

Bug: T122030
Change-Id: Iddcaedfcdbfbf4866b4c5ecb3ed13b25c0f248f8
2016-01-22 12:23:08 +00:00
Baha 929c249018 Design tweaks to Cards
* Move after the content in Vector
* Make title uppercase

Bug: T122030
Change-Id: I8f33ff4115a6a5d328ebbb924293cd4944bc0143
2016-01-19 21:09:07 +00:00
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