Page MenuHomePhabricator

Break up ve.ce.Surface.js by functionality
Open, MediumPublic

Description

ve.ce.Surface is a 130k beast (>4000 lines) - more than twice as long as Converter and Transaction, the next largest files. Working on it will kill your mouse wheel and sanity.

We should try and break it up by functionality, e.g.

  • Key strokes
  • Copy/paste
  • Drag/drop

Event Timeline

Esanders raised the priority of this task from to Needs Triage.
Esanders updated the task description. (Show Details)
Esanders added a project: VisualEditor.
Esanders changed Security from none to None.
Esanders subscribed.

Change 248911 merged by jenkins-bot:
Introduce key down handlers to separate logic from ce surface

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

After the above patch it dropped to 3,400 lines. Today it is 5,400 (!)

Change #1079286 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] [BREAKING CHANGE] Move paste handling code to ve.ce.PasteHandler

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

Change #1079324 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] [BREAKING CHANGE] Move selection handling code to SelectionManager

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

Change #1080733 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Move drag/drop handling code to DragDropHandler

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

Change #1079286 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] [BREAKING CHANGE] Move paste handling code to ve.ce.ClipboardHandler

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

Change #1081991 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (bae9101b7)

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

Change #1081991 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (bae9101b7)

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

Change #1079324 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] [BREAKING CHANGE] Move selection handling code to SelectionManager

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

Change #1080733 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Move drag/drop handling code to DragDropHandler

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

Change #1079329 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (69d7ca482)

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

Change #1079329 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (0e82a6db8)

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