Display 'Registration Closed' button after registration closed
Closed, ResolvedPublic

Description

Background: For V0, if registration is closed, the user doesn't see anything (such as a button that seays 'registration closed.') This could be confusing to both organizers and participants, so we should change this.

Acceptance Criteria:

  • If registration is closed, display the button
  • The button should state "Registration closed"
  • The buttons should follow the visual examples below

Visual examples:
View the complete designs on Figma here
For event page visitors who are not organizers
Registration closed:

Frame 427318290.png (132ร—1 px, 19 KB)

Event ended:

Frame 427318291.png (132ร—1 px, 18 KB)

Additional notes for QA
The fix for this bug changes the logic for showing the various buttons ("Register for event", "Manage event", "You are attending") on the event page, both in the header and the dialog. If possible, please also make sure that the correct buttons are displayed in the following cases (behaviour should match what we have on master):

  • User is blocked
  • User is the organizer
  • User is logged out
  • User is a participant
  • User is logged-in but not a participant

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJul 13 2022, 2:07 PM

@gonyeahialam: Could we get some design input on this ticket (i.e., exactly how the button should look)? Thanks in advance!

@gonyeahialam: Could we get some design input on this ticket (i.e., exactly how the button should look)? Thanks in advance!

@ifried View the complete designs on Figma here
For event page visitors who are not organizers
Registration closed:

Frame 427318290.png (132ร—1 px, 19 KB)

Event ended:

Frame 427318291.png (132ร—1 px, 18 KB)

This looks great. Thank you so much, @gonyeahialam!

Pinging engineers so they can take a look and provide any questions/comments before we move it into our sprint board: @cmelo @Daimona @MHorsey-WMF.

Pinging engineers so they can take a look and provide any questions/comments before we move it into our sprint board: @cmelo @Daimona @MHorsey-WMF.

LGTM!

ifried updated the task description. (Show Details)

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

[mediawiki/extensions/CampaignEvents@master] Expose reason why it's not possible to (un)register in commands

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

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

[mediawiki/extensions/CampaignEvents@master] Show reason why users cannot register on event page

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

Daimona updated the task description. (Show Details)

Event Ended:

Screen Shot 2022-08-23 at 2.04.35 PM.png (1ร—2 px, 187 KB)


Registration Closed:

Screen Shot 2022-08-23 at 2.05.24 PM.png (1ร—2 px, 180 KB)


User is blocked (but also was registered as a participant)

Screen Shot 2022-08-24 at 12.38.15 AM.png (1ร—2 px, 238 KB)


User is the organizer

Screen Shot 2022-08-23 at 2.09.34 PM.png (1ร—2 px, 159 KB)


User is logged out (and event is active)

Screen Shot 2022-08-23 at 3.38.15 PM.png (1ร—2 px, 216 KB)


User is a participant

Screen Shot 2022-08-23 at 3.35.49 PM.png (1ร—2 px, 177 KB)


User is logged-in but not a participant

Screen Shot 2022-08-23 at 3.36.53 PM.png (1ร—2 px, 220 KB)


All of the above are functioning as expected, but I have a question on the following.

If the user is a participant, but event has ended. Text reads You are attending!:
@Daimona, @gonyeahialam - below picture shows what displays currently when user is a participant but event has ended. Is this acceptable or is this something we should change? Should it also (or instead) say that event has ended to let the participant know it is over?

Screen Shot 2022-08-23 at 2.12.17 PM.png (1ร—2 px, 197 KB)

@vaughnwalters @Daimona

My idea for this is that it You are attending becomes You attended

Event ended for registered participant.png (132ร—1 px, 18 KB)

Also, what does it mean for a user to be blocked? How do users know they are blocked?

My idea for this is that it You are attending becomes You attended

SGTM, pinging @ifried to confirm. Also, do we want that to be its own task?

Also, what does it mean for a user to be blocked? How do users know they are blocked?

See https://www.mediawiki.org/wiki/Manual:Block_and_unblock

Change 823660 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Expose reason why it's not possible to (un)register in commands

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

Change 823754 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Show reason why users cannot register on event page

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

ldelench_wmf moved this task from V1 (MVP) to Darkship on the Campaign-Registration board.
โ€ข vyuen changed the task status from Open to In Progress.Aug 30 2022, 12:13 PM

Event Ended:

Screen Shot 2022-08-23 at 2.04.35 PM.png (1ร—2 px, 187 KB)


Registration Closed:

Screen Shot 2022-08-23 at 2.05.24 PM.png (1ร—2 px, 180 KB)


User is blocked (but also was registered as a participant)

Screen Shot 2022-08-24 at 12.38.15 AM.png (1ร—2 px, 238 KB)


User is the organizer

Screen Shot 2022-08-23 at 2.09.34 PM.png (1ร—2 px, 159 KB)


User is logged out (and event is active)

Screen Shot 2022-08-23 at 3.38.15 PM.png (1ร—2 px, 216 KB)


User is a participant

Screen Shot 2022-08-23 at 3.35.49 PM.png (1ร—2 px, 177 KB)


User is logged-in but not a participant

Screen Shot 2022-08-23 at 3.36.53 PM.png (1ร—2 px, 220 KB)


All of the above are functioning as expected, but I have a question on the following.

If the user is a participant, but event has ended. Text reads You are attending!:
@Daimona, @gonyeahialam - below picture shows what displays currently when user is a participant but event has ended. Is this acceptable or is this something we should change? Should it also (or instead) say that event has ended to let the participant know it is over?

Screen Shot 2022-08-23 at 2.12.17 PM.png (1ร—2 px, 197 KB)

@vaughnwalters how will this look for a blocked user who hasn't registered/

@gonyeahialam

Event is closed and user who has not registered is blocked locally through Special:Block

Screen Shot 2022-09-01 at 2.24.22 PM.png (1ร—3 px, 297 KB)


Event has ended and user who has not registered is blocked locally through Special:Block

Screen Shot 2022-09-01 at 2.43.35 PM.png (1ร—3 px, 285 KB)


If a user is blocked and suppressed globally through Special:CentralAuth though they can't see the event at all because they won't be able to log in.

@vaughnwalters What if the event is still open and registration ongoing what does the blocked unregistered user see?

@vaughnwalters What if the event is still open and registration ongoing what does the blocked unregistered user see?

Open event, registration ongoing, unregistered user who is blocked locally through Special:Block

Screen Shot 2022-09-02 at 11.51.15 AM.png (1ร—3 px, 1 MB)

@vaughnwalters What if the event is still open and registration ongoing what does the blocked unregistered user see?

Open event, registration ongoing, unregistered user who is blocked locally through Special:Block

Screen Shot 2022-09-02 at 11.51.15 AM.png (1ร—3 px, 1 MB)

As someone from a region that gets blocked regularly due to no fault of ours, there seems to be no way users can tell why they can't see a Register button and can assume the registration is closed. If I remember correctly, whenever a blocked person tries to perhaps edit a page they are redirected to a page that informs them they have been blocked.
Can we keep the register button and direct blocked users to a blocked info page when they click on it? cc @Daimona

As someone from a region that gets blocked regularly due to no fault of ours, there seems to be no way users can tell why they can't see a Register button and can assume the registration is closed. If I remember correctly, whenever a blocked person tries to perhaps edit a page they are redirected to a page that informs them they have been blocked.
Can we keep the register button and direct blocked users to a blocked info page when they click on it? cc @Daimona

We can probably do something similar, I was just wondering if it'd be good UX to include a CTA that is not actually usable. At any rate, it should probably be its own task because the changes needed are not trivial.

As someone from a region that gets blocked regularly due to no fault of ours, there seems to be no way users can tell why they can't see a Register button and can assume the registration is closed. If I remember correctly, whenever a blocked person tries to perhaps edit a page they are redirected to a page that informs them they have been blocked.
Can we keep the register button and direct blocked users to a blocked info page when they click on it? cc @Daimona

We can probably do something similar, I was just wondering if it'd be good UX to include a CTA that is not actually usable. At any rate, it should probably be its own task because the changes needed are not trivial.

The alternative is to put a note in the UI that the user has been blocked

Since the original work outlined in the ticket has been completed, I have opened a separate ticket T317347 to handle the blocked users' experience. @gonyeahialam are you ok with signing off on this task, and we can continue the work on handling blocked users on the new task? Thanks.

I have tested the functionality of this ticket on beta cluster and it looks good (see attached screenshot), so I'm marking it as Done.

As for T317347, we can discuss it separately in terms of priorities and next steps, but it is not high priority for V1.

Screen Shot 2022-09-20 at 10.13.17 AM.png (574ร—1 px, 88 KB)

Screen Shot 2022-09-20 at 10.14.13 AM.png (436ร—1 px, 73 KB)