-
Notifications
You must be signed in to change notification settings - Fork 3
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
New results #1096
New results #1096
Conversation
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great Max, well done! This was a lot of work here. I am still reviewing but the only things I am seeing now are:
- potentially padding could be larger in places? (haven't consulted the Figma designs myself). Specifically, referring to the arrows on dropdowns being close to their border and numbers in the table seem cramped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome overall, good organization of components, just left a few more comments
import { WebTranslations } from '../../i18n/web' | ||
import { MaritalStatus } from '../../utils/api/definitions/enums' | ||
import { useTranslation } from '../Hooks' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* | ||
returns benefit name with from/de and proper article. ... french nuances. | ||
*/ | ||
|
||
const openModal = (e) => { | ||
setModalPosition({ x: e.clientX, y: e.clientY }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment in the Modal component as well. Don't think tracking position is necessary.
}> = ({ partner, resultObject, resultArray, age, maritalStatus }) => { | ||
const tsln = useTranslation<WebTranslations>() | ||
const apiTrans = getTranslations(tsln._language) | ||
age = Math.round(age) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passed in props should be immutable. Instead of reassigning, should assign to a local var, "roundedAge" maybe?
|
||
const eligibleAmt = numberToStringCurrency(eligibleTotalAmount, language) | ||
|
||
const arrayofben = benefitResultArray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small comment, just for consistency: "arrayOfBen"
} | ||
|
||
//BUILD THE SUMMARY STRINGS FOR EACH BENFIT | ||
const buildSummaryString = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is a bit difficult to read with the nested ifs but should be alright. Could try to refactor with an LLM potentially?
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
Dynamic branch URL: https://app-eligibilityestimator-dev-pr-preview-0.azurewebsites.net |
closed to open new PR with dynamic link |
AB#145598 - New Results
Description
List of proposed changes:
What to test for/How to test
Additional Notes