Page MenuHomePhabricator

Temporarily fork the BookletLayout class
Closed, ResolvedPublic

Description

The goal of this task is to completely decouple the transclusion dialog from the base BookletLayout, while making only simple code changes and not affecting behavior.

  • Copy BookletLayout.js to a new class under VisualEditor/modules/ve-mw/ui/layouts (new directory). Give the class a name specific to its purpose (eg "ve.ui.TwoPaneTransclusionLayout", since we will be stripping out the generalized "booklet" functionality.
  • Copy relevant stylesheet entries to a new file, with CSS class names corresponding to the new JS class.
  • Refactor VE customized styles to use the new CSS class names.
  • Refactor MWTemplateDialog to initialize this.bookletLayout to the new JS class.

Event Timeline

Change 806906 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] Copy BookletLayout.js and rename

https://gerrit.wikimedia.org/r/806906

Change 806911 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] Copy over BookletLayout styles

https://gerrit.wikimedia.org/r/806911

Change 806912 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/VisualEditor@master] [WIP] Switch to forked BookletLayout

https://gerrit.wikimedia.org/r/806912

awight moved this task from Doing to Tech Review on the WMDE-TechWish-Sprint-2022-06-08 board.

Change 806911 abandoned by Awight:

[mediawiki/extensions/VisualEditor@master] Copy over BookletLayout styles

Reason:

I'll squash this with its predecessor since they are coupled in interesting ways (renaming the class)

https://gerrit.wikimedia.org/r/806911

Change 806906 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Copy BookletLayout implementation from ooui-js 0.44.0

https://gerrit.wikimedia.org/r/806906

Change 806912 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Switch to forked BookletLayout

https://gerrit.wikimedia.org/r/806912

awight claimed this task.
awight moved this task from Tech Review to Done on the WMDE-TechWish-Sprint-2022-06-22 board.

Change 807939 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[mediawiki/extensions/VisualEditor@master] Add initial tests for ve.ui.MWTwoPaneTransclusionDialogLayout

https://gerrit.wikimedia.org/r/807939