Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add testing coldspot page #223

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft

feat: add testing coldspot page #223

wants to merge 14 commits into from

Conversation

s-bessey
Copy link
Collaborator

No description provided.

@s-bessey s-bessey changed the title refactor: allow swapping between rate and pct in gapbyrace feat: add testing coldspot page Sep 25, 2023
@github-actions
Copy link

github-actions bot commented Sep 25, 2023

Visit the preview URL for this PR (updated for commit a1adc6a):

https://signal-ri--pr223-testing-coldspot-ourk1o27.web.app

(expires Thu, 01 Feb 2024 17:42:15 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 00e607c4a7f37e76a51e675795a92e0f2f741992

Copy link
Collaborator

@eldu eldu left a comment

Choose a reason for hiding this comment

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

Something weird with the gap chart

Screen.Recording.2023-09-26.at.10.52.29.AM.mov

And then something is broken with the zooming
Screenshot 2023-09-26 at 10 54 54 AM

<template>
<DashboardCard width="full">
<template #subtitle>
TThis tool shows us places where fewer people were tested for COVID-19
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noticed this typo but I assume that we're not really taking a look at this this go around though

Suggested change
TThis tool shows us places where fewer people were tested for COVID-19
This tool shows us places where fewer people were tested for COVID-19

Copy link
Collaborator

@anna-murphy anna-murphy left a comment

Choose a reason for hiding this comment

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

This is looking good! A few things that I noticed when I was looking at the site and not the code:

The "How do we reach people" Card

The spacing on this card is a little odd... Because the title goes across the width of the card, the table feels like it should be vertically centered when it isn't. This might be out of scope for this PR, but I just noticed it.

how do we reach people card with highlighed sections

The Gap Chart Hover Highlight

This also might be out of scope for this PR but the highlighting is weird... Admittedly, this might be my fault but it feels odd that the whole bar isn't highlighting?

test-gap-chart-color

Comment on lines 184 to 199
// {
// type: "text",
// from: { data: "bars" },
// encode: {
// enter: {
// x: { field: "x2", offset: -5 },
// y: { field: "y", offset: { field: "height", mult: 0.5 } },
// fill: { value: "#FFFFFF" },
// align: { value: "right" },
// baseline: { value: "middle" },
// // text: {
// // signal: "format(datum.datum.rate, '.0d')",
// // },
// },
// },
// },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you need to keep this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was just waiting for feedback on it, but I think not

Comment on lines 63 to 66
export const formatUsString = new Intl.NumberFormat("en-US", {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a little bit of a nitpick, but I wonder if this would be better written as a function? In all the other files you're calling formatUsString.format() which is fine, but it could be cleaner if you wrote it like this I think:

Suggested change
export const formatUsString = new Intl.NumberFormat("en-US", {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
});
export const USStringFormat = new Intl.NumberFormat("en-US", {
minimumFractionDigits: 0,
maximumFractionDigits: 0,
});
export function formatUsString(usString) {
return USStringFormat.format(usString);
}

This way, you have the format defined by Intl and a small wrapper to format rates that you can use without needing to remember that you need to call .format(). How does that feel?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

YES THANK YOU

@s-bessey s-bessey linked an issue Sep 28, 2023 that may be closed by this pull request
@maxwellkrieger
Copy link
Member

Data expected this April 2024 @s-bessey

@eldu eldu mentioned this pull request Apr 18, 2024
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.

Testing gaps
4 participants