Commit graph

388 commits

Author SHA1 Message Date
Ed Sanders 6997f135db Abort pending requests
Ensure all requests are abortable promises, and abort if
a new, conflicting request is made.

Change-Id: Ie05142f6da8cba6dde4f73c1b22960b726af4764
2016-08-15 11:19:15 -07:00
Translation updater bot b90451def8 Localisation updates from https://translatewiki.net.
Change-Id: I97abc3482736ab02e6a16a62cf778368564b8113
2016-08-14 22:29:27 +02:00
Translation updater bot c526065fc8 Localisation updates from https://translatewiki.net.
Change-Id: Ic60d52346ebb7e06f6bd3a349d2cf167d031b768
2016-08-13 22:31:45 +02:00
Translation updater bot c0d5de15bd Localisation updates from https://translatewiki.net.
Change-Id: Ia86bdd5fc1460bccee21aaba79677562337c12a7
2016-08-12 23:14:39 +02:00
addshore 1ab20bf772 Also track the hook run count
This will give us a better idea of how many times the
slider is being sent out in by the php code as oposed
to how many times the JS code is running.

This number is important as client side the code will
listed to things like DoNotTrack and not send data!

The difference between the initphp and init numbers
should give us an idea of how often this is heppening!

Change-Id: I01db4318b08851de4c6b8c96cbf2740324160140
2016-08-12 10:31:18 +01:00
jenkins-bot db8a5b7396 Merge "Convert the few instances of IDs to classes" 2016-08-12 07:43:50 +00:00
Translation updater bot 8045ac1318 Localisation updates from https://translatewiki.net.
Change-Id: Iebfc7b678b7e27a5e969f923987afeedbe518b7c
2016-08-11 23:57:58 +02:00
Leszek Manicki 90d652adef Use moment.js's localized date and time format
Localized format of date containing month name, day, year and time
is used instead of format enforcing the order of time and date,
and use of short month name.

Bug: T141167
Change-Id: I39b2844e777beb986cefb3097d52d481bb038a63
2016-08-11 11:40:30 +00:00
jenkins-bot d2f74b819b Merge "Use natural language when referring to feature (but not extension/project)" 2016-08-11 10:40:59 +00:00
Leszek Manicki 9e4320cd31 Bump up the version in package.json
extension.json already states 1.0.0

Change-Id: I9265b96b932d3ebb88af201f724ee13aaab67e76
2016-08-11 09:31:05 +02:00
Ed Sanders bfcee90aa6 Use natural language when referring to feature (but not extension/project)
Bug: T142651
Change-Id: I9fe75a04208049c4cc7c64bff182abec5fb52349
2016-08-10 15:44:42 -07:00
Ed Sanders f6a44f43fe Convert the few instances of IDs to classes
Makes for more modular code.

Change-Id: Ic71d7421aea548e5b4a9c4841cd4af49a3d385a5
2016-08-10 15:32:12 -07:00
Translation updater bot c1beb0e03a Localisation updates from https://translatewiki.net.
Change-Id: I7f30c3c9cc3fc39175b49c75b8b26c4ba6a7f0ed
2016-08-10 22:39:08 +02:00
Leszek Manicki e243ca2746 Do not load RevisionSlider initially, add a button to show/hide it
Instead of loading RevisionSlider only add a little button
to expand RevisionSlider on top of the diff page.

This makes RevisionSlider only steal a bit of space over the
diff, and only inserts quite a big slider to users that want
to have it visible for the particular diff.

API calls are only made once RevisionSlider has been expanded.

This is re-submit of b0f229d75f
that was reverted in I26427faaa00b38c2aa1377a66224c9062dcca302.

Bug: T141871
Change-Id: I879de5774b2cce7b908e73cbbe869fd48d6afa23
2016-08-10 16:26:54 +02:00
Translation updater bot e779aba4ff Localisation updates from https://translatewiki.net.
Change-Id: I296a2cd7508ea94115edf40ecf02b937cfb6d727
2016-08-09 22:32:31 +02:00
jenkins-bot 4027c5d852 Merge "Revert "Do not load RevisionSlider initially, add button to load it"" 2016-08-09 16:37:55 +00:00
WMDE-Fisch c5690ba763 Revert "Do not load RevisionSlider initially, add button to load it"
This reverts commit b0f229d75f.

Change-Id: I26427faaa00b38c2aa1377a66224c9062dcca302
2016-08-09 16:34:53 +00:00
jenkins-bot 18d6c7df05 Merge "Do not load RevisionSlider initially, add button to load it" 2016-08-09 15:36:30 +00:00
Leszek Manicki 33b32155b9 Add link to extension talk page to the help popup
Bug: T142200
Change-Id: I119894e05f610850d1e4819a145c84653e138117
2016-08-09 15:06:17 +02:00
Leszek Manicki b0f229d75f Do not load RevisionSlider initially, add button to load it
Instead of loading RevisionSlider only add a little button
to expand RevisionSlider on top of the diff page.

This makes RevisionSlider only steal a bit of space over the
diff, and only inserts quite a big slider to users that want
to have it visible for the particular diff.

API calls are only made once RevisionSlider has been expanded.

Bug: T141871
Change-Id: Ib312f6225b85b9ebdf4ac5d16e254a57d5cf6411
2016-08-09 14:54:59 +02:00
jenkins-bot 50e9643364 Merge "Make backward/forward arrows OO.ui.ButtonWidgets" 2016-08-09 08:14:50 +00:00
jenkins-bot 23e470dbc5 Merge "Use OOjs Popup Widgets instead of tipsy" 2016-08-09 08:10:57 +00:00
jenkins-bot fe9a7f39c5 Merge "Make the "show help" button a OOjs ButtonWidget" 2016-08-09 08:08:42 +00:00
Translation updater bot cf3e4e7b78 Localisation updates from https://translatewiki.net.
Change-Id: Iad82add98ef11e2b6cc99ef00c28c8e7132dfde8
2016-08-08 22:35:33 +02:00
Leszek Manicki 796a971118 Make backward/forward arrows OO.ui.ButtonWidgets
Bug: T142206
Change-Id: I25c98e32c74235a2b70ac1d02c221f1898ba9958
2016-08-08 16:17:35 +00:00
Leszek Manicki 77095bfa65 Use OOjs Popup Widgets instead of tipsy
Bug: T141983
Change-Id: I4b4ea427f82b15625537d859623461eceb1eb52b
2016-08-08 18:11:23 +02:00
Leszek Manicki 0af4fe35d5 Make the "show help" button a OOjs ButtonWidget
This also adjusts position of the help icon so it better fits
the available space.

Bug: T139150
Change-Id: Iec7ec31a83a1a847cd68a994ecac12acf960d699
2016-08-08 13:14:31 +00:00
Translation updater bot 120dc61947 Localisation updates from https://translatewiki.net.
Change-Id: Ib7c42f2c1ed9e8de1c593ad3c56a9bc2de2b172b
2016-08-07 22:40:56 +02:00
Translation updater bot 33917d94f7 Localisation updates from https://translatewiki.net.
Change-Id: If13b1f70ed5c6ea8bf9200a56c463fd9d319dc52
2016-08-05 22:34:12 +02:00
Translation updater bot 456341344a Localisation updates from https://translatewiki.net.
Change-Id: I9cb45c668d692c44b75ac6f06412e327d0daf15d
2016-08-04 23:29:52 +02:00
Translation updater bot e9eba8e74c Localisation updates from https://translatewiki.net.
Change-Id: Iff4fbe5a443b0be046bf16115d9be09abb8d7ae3
2016-08-03 22:40:59 +02:00
jenkins-bot 7010b98d7f Merge "Include a number in messages showing a number with a unit" 2016-08-03 10:03:39 +00:00
jenkins-bot cbca683b21 Merge "Reduce help text font-size" 2016-08-03 09:59:38 +00:00
Translation updater bot acfbebf28b Localisation updates from https://translatewiki.net.
Change-Id: I28e096672bba3d471ef01bdd2b365e72cc16380e
2016-08-02 22:45:33 +02:00
WMDE-Fisch fefe746b07 Reduce help text font-size
Bug: T139100
Change-Id: Ie4401b1a49026606109d90160001d327472f1bff
2016-08-02 14:12:57 +00:00
jenkins-bot 7ce0442fa0 Merge "Track the load times of RevisionSlider" 2016-08-02 12:08:31 +00:00
addshore fd61e41db8 Track the load times of RevisionSlider
Change-Id: Ibeaac111802af80d2910c1892d233b7835069148
2016-08-02 13:02:57 +01:00
jenkins-bot dd8ee7bad4 Merge "Consider custom user language setting, and include all parameters in generated URLs" 2016-08-02 09:42:53 +00:00
Translation updater bot c836f8b60d Localisation updates from https://translatewiki.net.
Change-Id: I7340bad03e24247877c2109c83dc5d735a21cdc4
2016-08-01 22:36:56 +02:00
Leszek Manicki 042a3bb213 Consider custom user language setting, and include all parameters in generated URLs
User langauge setting could be overriden by adding uselang parameter
to the URL. Extension should use its value if present when fetching
the localized diff page.

Bug: T141760
Change-Id: I2539bc7bf523870f55f67bc94000c28644528172
2016-08-01 17:10:21 +02:00
jenkins-bot ff550611b2 Merge "Clean up the usage of <bdi> tags" 2016-08-01 13:53:57 +00:00
addshore f2d12c6728 Add browser test for history after dragging pointer
Change-Id: Icfc28009b4b2168bdde328055906238e0108713c
2016-08-01 12:25:46 +01:00
Leszek Manicki de8ec35f2f Fix restoring the position of pointers when moving in browser history
This fixes two bugs:
 - when more older revisions are loaded and inserted at the "beginning"
   of revision list, the slider position in the top history state
   should be adjusted. Otherwise when going back in browser history
   wrong "window" of the slider is displayed.
   This bug has been introduced in Ib3f4a6ac57ff17008f9d8784c4716bd294443096
 - when clicking revision bars the history state should contain
   the position of the changed after the clicking instead of the
   position prior to the event. Otherwise when going back and forward,
   the latter does not change the pointer positions (two top history
   states before going back store the same pointer positions).

Change-Id: I2305a731a5e43ea15ad8468eb3dc4a5eea12b182
2016-08-01 12:35:35 +02:00
addshore 093bb1466b Use history.replaceState on initial load
Bug: T141732
Change-Id: I283b9f45f9ecf6bed5d5031ea21b374f12758309
2016-07-31 20:13:00 +01:00
addshore f7289bf65c Use SliderView refreshRevisions method in SliderView
Change-Id: Ibaeb9776ee18061c99ddf1a6e794b5a3a6faa16a
2016-07-31 19:50:33 +01:00
Translation updater bot 49d07b80dd Localisation updates from https://translatewiki.net.
Change-Id: Ic960336193b1a7c5f83dd6a97075c4c1fb61a7a9
2016-07-30 22:30:46 +02:00
Translation updater bot 524457c156 Localisation updates from https://translatewiki.net.
Change-Id: I5b9673344e309e7f700885fdca74ba1c664b6577
2016-07-28 23:04:55 +02:00
Leszek Manicki 3cc218391c Include a number in messages showing a number with a unit
Extension should not enforce English order with number being followed
by unit "bytes" in messages related to byte size.
This also splits a message into two messages: one for page size value,
and other for change size. The latter size is signed and value to be
shown is colour-coded HTML element so it is a bit more complicated
case than the page size.

Bug: T141507
Change-Id: I96992eafd4cd8a5aed3fcd5944129bcd83139a16
2016-07-28 15:04:25 +02:00
jenkins-bot 6aea17b627 Merge "Fetch more revisions as the user moves back and forward" 2016-07-28 11:38:53 +00:00
Leszek Manicki dc838bc87d Fetch more revisions as the user moves back and forward
This changes the previous behaviour of fetching always up to
500 most recent revisions.

Now the extensions fetches N revisions including the newer
revision selected to diff as the most recent revision.
N is number of revisions that would fit in the current
window when rendered as bars.
When user is close to either "end" of the slider, extensions
fetches another batch of up to N older or newer revisions,
as long as user does not reach the oldest or the newest
revision of the page.

Among others, this removes the limitations of the previous
approach: showing only 500 revisions, and failing to show
anything when any of selected revisions was older than
500 recent revisions.

This change also simplifies usage of Api class.

Bug: T135005
Change-Id: Ib3f4a6ac57ff17008f9d8784c4716bd294443096
2016-07-28 12:58:35 +02:00