Page MenuHomePhabricator

Decouple forked OutlineControlsWidget from OutlineSelectWidget and merge in our customizations
Closed, ResolvedPublic5 Estimated Story Points

Description

  • Delete onOutlineChange and usages.
  • New function in two-pane layout to refreshControls which calculates whether we can move the current selection up and down, and whether it can be deleted.
  • Replace all outlineSelectWidget selectItemByData and selectItem calls with refreshControls.

Optional:

Event Timeline

awight updated the task description. (Show Details)

Change 808915 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Create new refreshControls function in TwoPane

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

lilients_WMDE set the point value for this task to 5.

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

[mediawiki/extensions/VisualEditor@master] Move custom buttons into outline controls

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

Change 809200 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Remove unused code and properties from forked ControlsWidget

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

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

[mediawiki/extensions/VisualEditor@master] [WIP] Remove unused config parameter

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

Change 808915 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Create new refreshControls function in TwoPane

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

Change 809174 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Move custom buttons into outline controls

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

Change 809200 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Remove unused code and properties from forked ControlsWidget

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

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

[mediawiki/extensions/VisualEditor@master] Disable controls when nothing is selected

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

Change 809622 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Refresh controls after removing a template

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

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

[mediawiki/extensions/VisualEditor@master] Detect parameter placeholder

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

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

[mediawiki/extensions/VisualEditor@master] Calculate controls using sidebar selection

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

Change 809877 abandoned by Awight:

[mediawiki/extensions/VisualEditor@master] Detect parameter placeholder

Reason:

Yeah irrelevant if the other patch is merged.

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

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

[mediawiki/extensions/VisualEditor@master] Rely on selection changed event for updating controls

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

Change 809880 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Calculate controls using sidebar selection

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

Change 809881 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Rely on selection changed event for updating controls

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

Change 809576 abandoned by WMDE-Fisch:

[mediawiki/extensions/VisualEditor@master] Disable controls when nothing is selected

Reason:

Seems like this is not needed anymore due to I684a9edf04b6615cc840bbb89e8c1d03a0ab8e94

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

Change 809972 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/VisualEditor@master] Re-add refreshControls to TwoPaneDialog

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

Change 809972 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Re-add refreshControls to TwoPaneDialog

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

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

[mediawiki/extensions/VisualEditor@master] [WIP] Reconnect "soft select" event

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

WMDE-Fisch subscribed.

Looks like the main work is done. We should deal with regressions separately.

Change 810002 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Reconnect "soft select" event

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

awight claimed this task.
awight closed subtask T311223: Fork OutlineControlsWidget as Resolved.

Change 809622 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/extensions/VisualEditor@master] Refresh controls after removing a template

Reason:

Most probably obsolete by now. T311296 is done.

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

Change 809566 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Remove unused config parameter from forked ControlsWidget

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