Page MenuHomePhabricator

Participant side: Implement support for private registration UI in registration modal
Closed, ResolvedPublic3 Estimated Story Points

Description

NOTE: This ticket does NOT include any interactions for the participant to switch between public and private registration. It is read-only. We will handle switching between registration status separately.

Acceptance Criteria:

*Given a participant registers publicly

  • When viewing the participant list as any user
  • Then their username should be displayed to everyone
  • And they should be included in the registered users count
  • And they should not be included in the privately registered users count
  • Given that there are privately registered participants
    • When viewing the participant list as any user
    • Then the private registrations should be included in the registered users count
    • And they should be included in the privately registered users count
  • When there is at least 1 registered participant (whether the list is truncated or not truncated)
    • Then the count of private registrations is shown
  • When viewing the participant list as non-organizer
    • Then the general private registrations should not be visible
  • When viewing the participant list as a privately registered participant
    • Then their username is visible with the padlock icon
    • And no other private participants are displayed.

Visual examples:

Participant view

Participant view (1).png (902ร—760 px, 100 KB)

Note: The final appearance of the dialog footer is being decided on T319454

Event Timeline

ifried renamed this task from Participant side [placeholder] to Participant side: Implement support for private registration UI in registration modal.Oct 6 2022, 7:28 PM
ifried updated the task description. (Show Details)

@gonyeahialam Do you have an example of how this will look from the participant side that we can use as a visual example?

Given T319452, can this task be rescoped, clarified, or closed as duplicate? I think it might be easier to implement both options at the same time, and even if not, I'm not sure if this would be a 3-pointer assuming that T319452 will be completed first.

Change 858357 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] Implement support for private registration UI in registration modal

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

Change 858357 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Implement support for private registration UI in registration modal

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

ifried updated the task description. (Show Details)
vaughnwalters added a subscriber: vaughnwalters.

*Given a participant registers publicly

When viewing the participant list as any user
โœ… Then their username should be displayed to everyone
โœ… And they should be included in the registered users count
โœ… And they should not be included in the privately registered users count
Viewing as logged out user:

Screen Shot 2022-11-29 at 2.19.53 PM.png (1ร—1 px, 149 KB)

Viewing as publicly registered participant Vdubs81:

Screen Shot 2022-11-29 at 1.02.31 PM.png (1ร—1 px, 127 KB)


Given that there are privately registered participants
When viewing the participant list as any user
โœ… Then the private registrations should be included in the registered users count
โœ… And they should be included in the privately registered users count

Viewing as logged out user:

Screen Shot 2022-11-29 at 11.38.36 AM.png (732ร—796 px, 43 KB)

Viewing as participant:

Screen Shot 2022-11-29 at 2.21.30 PM.png (1ร—1 px, 175 KB)


When there is at least 1 registered participant (whether the list is truncated or not truncated)
โœ… Then the count of private registrations is shown
@MHorsey-WMF I Created T324039 because count of private registrations is not showing when list is truncated and user is logged out. Count of private registrations shows in all other cases, so I am marking this AC as complete, since there is now a ticket to deal with that issue.

When viewing the participant list as non-organizer
โœ… Then the general private registrations should not be visible

Screen Shot 2022-11-29 at 2.03.45 PM.png (1ร—1 px, 145 KB)


When viewing the participant list as a privately registered participant
โœ… Then their username is visible with the padlock icon
โœ… And no other private participants are displayed.

Screen Shot 2022-11-29 at 1.07.00 PM.png (1ร—1 px, 170 KB)

Screen Shot 2022-11-29 at 1.05.21 PM.png (1ร—1 px, 127 KB)

The participant side of the event registration modal now has support for private registration, so I'm marking this work as Done.