Skip to content

Comments

Add banner with 'About' modal; move legend to be underneath plot#39

Merged
david-mears-2 merged 14 commits intomainfrom
mrc-6841-header
Jan 27, 2026
Merged

Add banner with 'About' modal; move legend to be underneath plot#39
david-mears-2 merged 14 commits intomainfrom
mrc-6841-header

Conversation

@david-mears-2
Copy link
Contributor

@david-mears-2 david-mears-2 commented Jan 22, 2026

Because adding the header took up vertical space, I ended up moving the legend (which can get rather long) to be a horizontal element, underneath the plot. Some of the now-empty bottom left space will be taken up when we add (focus-level) filters, and download buttons.

The big red warning sign that the estimates are PROVISIONAL will be in a different PR.

Header:

image

About modal:

(Currently the text contains caveats since the estimate data displayed is not ready)

image

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (3f31f19) to head (e2d4e1a).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   98.01%   98.08%   +0.07%     
==========================================
  Files          19       20       +1     
  Lines         453      470      +17     
  Branches      108      121      +13     
==========================================
+ Hits          444      461      +17     
  Misses          9        9              

☔ 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.

@david-mears-2 david-mears-2 requested review from EmmaLRussell and kgaythorpe and removed request for EmmaLRussell January 22, 2026 17:34
Copy link

@kgaythorpe kgaythorpe left a comment

Choose a reason for hiding this comment

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

Looks great!

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.

Banner looks good!. The layout change would look a bit neater if the legend was aligned with the left side of the plot I think. Also the "Legend" label on the left looks a bit odd - tbh I don't think it's really needed and would probably just get rid of it.

Image

I think since the text of the About box specifies that the paper isn't published yet, it would be better to have the two references to the paper "Gaythorpe et al" just be plain text for now rather than links don't work - since you'll be changing it anyway when the paper is published.

We generally do links to other domains as target="_blank" to open new tabs - I'd be inclined to do that for the gavi and vaccineimpact.org links.

id="aboutLink"
@click.prevent="aboutModalVisible = true"
href="#"
class="text-fg-brand underline"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need class underline here when you've already put text-decoration: underline; in main.css?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed not, this is a relic - now banished to the past by defining button.link in main.css

<div class="flex flex-col gap-4 max-w-100 items-end">
<!-- TODO: When paper is published, add the href. -->
<p class="text-right">This visualization tool accompanies <a href="#">Gaythorpe et al.</a></p>
<a
Copy link
Contributor

Choose a reason for hiding this comment

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

Really this ought to be a button rather than a link for accessibility - but by definition it's not a very accessible app for people with reduced vision anyway, so up to you ...
https://www.a11y-collective.com/blog/button-vs-link/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see: because it doesn't actually navigate to a different page, it should be a button. This fix is easy so I'll do it.

@david-mears-2
Copy link
Contributor Author

david-mears-2 commented Jan 26, 2026

Banner looks good!. The layout change would look a bit neater if the legend was aligned with the left side of the plot I think.

It's supposed to be horizontally centered, but your screenshot shows it not doing that, which I don't understand... rather than dig into the weeds there I will simply left-align the color legend.

@david-mears-2
Copy link
Contributor Author

david-mears-2 commented Jan 26, 2026

Also the "Legend" label on the left looks a bit odd - tbh I don't think it's really needed and would probably just get rid of it.

Yeah, this isn't needed is it. I was intending to change that text to read either 'Location' or 'Disease' (as in WIP branch #33) so I didn't delete it. But maybe even then, it's still unnecessary. Removed!

@david-mears-2
Copy link
Contributor Author

We generally do links to other domains as target="_blank" to open new tabs - I'd be inclined to do that for the gavi and vaccineimpact.org links.

👍

@david-mears-2
Copy link
Contributor Author

I think since the text of the About box specifies that the paper isn't published yet, it would be better to have the two references to the paper "Gaythorpe et al" just be plain text for now rather than links don't work - since you'll be changing it anyway when the paper is published.

👍

@david-mears-2 david-mears-2 removed the request for review from EmmaLRussell January 26, 2026 14:09
@david-mears-2
Copy link
Contributor Author

NB Since review I've added a little note of the vaxviz version to the About modal, so that we get more visibility when deploying different versions.

New version number is 0.1.0 and I'll use 1.x.x once we are officially public with the app.

image

@david-mears-2 david-mears-2 merged commit 386d5af into main Jan 27, 2026
4 checks passed
@david-mears-2 david-mears-2 deleted the mrc-6841-header branch January 27, 2026 12:38
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.

3 participants