Page MenuHomePhabricator

Draft: Validate event field before save and show confirmation popup if empty
Open, Needs TriagePublic

Description

Create a mechanism to validate whether the event selection field has been filled before the user saves the edit. If the field is left empty and the user is currently participating in an ongoing event, display a popup asking for confirmation.

The popup should ask the user if they are sure they are not making the edit as part of an event. It should include a checkbox:

"Do not ask me again" TBD

The validation and popup must work for both:

  • Source Editor
  • Visual Editor (VE)

The user’s choice to not be asked again should be remembered during the ongoing event.


BDD
Feature: Confirm that user wants to proceed without selecting an event

Scenario: User is participating in an ongoing event and submits edit without selecting an event
  Given the user is logged in
  And the user is participating in at least one ongoing event
  And the event selection field is empty
  When the user attempts to save the edit
  Then a popup is shown asking "Are you sure this edit is not related to an event?" TBD
  And a checkbox "Do not ask me again" TBD is shown
  And the user can choose to continue or cancel the save

Scenario: User checked "Do not ask me again" in a previous edit
  Given the user has previously checked "Do not ask me again" during an ongoing event
  When the user makes a new edit without selecting an event
  Then the popup is not shown

Event Timeline

ifried subscribed.

Moved to post-MVP since this is for associating the edit within edit dialog before publish. If we do this work later on, we will also need to update the AC.

Moved to post-MVP since this is for associating the edit within edit dialog before publish. If we do this work later on, we will also need to update the AC.