Skip to content

Comments

Special 'no estimates' message for meninigitis vaccines#74

Open
david-mears-2 wants to merge 7 commits intomainfrom
mrc-6891-helpful-no-estimates-messages
Open

Special 'no estimates' message for meninigitis vaccines#74
david-mears-2 wants to merge 7 commits intomainfrom
mrc-6891-helpful-no-estimates-messages

Conversation

@david-mears-2
Copy link
Contributor

@david-mears-2 david-mears-2 commented Feb 17, 2026

As discussed with Katy, it would be good to make the 'no estimates' message more helpful in the case of MenA and MenACWYX, which are both meningitis vaccines.

I welcome feedback on the phrasing: "Estimates for {{ MenA / MenACWYX }} are only available at the campaign/routine level. Try selecting ‘Split by activity type’, or view meningitis estimates (a composite of MenA and MenACWYX)."

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.66%. Comparing base (6feaa19) to head (e3e6ce7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #74   +/-   ##
=======================================
  Coverage   98.65%   98.66%           
=======================================
  Files          26       26           
  Lines         595      598    +3     
  Branches      146      148    +2     
=======================================
+ Hits          587      590    +3     
  Misses          7        7           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you also want to include a meningitis special message in the case where some focuses do show results, but one or more meningitis selection does not (in the blue alert beside the legend)?

Also - I've just spotted that if you have 2 focus selections, one of which has no data, you don't see a legend. The user can work out from context of the alert message which one isn't missing, but it might be clearer to show the with-data selection on the legend.

</p>
<FwbAlert v-else-if="noDataToDisplay" icon class="w-fit m-auto mt-10">
<span v-if="appStore.focuses.length && appStore.focuses.every(f => meningitisVaccines.includes(f)) && !appStore.splitByActivityType">
Estimates for {{ appStore.focuses.join(", ") }} are only available at the campaign/routine level.<br/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Estimates for {{ appStore.focuses.join(", ") }} are only available at the campaign/routine level.<br/>
Estimates for {{ appStore.focuses.join(", ") }} are only available at the activity type level.<br/>

Don't have strong feeling, but this change would be a little more consistent. But as it is, it gives more context.

<FwbAlert v-else-if="noDataToDisplay" icon class="w-fit m-auto mt-10">
<span v-if="appStore.focuses.length && appStore.focuses.every(f => meningitisVaccines.includes(f)) && !appStore.splitByActivityType">
Estimates for {{ appStore.focuses.join(", ") }} are only available at the campaign/routine level.<br/>
Try selecting ‘Split by activity type’, or view meningitis estimates (a composite of MenA and MenACWYX).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we upper case here, as it is in the legend and select control?

Suggested change
Try selecting ‘Split by activity type’, or view meningitis estimates (a composite of MenA and MenACWYX).
Try selecting ‘Split by activity type’, or view Meningitis estimates (a composite of MenA and MenACWYX).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thinking is that it should be upper case in the legend and select control because it's the first word in a 'sentence' or 'title'; but here, it's not the first word in a sentence or title.

I do think my brain has got polluted to always spelling diseases with capital letters, from seeing them in sentence case so often, but that's not actually normal, see e.g. https://www.nhs.uk/conditions/meningitis/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants