Page MenuHomePhabricator

Back button in EventDetails should be hidden for participants
Closed, ResolvedPublic

Description

As an event participant, I want the 'back' link hidden on the EventDetails page, since it is currently only designed for organizers and it is a confusing user experience for participants.

Acceptance Criteria:

  • Back button in EventDetails should be hidden for participants
  • Note: We can look into this changing in the future, when participants can see the events they have participated in on the MyEvents page or another page

Event Timeline

@ifried I realized that EventDetails already has a button for going to the event page, are we OK with that? If so, I would need the label of the back button: right now it says "back to your events" but that is not suitable if we make it point to the event page.

Hmmm, good point, @Daimona! Perhaps it is better to then just hide the 'back' button for participants until we have a MyEvents page for them too?

Also pinging @gonyeahialam to see what he suggests.

Hmmm, good point, @Daimona! Perhaps it is better to then just hide the 'back' button for participants until we have a MyEvents page for them too?

Also pinging @gonyeahialam to see what he suggests.

We can change the label to Back and let it take users to their previous page

Hmmm, good point, @Daimona! Perhaps it is better to then just hide the 'back' button for participants until we have a MyEvents page for them too?

Also pinging @gonyeahialam to see what he suggests.

We can change the label to Back and let it take users to their previous page

The reason why the current label contains the destination is that there's no one "previous page". Users could get to EventDetails from MyEvents, from the EventPage, by following a link, by directly typing the URL etc. So IIRC we thought it would be confusing to have a back button that doesn't tell you what it links to.

Thanks for the suggestion, @gonyeahialam! Unfortunately, as mentioned by @Daimona, we do not know the last page visited by the user (it could be EventDetails OR MyEvents). For this reason, we cannot choose this option. Rather, we need to determine a specific page that the user is brought back to. Since we already have a link to go back to the event page via EventDetails (and the user can also go back to the event page via the 'back' link in many browsers), it may seem redundant and unnecessary for the arrow to also point back to the event page. Given this situation, what behavior do you recommend?

For the organizer, I think it still makes sense to go back to 'MyEvents.' For the participant, there is minimal value in them currently going back to 'MyEvents' or the event page. So we may want to consider removing the 'Back your events' link for participants, and only displaying the link in the future when we have a page where the participant can see all of the events they have participated in (or a page that has both events they have organized and participated in). What do you two think?

For the organizer, I think it still makes sense to go back to 'MyEvents.' For the participant, there is minimal value in them currently going back to 'MyEvents' or the event page. So we may want to consider removing the 'Back your events' link for participants, and only displaying the link in the future when we have a page where the participant can see all of the events they have participated in (or a page that has both events they have organized and participated in). What do you two think?

I agree with keeping the link to MyEvents for organizers and hiding the button for participants.

Great, I have updated the AC, @Daimona.

ifried renamed this task from Back button in EventDetails should go back to event page for participants to Back button in EventDetails should be hidden for participants.Aug 11 2022, 2:43 PM
ifried updated the task description. (Show Details)

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

[mediawiki/extensions/CampaignEvents@master] Hide back link on EventDetails for non-organizers

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

@Daimona Special:EventDetails/{id} is still displaying the Back to your events button for participants (and also for when logged out, which it should possibly not display for either?)

participants:

Screen Shot 2022-08-15 at 2.55.17 PM.png (996×2 px, 248 KB)

logged out:

Screen Shot 2022-08-15 at 2.58.03 PM.png (1×2 px, 167 KB)

@vaughnwalters The patch was not merged yet. I think the reason why this task is in QA is for you to checkout the patch locally, test it, and approve it on gerrit as per our latest discussions. Pinging @cmelo to confirm, though.

Ahh yes, you are right! It is functioning correctly on the patch branch.

organizer:

Screen Shot 2022-08-15 at 4.40.06 PM.png (516×1 px, 107 KB)

participants:

Screen Shot 2022-08-15 at 4.39.16 PM.png (986×2 px, 247 KB)

logged out:

Screen Shot 2022-08-15 at 4.42.45 PM.png (944×2 px, 246 KB)

@vaughnwalters Thanks for confirming! @cmelo What should the process be now? Is Vaughn supposed to +2, or should an engineer do that?

Change 822642 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Hide back link on EventDetails for non-organizers

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

@Daimona I can't add a +2 (I only have +1 permissions) so after I give a +1, then claudio will give a +2

The back button in EventDetails has been removed for participants (see screenshot example below). I'm marking this as Done.

Screen Shot 2022-08-30 at 12.29.54 PM.png (968×1 px, 147 KB)