Page MenuHomePhabricator

Refactoring Nearby: Remove messageBox template partial inside Nearby
Closed, ResolvedPublic2 Estimated Story Points


The nearby View inside MobileFrontend manages a single template with 2 template partials "messageBox" and "pageList":


Removing both of these template partials will simplify the component, and help remove inheritance (and eventually the need for the nearby.hogan template entirely!).

To start with we will look at the pageList template partial.

Acceptance criteria

  • The View.prototype.postRender method is used to prepend a new MessageBox using the contents of this.options.errorMEssage to this.$el
  • WatchstarPageList.prototype.templatePartials.messageBox is no longer defined
  • The line {{#errorOptions}}{{>messageBox}}{{/errorOptions}} is removed from nearby.hogan

Event Timeline

Jdlrobson moved this task from Incoming to Upcoming on the Web-Team-Backlog board.
Jdlrobson updated the task description. (Show Details)

Change 500551 had a related patch set uploaded (by Jdrewniak; owner: Jdrewniak):
[mediawiki/extensions/MobileFrontend@master] Removes messageBox template partial from Nearby

Change 500551 merged by Jdlrobson:
[mediawiki/extensions/MobileFrontend@master] Removes messageBox template partial from Nearby