Commit graph

14369 commits

Author SHA1 Message Date
jenkins-bot 3c861d7ed1 Merge "Clear auto-save when switching to fallback wikitext editor" 2018-03-14 17:55:44 +00:00
Bartosz Dziewoński dc9b7170e3 DesktopArticleTarget: Add explicit dependency on 'mediawiki.storage'
This happens to work correctly because we depend on 'mediawiki.user',
and that depends on 'mediawiki.storage'. This is just an implementation
detail though and could change.

Change-Id: Ia23c83ae73bfbcc65b4a169bddf861d83691822e
2018-03-14 18:48:10 +01:00
David Lynch 9762b096c8 Autosave: only try to remove autosave on teardown if the surface exists
It's possible for some load failure states to cause this teardown at a point
without a surface. I observed it in MobileFrontend, when restbase can't be
contacted.

Change-Id: I13489640759c73dad5730d0bbadbfb2a38cb8e53
2018-03-14 11:53:10 -05:00
Ed Sanders d0eafd6b8d Restrict width of diff feedback button mobile
Change-Id: Ia4ceb73efb76d7714102619fce9cd87cf34216f9
2018-03-14 14:32:37 +00:00
jenkins-bot 670f39790f Merge "ApiVisualEditor: Replace use of ApiBase::dieUsage() with ::dieWithError()" 2018-03-14 09:29:18 +00:00
James D. Forrester f9ab5fa6fe ApiVisualEditor: Replace use of ApiBase::dieUsage() with ::dieWithError()
Bug: T189205
Change-Id: Ic75594c0a9388814b4ecc887c4262cbbe858d7f9
2018-03-14 10:21:03 +01:00
jenkins-bot e4a8c0b61b Merge "Attach deactivate code to namespace tab ('Main'/'Article')" 2018-03-14 09:19:16 +00:00
Željko Filipin a17ff98216 build: Use new version of commons_upload Ruby gem for language screenshots
The new version has many improvements, including not breaking when the file exists and upating file
description.

Bug: T189122
Change-Id: Ib4b42c9f663bafbbfb0c96e5fb4d9d5f162d2265
2018-03-13 13:41:32 +01:00
Ed Sanders c6653b6a2d Show page title in preview
Bug: T189540
Change-Id: Idc203f7fcafcf944108938168b492e90091e3255
2018-03-13 10:15:16 +00:00
Translation updater bot 327a4191aa Localisation updates from https://translatewiki.net.
Change-Id: I5c9243182a791a13eb41ae595f3a2e7d572f4608
2018-03-12 22:25:40 +01:00
jenkins-bot 540cb864ca Merge "ve.ui.MWGalleryDialog: Dedupe code for saving properties of each image" 2018-03-12 12:28:10 +00:00
Ed Sanders e0419f8388 Autosave section title when adding new section in source mode
Change-Id: Idcbe2f12e3eb0bb85e2c986885bd8084b16dbe5b
2018-03-12 12:25:12 +00:00
Translation updater bot e47bc9559a Localisation updates from https://translatewiki.net.
Change-Id: I8cfc4aa4d0b386592a6e9dad51ac8ed502cc4353
2018-03-11 22:31:26 +01:00
Ed Sanders 4fc2b32b17 Disable visual diffs on source mode section edits
Bug: T183938
Change-Id: I0d03c47e9b4c30760b7d3bd7bf90d91e79eb8569
2018-03-10 22:54:54 +00:00
Ed Sanders 2b033f6ee0 Use action=compare for wikitext diffs
Diffing in action=query is deprecated since 1.30.

Bug: T189397
Change-Id: Ic1fecd4517a1410e3c8e3593a031ad7b8ffb57d4
2018-03-10 22:32:02 +00:00
Translation updater bot 5e58c6264a Localisation updates from https://translatewiki.net.
Change-Id: Ia3b692abdbe2d2102fc6403093ac74ca8af7761c
2018-03-10 22:14:32 +01:00
Ed Sanders e78379a395 Attach deactivate code to namespace tab ('Main'/'Article')
Bug: T189380
Change-Id: I9f05722b9a1c740f9f982d9c5690d48046f19fdd
2018-03-10 19:07:11 +00:00
Ed Sanders c3c3c60f1f Clear VE autosave whenever WikiEditor is loaded
Bug: T189381
Change-Id: I21a76dc32327d6c6e72a793d9b579cb7b6a5e32e
2018-03-10 18:34:17 +00:00
Ed Sanders ec6d9b235a Clear auto-save when switching to fallback wikitext editor
Bug: T189381
Change-Id: Id89fa2a673ad8aef3826c0ef862770bf522bbdcf
2018-03-10 18:04:44 +00:00
jenkins-bot 2ae3f5f1c2 Merge "ve.ce.MWBlockImageNode: Allow normal CE rendering to handle the caption" 2018-03-10 17:28:34 +00:00
Bartosz Dziewoński 3c676013f8 ve.ui.MWGalleryDialog: Dedupe code for saving properties of each image
Currently this only handles the caption, but there will be more.

Change-Id: Ia8a25de89375d0ba873f4891b053c7aceab15534
2018-03-10 17:16:16 +00:00
Bartosz Dziewoński 26e7728272 ve.ce.MWBlockImageNode: Allow normal CE rendering to handle the caption
Overriding ve.ce.BranchNode#onSplice seems pretty scary, some bug
could cause two captions to be inserted and it wouldn't even be
visible in the editor.

Instead, allow normal splice handling to happen when the caption is
added/removed, and only override the position where it is inserted
(to account for the image node this.$a).

The caption node is already removed from DM/CE if the image type is
changed to one that doesn't have captions, and even if that failed it
is also hidden in CSS, so we don't need to handle this.

Change-Id: I54f52b288118d692708311512dd674cc85d5d9e3
2018-03-10 17:16:16 +00:00
Ed Sanders 9678cdc7c8 Factor out isSaveable method from updateToolbarSaveButtonState
Change-Id: Ic1922ed26bae26a76e8149d48f3fb27fa9ba4330
2018-03-10 16:20:30 +00:00
Ed Sanders 8b208c80d5 Remove unnecessary attachToolbarSaveButton override
It's identical to the code inherited form ArticleTarget.

Change-Id: I7fe7a48b0614f2ac2665ece042bb95a6f77303ad
2018-03-10 16:20:30 +00:00
James D. Forrester c493cafef5 Update VE core submodule to master (01609bfaa)
New changes:
01609bfaa Follow-up Icf2d948bc9: Only reset lastStoredChange in storeDocState if using latest HTML

Change-Id: I9d70f9827cb84d01f7e172e444fa33cf7921ddfd
2018-03-10 13:53:35 +00:00
jenkins-bot 00eb598352 Merge "Update rel attribute checks to be aware of multiple rel values" 2018-03-09 21:44:53 +00:00
jenkins-bot 04e5f6f208 Merge "LinkCache: styleParsoidElements find mw:WikiLink with ~=" 2018-03-09 21:44:52 +00:00
L10n-bot 08c852a6a8 Merge "Localisation updates from https://translatewiki.net." 2018-03-09 21:44:11 +00:00
Translation updater bot d8f196b833 Localisation updates from https://translatewiki.net.
Change-Id: I82bb56ddc586d46246fc62b69cefd8007951c7eb
2018-03-09 22:42:23 +01:00
jenkins-bot 0be5ab3984 Merge "Update VE core submodule to master (3aabb95af)" 2018-03-09 21:40:06 +00:00
jenkins-bot fe6839f396 Merge "i18n: Sort messages alphabetically for easier updates" 2018-03-09 17:39:52 +00:00
James D. Forrester 77c83c3ac2 Update VE core submodule to master (3aabb95af)
New changes:
3aabb95af DiffElement: Allow rich content for change descriptions

Bug: T188389
Change-Id: I7c8a1ba31f9ee811a5c299113bb463500cb63082
2018-03-09 10:18:13 +00:00
jenkins-bot a6ebfaec29 Merge "ce.MWTransclusionNode: increase invisible selector specificity" 2018-03-09 09:24:13 +00:00
libraryupgrader 283cf053e4 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ieda87cf26697a6f8f9ce24398be8e0d569c4b7c8
2018-03-09 02:41:19 +00:00
David Lynch b6c6d10d1e ce.MWTransclusionNode: increase invisible selector specificity
5f6664e2 in VE core changed the specificity for some of the rules this
expected to override.

Bug: T189267
Change-Id: I510e151cc431c321d1d45fde9030d56f059d84ab
2018-03-08 19:27:52 -06:00
Translation updater bot fc0467a26d Localisation updates from https://translatewiki.net.
Change-Id: I925e6d0285f01cc6c53d1e97b3ed713af844db9c
2018-03-08 22:46:15 +01:00
jenkins-bot 6028ad9e37 Merge "Update VE core submodule to master (97bf37687)" 2018-03-08 20:43:56 +00:00
David Lynch 4e10d5b975 Update rel attribute checks to be aware of multiple rel values
Various checks didn't think a rel attribute could contain multiple values.
Mostly they don't, but to play it safe let's adjust the checks.

Change-Id: I29823b7c8c65ef6b2ff41ce9a801840000972e9c
Depends-On: I33a456351ab025d0c81cfb1a1577d5a2ae9df51a
2018-03-08 14:34:56 -06:00
James D. Forrester 650836d08f i18n: Sort messages alphabetically for easier updates
Change-Id: Ia93565c87b6bd15b7db13d2c33f444da8b8d33ca
2018-03-08 20:02:07 +00:00
jenkins-bot b718a7634e Merge "Hooks: Don't register beta features if they're enabled for all" 2018-03-08 15:17:14 +00:00
jenkins-bot d1e3a4147d Merge "build: npm/rake entry point for screenshots upload" 2018-03-08 14:56:08 +00:00
James D. Forrester e54554ae83 Update VE core submodule to master (97bf37687)
New changes:
e10e2c0b6 Remove gecko-specific paste tests, add copy test
c555b6567 Complete test coverage of autosave methods
fc02e085e Localisation updates from https://translatewiki.net.
08a55658e CE Surface tests: Add missing </tbody> tags
ff5a766bb CE Surface tests: Avoid execCommand on tests failing in Firefox
46160f796 Run and make voting the Firefox tests in CI

Bug: T182626
Bug: T189201
Change-Id: Iee50ddf350e4a3312024b280cdeded08d325ea06
2018-03-08 14:41:40 +00:00
James D. Forrester 285254979a Hooks: Don't register beta features if they're enabled for all
Change-Id: I8a618a8ce76f48b143955dd7a5877b68d8e1205d
2018-03-08 14:41:40 +00:00
jenkins-bot 8e79d85583 Merge "Blacklist Web of Trust junk from being added to pages" 2018-03-08 00:33:48 +00:00
David Lynch f8c5608caf LinkCache: styleParsoidElements find mw:WikiLink with ~=
`noopener` being added to the rel caused issues.

Bug: T189175
Change-Id: I33a456351ab025d0c81cfb1a1577d5a2ae9df51a
2018-03-08 00:14:16 +00:00
jenkins-bot e6917e2e0c Merge "Update VE core submodule to master (f46b51b83)" 2018-03-07 23:26:35 +00:00
Antoine Musso 2aadc18105 build: npm/rake entry point for screenshots upload
We have a Jenkins job to take screenshots of VisualEditor and upload the
result to commons.wikimedia.org. That roughly does:

    npm install
    node_modules/.bin/grunt screenshots-all

    bundle install
    bundle exec upload

However on CI, the Docker container only accepts 'npm run-script XXX' or
'bundle exec rake YYY'.

Add a npm script 'screenshots-all' invoking 'grunt screenshots-all'.

Add a rake task 'commons_upload'. I have added a basic check to make
sure environment variables are properly set before invoking the upload
script.

Thus on CI the usage will become:

  npm install
  npm run-script screenshots-all

  bundle install
  bundle exec rake commons_upload

Which match the CI convention.

Bug: T189122
Change-Id: I221ed8d6178dd036eac287f0f811834a6d4ffd22
2018-03-07 23:23:30 +01:00
Translation updater bot 433dc82ad2 Localisation updates from https://translatewiki.net.
Change-Id: Ie3d742d2ee46f0ee596227b5f63832e441c32397
2018-03-07 22:48:05 +01:00
Bartosz Dziewoński b05ac142c6 Blacklist Web of Trust junk from being added to pages
Bug: T189148
Change-Id: Icc4b2d0ddf5104e26a3f563816f6f971d71e2531
2018-03-07 22:12:43 +01:00
James D. Forrester a083ee372f Update VE core submodule to master (f46b51b83)
New changes:
a687da2cc Add visual diff messages for changed dir: and style: attributes
3cf650c5a Fix node type check
b239c9313 Use equalDomElement in DiffElement & TextState tests
cd2dfc205 Don't descend into dataElement-generated nodes in renderHtmlAttributeList
61a1c351e Move isInternal from ve.dm.Node to ve.Node
c535f74fe Stop using FlatLinearData directly
5ec94b067 build: Use “OOUI” as unified name for library upgrade script
8bbd7d356 Update OOUI to v0.25.3
73a81c239 Add unit tests for autosave methods in DM surface

Bug: T160588
Bug: T182360
Bug: T189030
Bug: T189104
Bug: T189120
Change-Id: I581c206312ff5bcc6b7cb41522f1f7ba307bbd1c
2018-03-07 20:59:47 +00:00