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(fee-breakdown): Parse and display discrete list of reductions and exemptions #4040

Merged
merged 11 commits into from
Dec 5, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Dec 4, 2024

What does this PR do?

  • Parses user's Passport for discrete list of reductions and exemptions
  • Displays these as a list to the user (currently just using raw passport vars, will map these to schema @descriptions fields)
  • Prior art feat(fee-breakdown): Parse and display reductions and exemptions #4022
    • This initial approach allowed any reduction or exemption to be captures, this current PR is stricter when it comes to these values

image

@DafyddLlyr DafyddLlyr changed the base branch from main to dp/simple-fee-breakdown December 4, 2024 16:10
@DafyddLlyr DafyddLlyr changed the title dp/discrete exemptions reductions feat(fee-breakdown): Parse and display discrete list of reductions and exemptions Dec 4, 2024
@DafyddLlyr DafyddLlyr marked this pull request as draft December 4, 2024 16:12
@DafyddLlyr DafyddLlyr force-pushed the dp/simple-fee-breakdown branch 2 times, most recently from 5569c90 to bd6ad07 Compare December 5, 2024 08:54
@DafyddLlyr DafyddLlyr force-pushed the dp/discrete-exemptions-reductions branch from a6d46c3 to 4a34dfc Compare December 5, 2024 08:56
@DafyddLlyr DafyddLlyr force-pushed the dp/discrete-exemptions-reductions branch from 4a34dfc to 84338ad Compare December 5, 2024 09:03
@DafyddLlyr DafyddLlyr marked this pull request as ready for review December 5, 2024 09:13
Copy link

github-actions bot commented Dec 5, 2024

Removed vultr server and associated DNS entries

<FeeBreakdownSection />
<GovPayMetadataSection/>
<InviteToPaySection/>
<FeeBreakdownSection/>
Copy link
Member

Choose a reason for hiding this comment

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

nit: understand this is just a linting change here, but going forward I think we'll want to re-order the Pay modal to better match the info-heirarchy of the public display? Eg should GovPayMetdataSection be last because it's "internal"/on-submit only and FeeBreakdown be before InviteToPay because a) it'll always apply and b) it's visually higher on the page than the "Invite someone else to pay" button ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great observation, will pick up this change when I come back to the styling of this component shortly 👍

/**
* Convert a Passport value to an actual boolean
*/
const toBoolean = (val: ["true" | "false"]) => val[0] === "true";
Copy link
Member

Choose a reason for hiding this comment

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

Let's make a proper lib of passport helpers in planx-core or similar one of these days 💫

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally!

@DafyddLlyr DafyddLlyr merged commit 6f7f8b6 into dp/simple-fee-breakdown Dec 5, 2024
10 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/discrete-exemptions-reductions branch December 5, 2024 13:53
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