Page MenuHomePhabricator

Should Special:EditEventRegistration show the (updated) form upon successful submission
Closed, ResolvedPublic

Description

The current behaviour of Special:EnableEditRegistration and Special:EditEditRegistration when you submit the form is that if the data is valid, you see a page that only contains a success notice:

image.png (721×1 px, 46 KB)

I'm wondering if we should also show the (updated) form below the notice. It would look something like this:

image.png (956×1 px, 92 KB)

The idea being, you're immediately able to see the updated data, and make further changes if you want to. Unsure if it's a good thing to do, though.

Event Timeline

Change #1019133 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Show the form upon successfully enabling/editing registration

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

Change #1019133 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Show the form upon successfully enabling/editing registration

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

Special:EditEventRegistrationSpecial:EnableEventRegistration
Screen Recording 2024-04-15 at 3.29.43 PM.gif (1×2 px, 1 MB)
Screen Recording 2024-04-15 at 4.14.20 PM.gif (1×2 px, 3 MB)

@Daimona this is working as stated in the Description. However, I don't think this flow makes as much sense on Special:EnableEventRegistration, because once the event is enabled, then the EnableEventRegistration form no longer works for that event. It could redirect to Special:EditEventRegistration or if we want to remain on this page after the event is enabled, then the Enable registration button should be disabled. But even this I don't think is a UX improvement on what was happening before this patch (as far as Special:EnableEventRegistration is concerned). While I do agree with the action of keeping the user on the page for EditEventRegistration, I think for EnableEventRegistration it just adds confusion.

@gonyeahialam @ifried thoughts on this?

@Daimona this is working as stated in the Description. However, I don't think this flow makes as much sense on Special:EnableEventRegistration, because once the event is enabled, then the EnableEventRegistration form no longer works for that event.

Oh yes, you're absolutely right. For some reason, the existence of Special:Enable didn't cross my mind while working on this task. I'll revert it to the old behaviour.

Change #1019945 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Do not show form on success on Special:EnableEventRegistration

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

Change #1019945 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Do not show form on success on Special:EnableEventRegistration

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

vaughnwalters renamed this task from Should Special:EnableEditRegistration and Special:EditEditRegistration show the (updated) form upon successful submission to Should Special:EditEditRegistration show the (updated) form upon successful submission.Apr 24 2024, 7:35 PM
vaughnwalters renamed this task from Should Special:EditEditRegistration show the (updated) form upon successful submission to Should Special:EditEventRegistration show the (updated) form upon successful submission.

✅ Special:EditEventRegistration now shows the updated form upon successful submission.

The behavior of Special:EnableEventRegistration remains the same as it was before this merge - it does not show the form upon successful submission.

Screen Recording 2024-04-24 at 2.33.21 PM.gif (1×1 px, 3 MB)

This is working as expected, marking as done / resolved.