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: Display Pay component when fee is zero #4067

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

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Dec 11, 2024

What does this PR do?

  • Refactors Confirm component to more explicitly handle various states
    • Before this PR, the logic for information only, pay, and invite to pay was quite tricky to manage and understand - adding a "zero fee" option into the mix would add to this confusion.
  • Renders Confirm in instances where fee is £0

There's still scope here for a content pass through which I'm going to address once this feature is technically complete (e.g. the title "pay for your application" is not very meaningful when we know the fee is £0.)

Copy link

github-actions bot commented Dec 11, 2024

Pizza

Deployed 7283023 to https://4067.planx.pizza.

Useful links:

@DafyddLlyr DafyddLlyr force-pushed the dp/display-zero-fees branch 3 times, most recently from e9c66f3 to d09dbc0 Compare December 12, 2024 09:48
@DafyddLlyr DafyddLlyr requested a review from a team December 13, 2024 10:56
@DafyddLlyr DafyddLlyr marked this pull request as ready for review December 13, 2024 10:56
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Overall all working as expected & now displaying when fee = 0 ✔️

Spent quite a bit of time on the pizza and a few minor nit pick comments that I don't believe are introduced here:

  • Should we capitalize the first letter of the type of reduction or exemption for consistency? (in interim until fetching from schema @description?)
  • I was surprised to get this breakdown (reductions "-129", exemptions "-0") with this passport - I would expect no line item for reductions, and "-129" for exemptions?
    Screenshot from 2024-12-16 10-43-12
    Screenshot from 2024-12-16 10-43-49

Was testing on this flow: https://4067.planx.pizza/barnet/pay-testing

@DafyddLlyr DafyddLlyr marked this pull request as draft December 18, 2024 16:50
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