Wikimedia

VisualEditor: If the input for the redirect in the "Page Options" dialog is invalid, as well as show a red outline, block the user from closing the dialog with a prompt to fix it

This task is about VisualEditor. See its user guide for general information.

In the VisualEditor, click the ≡ icon, click "Options", and choose "Page Settings". If someone puts an invalid page name / page title in the "Target page for redirection" field (like the page name "Talk:" or a page name with a pipe character | in it), and tries to apply the changes, an exception is caused and the editor is locked up.

The "Apply Changes" button should be disabled when the input is not valid (like in e.g. the "Insert ➙ Media" dialog when file dimensions are invalid).

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Task tags

  • mediawiki
  • visualeditor
  • javascript

Students who completed this task

Jacob (Flutters)

Task type

  • code Code
close

2018