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

Production tickets for the week of 12-5-22 #2117

Merged
merged 12 commits into from
Dec 12, 2022
Merged

Conversation

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

🚢 Here is the frontend staging link: 🚢
Find it here: https://screeningtool-staging.geoplatform.gov/2117-8f3bb4/en/ !

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

** 👋 Attention translators!! 👋 **
Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/8f3bb4a446ba2320a25bdd24b13b5ca613c22dfe/client/src/intl/en.json

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

🚢 Here is the frontend staging link: 🚢
Find it here: https://screeningtool-staging.geoplatform.gov/2117-34ae2b/en/ !

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

** 👋 Attention translators!! 👋 **
Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/34ae2ba87c7ca409e8954cc9aac9fbca55b0d172/client/src/intl/en.json

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

🚢 Here is the frontend staging link: 🚢
Find it here: https://screeningtool-staging.geoplatform.gov/2117-d1ba3d/en/ !

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

** 👋 Attention translators!! 👋 **
Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/d1ba3dbaa278a8398460a76c6d3ef73d21845dd2/client/src/intl/en.json

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

🚢 Here is the frontend staging link: 🚢
Find it here: https://screeningtool-staging.geoplatform.gov/2117-c137b5/en/ !

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

** 👋 Attention translators!! 👋 **
Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/c137b502d18171b59541e1a20df017e036a97fcf/client/src/intl/en.json

- update snapshots
- closes #2096
- closes #2102
- updates snapshots
@vim-usds vim-usds changed the title Vimusds/update low inc copy Production tickets for the week of 12-5-22 Dec 6, 2022
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

🚢 Here is the frontend staging link: 🚢
Find it here: https://screeningtool-staging.geoplatform.gov/2117-93f9a9/en/ !

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

** 👋 Attention translators!! 👋 **
Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/93f9a90aeb26d3710e83f3b5d110f35b42d74a4f/client/src/intl/en.json

Copy link
Contributor

@mattbowen-usds mattbowen-usds left a comment

Choose a reason for hiding this comment

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

A couple questions! I wouldn't block merging on any of them.

@@ -40,7 +40,7 @@ const PublicEngagementPage = ({location}: IPublicEngagementPageProps) => {
</p>
</Grid>
<Grid desktop={{col: 4}}>
{/* <PublicVideoBox isBeta={false}/> */}
<PublicVideoBox isBeta={false} youTubeLink='https://www.youtube.com/watch?v=XwilQp3EXRQ'/>
Copy link
Contributor

Choose a reason for hiding this comment

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

A question: Why do you sometimes encode the links directly in the page and sometimes reference them from vars? Is it if the link appears on more than one page>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generally speaking, if all instantiations of a component will render the same way, then the contents (links in this case) can be placed in the component itself. In cases where the instantiation of a component should render differently (in this case the youTubeLinks), then one way to capture those differences is to use props (what you may be referring to as vars).

Does that answer the question?

Also totally open to hearing other ideas on this :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Was honestly purely curious.


</p>
</div>
<div
class="desktop:grid-col-4"
data-testid="grid"
/>
>
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason you build your own summary box and didn't use the trussworks one? I say this as a person who just basically did same because I don't like the UX of using the trussworks ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I did use Trusswork's SummaryBox components to build a wrapper component called PublicVideoBox. The PublicVideoBox component uses Trusswork's SummaryBox under the hood and allows me to re-use this wrapper. Since the design required two summary boxes that look very similar (except styling and content differences), the wrapper component was created to allow both instances met with a single component.

This is also part of a larger goal of mine to be able to create more versatile components.

Did that answer the question?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh I looked at the wrong file, so I saw the markup. Thank you for the thorough answer.

}
// if 3
// if 3-1
} else if (
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand why you need both of these two new elifs, since >=0 is also ==0, and tehy both call the same copy? Maybe I'm misreading one of the variables tho --- is it to handle percentTractTribal sometimes being a number? If so, would it maybe be simpler to just have the >= version and explicitly cast with Number(percentTractTribal) since that'll work if percentTractTribal is a number or a string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch @mattbowen-usds !! That should be >= 1!!

Fixing now!

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

🚢 Here is the frontend staging link: 🚢
Find it here: https://screeningtool-staging.geoplatform.gov/2117-bd55ca/en/ !

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

** 👋 Attention translators!! 👋 **
Copy changes have resulted in a new en.json file. Please download en.json file and send to translators: https://github.com/usds/justice40-tool/blob/bd55ca6369628052d54ee73dc6b1fa023b612e08/client/src/intl/en.json

@KameronKerger
Copy link
Contributor

QA pass

@vim-usds vim-usds merged commit c5b201e into main Dec 12, 2022
@vim-usds vim-usds deleted the vimusds/update-low-inc-copy branch December 12, 2022 17:51
@github-actions
Copy link

🚢 PR Deployed! 🚢
Find it here: https://screeningtool.geoplatform.gov !

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