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

Region Page Shipment Totals & Formatting #65

Merged
merged 3 commits into from
Oct 21, 2021

Conversation

hola-soy-milk
Copy link
Collaborator

@hola-soy-milk hola-soy-milk commented Oct 21, 2021

Related to #24, was originally PR #26, which we've rebased to avoid conflicts

Progress:

@ghost
Copy link

ghost commented Oct 21, 2021

Changes to your CodeSee Architecture Map:

View a CodeSee Map of these changes

View this PR diagram as an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

@hola-soy-milk hola-soy-milk changed the title Feature/24 region page shipment totals rebase Region Page Shipment Totals & Formatting Oct 21, 2021
@hola-soy-milk hola-soy-milk added enhancement New feature or request hacktoberfest-accepted Hacktober Fest PR Accepted labels Oct 21, 2021
@@ -41,6 +53,25 @@ const RegionPageTemplate: FunctionComponent<Props> = ({ data }) => {
[],
)

const totals: Totals = allShipments.reduce(
Copy link
Contributor

Choose a reason for hiding this comment

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

Future: Would be good to refactor this into a utility function so we can consistently calculate totals across multiple shipments anywhere in the codebase.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well put, thanks for the feedback!

@hola-soy-milk
Copy link
Collaborator Author

@jtfairbank jtfairbank merged commit 4961766 into saga Oct 21, 2021
@jtfairbank jtfairbank deleted the feature/24-region-page-shipment-totals-rebase branch October 21, 2021 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest-accepted Hacktober Fest PR Accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants