Skip to content

Client feedback changes#121

Open
jenbreese wants to merge 3 commits into
1.xfrom
present-val-v2
Open

Client feedback changes#121
jenbreese wants to merge 3 commits into
1.xfrom
present-val-v2

Conversation

@jenbreese

@jenbreese jenbreese commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

READY FOR REVIEW

Summary

  • Feedback from client from spreedsheet

Review By (Date)

  • asap

Criticality

  • High

Review Tasks

Setup tasks and/or behavior to test

  1. Check out this branch
  2. Navigate to the spreadsheet
  3. Navigate to the Present Value v2 calculator
  4. Verify fixes.

Front End Validation

  • Is the markup using the appropriate semantic tags and passes HTML validation?
  • Cross-browser testing has been performed?
  • Automated accessibility scans performed?
  • Manual accessibility tests performed?
  • Design is approved by @ user?

Backend / Functional Validation

Code

  • Are the naming conventions following our standards?
  • Does the code have sufficient inline comments?
  • Is there anything in this code that would be hidden or hard to discover through the UI?
  • Are there any code smells?
  • Are tests provided? eg (unit, behat, or codeception)

Code security

General

  • Is there anything included in this PR that is not related to the problem it is trying to solve?
  • Is the approach to the problem appropriate?

Affected Projects or Products

  • Does this PR impact any particular projects, products, or modules?

Associated Issues and/or People

  • JIRA ticket(s)
  • Other PRs
  • Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
  • Anyone who should be notified? (@mention them here)

Resources

@imonroe imonroe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A few little things to check, otherwise looks good to me.

}}
className={`border-1 w-full rounded-md shadow-sm py-2 px-3 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none ${interestRateError ? "border-[var(--color-inline-error)] border-2" : ""}`}
min={0}
max={100}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
max={100}
max={1000}

Shouldn't this be 1000 per the spreadsheet?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sorry @imonroe There was a comment in the spreadsheet: " Sorry I should have updated this feild -- In the google doc with the errors & warning states for this calcualtor we have entered a range of 0 - 1,000. That way users can't keep entering things in forever "

}}
className={`border-1 w-full rounded-md shadow-sm py-2 px-3 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none ${paymentInterestRateError ? "border-[var(--color-inline-error)] border-2" : ""}`}
min={0}
max={100}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
max={100}
max={1000}

const val = Number(raw);
if (val > 1000) {
setPaymentInterestRateError(
"Annual interest rate cannot exceed 100%.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"Annual interest rate cannot exceed 100%.",
"Annual interest rate cannot exceed 1000%.",

min={1}
min={0}
max={1000}
step={1}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
step={1}
step="any"

or maybe `step={.01}

min={1}
min={0}
max={1000}
step={1}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
step={1}
step="any"

or step={.01}

role="tooltip"
className="absolute left-1/2 -translate-x-1/2 bottom-full mb-2 w-56 rounded-md bg-[var(--info-popup-background)] border-1 border-grey-border text-xs p-4 invisible group-hover:visible group-focus-within:visible opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity pointer-events-none z-10"
>
A lump sum recieved or paid at the end of the payment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
A lump sum recieved or paid at the end of the payment
A lump sum received or paid at the end of the payment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixed

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