Commit graph

318 commits

Author SHA1 Message Date
jenkins-bot 172b9c1832 Merge "Adjust pin layout to new OOjs UI defaults" 2017-06-06 11:42:49 +00:00
WMDE-Fisch fe8bddd881 Adjust pin layout to new OOjs UI defaults
Bug: T166803
Change-Id: I3153b948f3e0a069d6a9869a07e235fcbf8b9e57
2017-06-06 13:04:15 +02:00
jenkins-bot 9c92ef5188 Merge "Adjust z-indexes to work with Modern skin" 2017-06-06 10:56:09 +00:00
WMDE-Fisch 0525f0bdb2 Do not assume that revIds increase in time
This patch fixes issues with the RevisonSlider assuming that the higher
revision id belongs to the newer revision. Min/Max methods to decide what
the diff and what the oldid is are removed and the usage of methods is
adjusted accordingly.

Also the test for switchover pointers is removed since this will not work
with the patch.

Bug: T164455
Change-Id: If5d9cbb8ebd872aee376d249942e6881c8edb984
2017-06-01 18:29:22 +02:00
WMDE-Fisch fce6b2e950 Adjust z-indexes to work with Modern skin
Bug: T166209
Change-Id: I54e7310d215c44ef3e139e940bf61dbee52bf5a8
2017-05-24 13:41:31 +00:00
pppery 4ed9851610 Fix handling of escape key
Previously, pressing ESC aborted the dragging of the slider, but this
was broken by I64cca7a7547310bee64ad95f500b722c362bbb45, which refactored
uses of a variable that was previously a closure into two separate functions.

Bug: T140965
Change-Id: I6b7bc383128d8c7d99da469706bff881f1329cd9
2017-05-22 15:22:55 -04:00
Andrew-WMDE 96a366ddb0 Update help dialogue to explain new sliding mechanism
- works with the setting var to switch help text
 - minified new SVGs with svgo
 - adjusted new SVGs dimensions
 - updated accompanying text

Bug: T162773
Change-Id: I3da66a006977fa6b1999686ba4f415e891f4ea02
2017-05-09 19:50:39 +02:00
WMDE-Fisch 31b9fe31ef Convert touch events to mouse events on pointers
This will make the pointers work on touch devices. The events responsible
for the touch drag and move are converted to mouse actions that will
trigger the draggable.

When using Chrome on touch devices and zooming the offset of elements
calculated by jQuery is wrong. There is a workaround that seems to work
and also seems to not break behavior with normal browsers and on other
devices. Since this only seems to be a problem in Chrome the fix will
only applied to Chrome browsers to avoid performance los on others.

Also introduced a script file for static utility methods.

Bug: T164249
Change-Id: I245f77eb836afded249f3b5ebb7129dab08d0017
2017-05-08 12:55:31 +02:00
Ed Sanders c6465dee07 build: Update eslint to 0.4.0 and make pass
Change-Id: I6e3e2f30615996c57650127cde9738d3a6dd9ae5
2017-05-04 21:06:08 +00:00
jenkins-bot 095c3ea863 Merge "Throw errors, not strings" 2017-05-03 09:33:09 +00:00
Ed Sanders 4e9689ce36 Throw errors, not strings
Change-Id: I65bad18f2526283ba426aed8ff7da9121f230770
2017-05-03 09:47:14 +01:00
WMDE-Fisch 72d19630ad Let revision bars leave space for the pointer line end border
The end border for the pointer lines can not be displayed because the
bars on the biggest revisions used all the height. This patch reduces
the max height of the bars slightly and refactores the calculating method.

Bug: T163436
Change-Id: Idfa6bdb9f85221063e13f3ec16b22fcfbe6cbd9c
2017-04-25 15:29:18 +02:00
WMDE-Fisch 3c4c9fed0d Fix OOjs UI tooltip position
The latest OOjs UI update seem to fix tooltip center positioning.
Margins added manually are removed now.

Change-Id: I883a5026002fae6fbda230b407303a4f2b82914d
2017-04-19 13:08:24 +00:00
WMDE-Fisch 9e6f44cb06 Tooltips when hovering slider lines in the SliderViewTwo
This change enables tooltips when hovering the slider lines. To avoid
interference of these events when dragging a variable is set to keep
track of the dragging state.

Bug: T162602
Change-Id: I45c1b73ca470d7b8fcf8b95e15187864e35e907f
2017-04-19 11:26:51 +00:00
WMDE-Fisch 624b4786ec Introduce RevisionsListView element
This will avoid several jQuery calls.

Change-Id: I1934bcfde97415ca0c01465037f34d2555b6daa4
2017-04-19 11:26:44 +00:00
WMDE-Fisch de86ba0a3e Refactor offset based position calculation
This also fixes some issues with RTL and dragging.

Bug: T162914
Change-Id: I76896f94bf68d4ff0fe143d3f2050c21570052d1
2017-04-13 17:00:49 +00:00
Ed Sanders 187ba30937 Fix alignment of expand icon
Also fix loading of styles for lazy.css to avoid FOUC and
inline style hacks.

Bug: T162804
Change-Id: Ie5a462993075f87b776f8a1f0494b5fe563df079
2017-04-12 18:22:55 +01:00
WMDE-Fisch 98b1a79d79 Remove not needed z-index
Change-Id: Id163b3be651cd6597e665e21fe6e44ae12bc8b3b
2017-04-12 15:47:08 +02:00
jenkins-bot 63cbc5f40d Merge "Fix JS trigger for the thanks links" 2017-04-12 11:24:09 +00:00
WMDE-Fisch 66ca836e1c Fix JS trigger for the thanks links
Bug: T142636
Change-Id: Idd550f83c02ab50f7c9c10e4224d394ddb39cdb3
2017-04-12 11:57:56 +02:00
jenkins-bot 04d0720b20 Merge "Fix bar hover with pointer lines" 2017-04-11 14:10:07 +00:00
WMDE-Fisch 2af7e96221 Fix bar hover with pointer lines
This change fixes the broken hover on bars due to overlying pointer lines.
The lines are now drawn in the background again. To better visualize the
connection to the bars, the bars now get a coloured border set.

Bug: T162456
Change-Id: Ie84ce8d36d43e5d79248c49c6d2d3eae1a7f627c
2017-04-10 14:56:33 +02:00
WMDE-Fisch 3da53f85b6 Highlight and clickability improvements
Bug: T162580
Change-Id: I8b16ff8b4a9f2da9b13f057d310aaba93a6823b6
2017-04-10 10:33:30 +02:00
WMDE-Fisch e6d28dc19d Use a new config var to activate the alternate SliderView
Change-Id: I7e2dd04c333d3b8daf9f009898f8f80b4e7aad3d
2017-04-07 11:58:19 +02:00
jenkins-bot 961cb87256 Merge "Show tooltips when dragging the sliders" 2017-04-06 13:31:34 +00:00
jenkins-bot a6e9e530ba Merge "Factored out drag action from draggable" 2017-04-06 13:31:33 +00:00
jenkins-bot a67b2f09ab Merge "Remove dark hover effect on bars" 2017-04-06 13:31:32 +00:00
jenkins-bot af571e7d0b Merge "Add hover and grab styles when using new slider pointers" 2017-04-06 13:31:31 +00:00
jenkins-bot f6dd02815c Merge "Introduce alternate SliderView" 2017-04-06 12:43:49 +00:00
WMDE-Fisch 747ae35a94 Show tooltips when dragging the sliders
Change-Id: Ic784681519f1de26af707abde71137b34c90e7f9
2017-04-06 14:26:45 +02:00
jenkins-bot f46e959c26 Merge "Factor out setting of cursor pointers" 2017-04-06 12:08:08 +00:00
jenkins-bot 444d57c425 Merge "Fade out pointer lines while dragging / pointer animations" 2017-04-06 12:04:15 +00:00
WMDE-Fisch 177d6a1bd1 Factored out drag action from draggable
As preperation for tooltip and hover color changes while dragging in
the new SliderView.

Change-Id: I679fc1b6fb5f69d27f6dee0aafd168493dc33957
2017-04-06 13:47:59 +02:00
WMDE-Fisch 99d7da0ce1 Remove dark hover effect on bars
Bug: T162260
Change-Id: I99fceaf6f27737d48a61e1db9a07ab44fef8040e
2017-04-06 13:00:52 +02:00
WMDE-Fisch 015a622b3a Add hover and grab styles when using new slider pointers
Bug: T162258
Change-Id: I9adbd4714c1c44f7cdce62c3b8c4b9c24bf0b80e
2017-04-06 12:45:19 +02:00
Tobias Gritschacher a3ee2a0bb1 Replace deprecated method zone() with utcOffset()
Also removed the workaround of making the offset negative since utcOffset
now does this correctly. See http://momentjs.com/guides/#/warnings/zone/

Change-Id: I0cecd525ba131a1c32a9ea60f80d269060e022b0
2017-04-06 11:55:04 +02:00
WMDE-Fisch c52c657516 Introduce alternate SliderView
Adding a new class for an alternative slider view with
one slider for each pointer. The new class will be used
when the extension is installed as a beta feature.

Each pointer has now its own pointer container visualized
with a thin line. Pointers can not change places anymore
and methods doing so where overwritten in the patch.

Selected revisions are not colored atm to better distinguish
between pointers and bars. Poiner lines are now shown above
the bars. ( as from feedback in the last PM session )

Some issues with the design might remain. But since we plan
the deployment anyway next week this could be merged if reviewed. 

Bug: T160410
Change-Id: If00c31e30f8a01f3525b191c70605b9c9381671d
2017-04-06 07:29:19 +00:00
WMDE-Fisch 040dd9c945 Factor out setting of cursor pointers
Change-Id: Idb66dcd1daeff48dcce3a39be32eae7c8e17acc8
2017-04-06 07:29:12 +00:00
WMDE-Fisch f978f8690c Fade out pointer lines while dragging / pointer animations
Bug: T162259
Change-Id: I54d6a9bc33b93c0785b2a808b4d1482789d91317
2017-04-06 07:29:02 +00:00
WMDE-Fisch 218b85d0bb Remove 4px pointer margins
It seems the magic done with the 4px margin and its calculations
are not really needed. Getting rid of this does not only clean
the code but is also very helpfull for the new slider logic.

Change-Id: Iae86b8024d3b56517bdc4db5e8baec69bd61afbf
2017-04-05 09:42:49 +00:00
WMDE-Fisch a72b31b280 Renamed container offset variable
Change-Id: I6fc2d51f5a591dcf4898abb1ae010a433131a0d9
2017-04-03 11:05:51 +02:00
jenkins-bot 16d9e74760 Merge "Move arrow button logic to own class" 2017-03-27 22:45:37 +00:00
jenkins-bot 7abac9b03e Merge "Move helper button logic to own class" 2017-03-27 22:44:09 +00:00
WMDE-Fisch b0227f24b4 Renamed firstVisibleRevision to oldestVisibleRevison
The meaning of first in this context was totally unclear and not
very usefull. It turns out, that the "first" revision is always
the oldest and the last is always the newest revision.

Change-Id: I009438777908a5f4a8833f8f5cb7d3041057741c
2017-03-27 21:04:31 +02:00
WMDE-Fisch 97c85abdf2 Move arrow button logic to own class
Change-Id: I56e52d8b11f8557d759dc495512d9754e8f441f6
2017-03-27 18:56:59 +00:00
WMDE-Fisch 7e277fbd9d Move helper button logic to own class
Change-Id: I8fdfeb3344974b3cee7ce07bcf2ceea9308fffe6
2017-03-27 18:56:34 +00:00
jenkins-bot 5abd483832 Merge "Factor out relative pointer index" 2017-03-24 14:43:25 +00:00
jenkins-bot abcd2158cd Merge "Factor out draggable options" 2017-03-24 11:00:00 +00:00
Ed Sanders b00f11ebd2 Update wgRevisionId when changed by slider
Bug: T161257
Change-Id: I1ede31dc9ce67fdc596f117f48ce4bfdde54c2cc
2017-03-23 21:48:11 +00:00
WMDE-Fisch 277d714ec3 Factor out relative pointer index
Change-Id: If0843bea19089c1a91228a0c01f8ac65e44f7f3f
2017-03-23 17:54:12 +01:00