Page MenuHomePhabricator

Structured task: update the editing surface without reloading the page upon saving
Open, Needs TriagePublic

Description

With T219420: Update page dynamically after save on mobile, the page will be dynamically updated after saving an edit on both desktop and mobile.

Currently for structured tasks, the page is reloaded upon saving (both null and non-null edits) in order to replace StructuredTaskArticleTarget is with regular ArticleTarget (upon initializing the article target, we deregister all the tools and keyboard shortcuts that are not needed for machine suggestions mode).

The current workflow is:

  1. User saves a structured task edit
  2. The page is reloaded upon save completion.
  3. The post-edit dialog is shown.
  4. When the user edits the same article again, regular VE should be shown.

The new workflow would be:

  1. User saves a structured task edit
  2. Page is updated dynamically with the edit
  3. The post-edit dialog is shown.
  4. When the user edits the same article again, regular VE should be shown.

Event Timeline

kostajh subscribed.

Is there an easy way to re-register the tools and use regular ArticleTarget? It seems like this would be a fair amount of work.