Page MenuHomePhabricator

Draft: Show modal before saving if an event was selected during ongoing event participation
Open, Needs TriagePublic

Description

Implement a modal confirmation step when the user has selected an event in the event field during an ongoing event. This modal should appear right before saving the edit, confirming the user’s intent to associate the edit with that event.

The modal must contain:

  • A message such as: "You are about to associate this edit with the event: [event name]" TBD
  • A checkbox: "Do not ask me again" TBD
  • A button to proceed and a button to cancel

This behavior must be implemented for both:

  • Source Editor
  • Visual Editor (VE)

The user’s choice to skip the modal in future edits during the same event should be persisted (see related task for persistence handling).


BDD

gherkin
Feature: Confirm event association before saving when an event is selected

  Scenario: User selects an event and submits the edit during an ongoing event
    Given the user is logged in
    And the user is participating in an ongoing event
    And the user has selected an event in the event field
    When the user clicks save
    Then a modal is shown stating "You are about to associate this edit with the event: [event name]" TBD
    And the modal has a checkbox "Do not ask me again" TBD
    And the modal has options to proceed or cancel

  Scenario: User checks "Do not ask me again" in the modal
    Given the user is participating in the same ongoing event
    And the user previously checked "Do not ask me again"
    When the user makes another edit with the same event selected
    Then the modal is not shown again