Page MenuHomePhabricator

Add empty states for Response Statistics tab
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

Participant responses are not aggregated immediately after the event ends, it may take a while.
We need a message to show to organisers on the Response statistics tab between when the event ends and when the responses have been aggregated.

Scenarios

Here's a breakdown of all the possible scenarios and different empty states depending on when the organizer opens the tab, and how many participants/answers there are.

participants \ time< event endEvent end < x < aggregation> aggregation
0 participantsTab is not displayedTab displays: "This event has no responses from participants to aggregate"← same
> 0 participants, 0 answersTab is not displayedTab displays: "This event has no responses from participants to aggregate← same
> 0 answersTab is not displayedShow tab with "Participants’ responses will be aggregated and made available here shortly." message as in the image belowShow all questions, and aggregates when available. This will be done in T336855, and not in this task.

A few notes:

  • A tab should be created, but it shouldn't be displayed before the event has ended. We may revisit this in the future.
  • The first two rows are actually handled the same way, as we only check the number of answers, not the number of participants.
Design

Design specs

Event Dashboard - Participants (3).png (900Γ—1 px, 38 KB)

Event Timeline

@Daimona We discussed in an earlier meeting about having an interim message that shows when the event has ended but the data hasn't been aggregated but you mention here T339978#8988216 that the tab only shows when the responses are aggregated. If the tab isn't available until the data is aggregated wouldn't there would be no need for an interim message?

@Daimona We discussed in an earlier meeting about having an interim message that shows when the event has ended but the data hasn't been aggregated but you mention here T339978#8988216 that the tab only shows when the responses are aggregated. If the tab isn't available until the data is aggregated wouldn't there would be no need for an interim message?

No, in T339978#8988216 I said that the tab is shown when the event ends, not when answers are aggregated. So we would still need an interim message.

No, in T339978#8988216 I said that the tab is shown when the event ends, not when answers are aggregated. So we would still need an interim message.

Okay, thank you.

Daimona updated the task description. (Show Details)

Since the first two scenarios below are not dependent on each question but rather a general scenario there is no need to show each question and then show the same empty state under each of them. The questions shouldn't show at all just the empty state message:

participants \ time< event endEvent end < x < aggregation> aggregation
0 participantsTab is not displayedTab displays: "This event has no responses from participants to aggregate"← same
> 0 participants, 0 answersTab is not displayedTab displays: "This event has no responses from participants to aggregate← same
> 0 answersTab is not displayedShow tab with "Participants’ responses will be aggregated and made available here shortly." message as in the image belowShow all questions, and aggregates when available. This will be done in T336855, and not in this task.

Since the first two scenarios below are not dependent on each question but rather a general scenario there is no need to show each question and then show the same empty state under each of them. The questions shouldn't show at all just the empty state message

Indeed, this is what we decided. I just realized that the table, which I copy-pasted from a document, had been updated to say "show all questions" in those two cells. Let me update the task description.

ifried set the point value for this task to 3.Aug 24 2023, 2:27 PM

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

[mediawiki/extensions/CampaignEvents@master] Add stats tab with empty states to EventDetails

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

Change 952860 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add stats tab with empty states to EventDetails

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

vaughnwalters added a subscriber: vaughnwalters.
participants \ time< event endEvent end < x < aggregation> aggregation
0 participantsβœ… Tab is not displayedβœ…
Screenshot 2023-09-01 at 4.06.00 PM.png (504Γ—1 px, 55 KB)
βœ…
Screenshot 2023-09-01 at 4.13.24 PM.png (476Γ—1 px, 53 KB)
> 0 participants, 0 answersβœ… Tab is not displayedβœ…
Screenshot 2023-09-01 at 4.06.31 PM.png (514Γ—1 px, 54 KB)
βœ…
Screenshot 2023-09-01 at 4.13.39 PM.png (472Γ—1 px, 53 KB)
> 0 answersβœ… Tab is not displayedβœ…
Screenshot 2023-09-01 at 4.06.58 PM.png (528Γ—1 px, 59 KB)
This will be done in T336855, and not in this task.
Screenshot 2023-09-01 at 4.12.43 PM.png (480Γ—1 px, 46 KB)

This looks good, I am moving this to design sign off.

ifried added a subscriber: ifried.

Looks good, as the only thing that seemed "off" to me will actually be handled in a separate task (T336855). I'm marking this ticket as Done.