Commit graph

1623 commits

Author SHA1 Message Date
WMDE-Fisch 98c33c4731 Extract reapplication of saved filter state
Change-Id: If770e0cb52034a5f52bc8bb3639c9dccdf64b683
2019-04-12 19:15:18 +00:00
WMDE-Fisch d4a3ec243e Use switch statement for filter events
Change-Id: I0f564e33744d3806682534267c4b922edd5e9b3c
2019-04-12 19:15:12 +00:00
WMDE-Fisch bd38ccaf98 Early exit filter events
Change-Id: I72fd4a1496f6c0247a9166ba54ce3de2918bc310
2019-04-12 19:15:05 +00:00
WMDE-Fisch 32cf219c4e Extract code that resets/removes highlighting
The next iterration on avoiding code duplication. I
still stuggle a bit merging these methods in a sane
way.

Change-Id: I8d95acc06da7f83a6133e55becabdf03b26a97af
2019-04-12 19:13:20 +00:00
WMDE-Fisch a49cb0c466 General code reduction in the highlight event handlers
- make use of toggelCSS()
- use more general jQuery selectors ro reset the line and bubble highlight
- get rid of ~= when selecting revision ids

Change-Id: I123e263bb379107a561fe8a2ffed476da9032b88
2019-04-12 19:12:44 +00:00
WMDE-Fisch f4c64b744e Put event setup for user line highlighting in own method
This is mainly a copy of what's done for the tag lines to set the events.
In the next steps I'll try to avoid code duplication here be extracting
common code.

Change-Id: I29df109de30c538cc206d445abff8464baf45378
2019-04-12 19:09:50 +00:00
WMDE-Fisch 1a18ab3d38 Add a few more selenium tests for the filter options
Change-Id: I7bb14987e2f2ef452953fb2b71aae7f697a4d820
2019-04-12 11:08:49 +02:00
Translation updater bot 9993e07546 Localisation updates from https://translatewiki.net.
Change-Id: Iec18f4d7acc5bad6e249f3db19386125acc8f399
2019-04-12 08:32:28 +02:00
jenkins-bot 6f667e6143 Merge "Add node selenium tests for revision highlight feature" 2019-04-11 16:29:23 +00:00
WMDE-Fisch a2ca2c031e Add node selenium tests for revision highlight feature
The patch adds a first package of node selenium tests including
test for the user and tag filters.

The classes for user- and tag-rows were re-added to have better
access via selectors.

Change-Id: I8c53d9c923820e177d83ee900cee08e93cd3f65b
2019-04-11 17:58:53 +02:00
Translation updater bot b3d1adfd97 Localisation updates from https://translatewiki.net.
Change-Id: Ib077127973f1352260ffd8314bc87ea855a1ff4c
2019-04-04 14:54:39 +02:00
James D. Forrester 153ecb8990 build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0
Change-Id: I5a5aede4114b0e6d370904a08f10b327b4968a2d
2019-04-04 00:56:01 +00:00
WMDE-Fisch 6ddf000c0e Slighlty improve filter highlight UI
- move border to right so when the text starts there's a straight line
- increase right margin to fit mock
- adjust border radius so it's most probably always more than the line height

Bug: T218770
Change-Id: I76a2f096d14bf4d912686a71e5771ead1c7db3e6
2019-04-03 10:54:49 +02:00
WMDE-Fisch a96b079e8f Unify highlighting CSS classes
Change-Id: Iceb094075d1fb1bd4aca53c120dbc3c6ccd39eb6
2019-03-25 17:30:47 +01:00
WMDE-Fisch 55c558169b Retrieve revision list in highlighting method
This moves the retrieval of the revisions into the method setting the
highlighting. The check for undefined did not to much since the rev
var would still remain undefined.

Change-Id: I1acf540f135af4c16fb80d633b3690473ada7833
2019-03-25 17:21:03 +01:00
srish 6ee7f910b7 Add filters for tags
* Uses the existing implementation of highlighting revisions from the same user
* Shows bubble next to tags in Tooltip
* When you hover on a bubble, tag row is circled, and revisions with a specific tag gets highlighted. When hovering ends, highlighting ends. But, if there is an active filter available, all previous states are restored accordingly.
* When you click on a bubble, in addition to highlighting revisions and tag row, any previous tag or user filter is removed.

Bug: T203581
Change-Id: I824a027a7f542eb7227545870553e58ec23542bb
2019-03-25 16:57:57 +01:00
Kunal Mehta 46e2f60fec Remove empty tests/phan directory
tests/phan/issues is no longer populated, and stubs should be in .phan/stubs
going forwards.

Change-Id: I238ff73939c5b1b79594c8a043c4fe7082f93a65
2019-03-23 23:02:22 +00:00
Translation updater bot 1145487671 Localisation updates from https://translatewiki.net.
Change-Id: I2a62ec2e2e544d81d579b705d5a212c4c73b55a9
2019-03-23 10:23:35 +01:00
libraryupgrader 724cae3cce build: Updating mediawiki/mediawiki-phan-config to 0.5.0
Change-Id: I32b12220e15d3b354bf32f44b68c65b221172af5
2019-03-11 03:34:53 +00:00
gopavasanth 197bd4c7b3 Upgrade RevisionSlider to use newer phan
Bug: T216939
Change-Id: Icecfd92783dbe956133b2e63eeb6717fc1466cc0
2019-03-03 12:06:21 +05:30
Translation updater bot e4cfa6afe1 Localisation updates from https://translatewiki.net.
Change-Id: I940874c8667718a2bb4864d75e93c0ca4253ff66
2019-02-21 22:21:35 +01:00
Translation updater bot d702565928 Localisation updates from https://translatewiki.net.
Change-Id: I90ad4e7ce3eaed126b639d095d670e6d9022760a
2019-02-19 22:20:09 +01:00
Translation updater bot 7fb8d26b38 Localisation updates from https://translatewiki.net.
Change-Id: Idcd99418446ca65ab01723649f26e72c5e724d3d
2019-02-17 22:14:38 +01:00
Umherirrender 8dc39ccf86 build: Set private: true in package.json
The package.json is only for build, not to publish the package
Remove license, name, repository, version and homepage, because that is
not needed on private packages

Change-Id: I0819d00ea2effc9edf3f35dc6e74996f212f1d43
2019-02-16 15:48:40 +01:00
Translation updater bot 71c0317527 Localisation updates from https://translatewiki.net.
Change-Id: I24d485228c5c2a9ce09402961290fd2139727f12
2019-02-13 22:38:30 +01:00
Ed Sanders 57f9876e27 build: Update eslint-config-wikimedia to 0.10.1
Change-Id: I8aeddc384d25318e8618bb617884205f1c0c1f00
2019-02-10 16:54:28 +00:00
Translation updater bot 834224a62a Localisation updates from https://translatewiki.net.
Change-Id: Iaa95dab8af6083cc6e7cf1387ac47be85092d227
2019-02-07 22:28:50 +01:00
libraryupgrader 70286a73eb build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: Ia552558a5d46e92e1f5dfd46e2020537e85f8ca6
2019-02-07 03:46:39 +00:00
Translation updater bot 03b5dd8ea0 Localisation updates from https://translatewiki.net.
Change-Id: Ic95aefd2336dfa5b2cdf64ad9841a9136e76a13b
2019-01-30 22:14:29 +01:00
Translation updater bot dbf0e39f54 Localisation updates from https://translatewiki.net.
Change-Id: I28822007444c27ee1342ec03368d2c6f60a0b356
2019-01-17 09:12:55 +01:00
gopavasanth cbf6d4b76c Quick CSS fix
Changed RevSlider tooltip user-row bubble height and width

Bug: T213643
Change-Id: I31278bf00730ba5993a881b695ebff2df2da7f6a
2019-01-16 17:54:33 +01:00
jenkins-bot 07982bcc54 Merge "Remove redundant checks for .length on jQuery objects" 2019-01-14 09:33:12 +00:00
Thiemo Kreuz 2a2d01ffc9 Remove redundant checks for .length on jQuery objects
jQuery objects behave fine when they don't contain anything. No need
to check the .length before. This is one of the essential feature of
jQuery.

I'm also simplifying some setTimeout the same way. clearTimeout will
never fail. It will ignore numbers that never represented a timeout,
or have been cleared before. Note how the property was never set back
to -1. So this code was kind of incomplete anyway. I suggest to fix it
this way around, instead of trying to set -1.

Change-Id: Ic15812ead9d93f8eb07831aeb75577df2abdff07
2019-01-14 09:40:55 +01:00
Translation updater bot 2c6c3bc865 Localisation updates from https://translatewiki.net.
Change-Id: Ie4fb4e7301afb3f1b989f24f7c53d4dba2542f49
2019-01-13 22:13:41 +01:00
Translation updater bot 6f3dd64e62 Localisation updates from https://translatewiki.net.
Change-Id: I1de8054e949339452a7df95dd018cfdd9ce9c81c
2019-01-10 22:49:21 +01:00
Translation updater bot d261a6e13f Localisation updates from https://translatewiki.net.
Change-Id: Iee111cb00a0a47ed7126590d095466bcbcaa4be7
2019-01-03 22:52:36 +01:00
Translation updater bot e72dafd8df Localisation updates from https://translatewiki.net.
Change-Id: I1c7acb8c095c28a215b279f02d00c771d5d245be
2018-12-27 09:52:13 +01:00
jenkins-bot 35aab1ee71 Merge "build: Set "root": true, in .eslintrc.json" 2018-12-20 07:56:49 +00:00
Translation updater bot cfe53f8315 Localisation updates from https://translatewiki.net.
Change-Id: I6b37ddd9c666f5cad84ca1f8ef232199d5863057
2018-12-19 22:22:47 +01:00
Kunal Mehta 46f3ca653c build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I5de716c50becf448bf7a1dc4f4fcbf322e47b11c
2018-12-17 18:58:01 -08:00
Translation updater bot bca6e60cfe Localisation updates from https://translatewiki.net.
Change-Id: Idf3527f8863b2f0230fd104c97e85648d5e3a0eb
2018-12-17 22:19:36 +01:00
srish ee10c6e665 Change the DOM order of pointers and rebuild styling
Initial patch for introducing keyboard shortcuts reversed the blue and yellow lines. To fix that issue, the DOM order for pointer lines were put back to the original state in https://gerrit.wikimedia.org/r/#/c/473217/. Now, this patch tries to put the tabbing order in place reversing the changes made for the fix as per discussion in https://phabricator.wikimedia.org/T162119#4753481 and style changes.

Bug: T162119
Change-Id: Ic84503de0a877095c118abddb8066aeb667bc03c
2018-12-07 13:02:39 +00:00
jenkins-bot 401c775ced Merge "Fixed Pointers and Pointer lines alignment" 2018-12-07 11:49:18 +00:00
Ed Sanders 6ea28c8cdc build: Update devDependencies
Change-Id: Ic278699f631ddc08243ceb68678c0715a19c4304
2018-12-04 18:05:18 -05:00
James D. Forrester a30cc5fac5 eslint: Drop 'dot-notation' rule
Bug: T210552
Change-Id: I7c94536c22220ea0945aeda8c299fb6898daaaf2
2018-11-28 11:11:36 -08:00
gopavasanth ae42b85975 Fixed Pointers and Pointer lines alignment
Bug: T210232
Change-Id: Iddb574442db4d0ea525b0806596663de79d3ec2e
2018-11-24 22:15:43 +05:30
Translation updater bot 7e9d9eb81e Localisation updates from https://translatewiki.net.
Change-Id: Ia1f4e61b12ae309d5e7032216082d515186049ec
2018-11-22 22:22:19 +01:00
jenkins-bot bebfbd788b Merge "Highlight revisions from the same user" 2018-11-22 14:37:31 +00:00
Translation updater bot eb687e8484 Localisation updates from https://translatewiki.net.
Change-Id: Iad69ab885d89b1e3079f9c123cec4c4df1441bf7
2018-11-21 22:29:24 +01:00
gopavasanth 9a7db48893 Highlight revisions from the same user
*Fixed Border Overlapping.
*Incresed 10% Darkness to the Highlited Revisions.

Bug: T136105
Change-Id: Ie7ba7631f9fe254391ad28be373de7bff4fd2ed1
2018-11-22 00:26:41 +05:30