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

10339 story #5246

Merged
merged 119 commits into from
Sep 12, 2024
Merged

10339 story #5246

merged 119 commits into from
Sep 12, 2024

Conversation

TomElliottFlexion
Copy link
Contributor

No description provided.

nechama-krigsman and others added 30 commits August 6, 2024 00:22
…ail fields for petitioner and spouse on generated petition; format contact info on generated petition;
@nechama-krigsman nechama-krigsman marked this pull request as ready for review September 10, 2024 19:03
@nechama-krigsman nechama-krigsman changed the title 10339 story draft 10339 story Sep 11, 2024
@@ -25,7 +25,7 @@ describe('File a petition', () => {
});
});

it('should display a validaiton error message if user does not select filing type', () => {
it('should display a validation error message if user does not select filing type', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TY!!

@@ -2395,3 +2395,16 @@ button.change-scanner-button {
.no-wrap-white-space {
white-space: normal;
}

.align-items-center {
align-items: center;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍👍👍

Copy link
Contributor Author

@TomElliottFlexion TomElliottFlexion left a comment

Choose a reason for hiding this comment

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

Nice job Nechama!

filingOptions: { label: string; value: string }[];
getLetterByIndex: (index: number) => string;
isPetitioner: boolean;
isPractitioner: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible for for both isPetitioner and isPractitioner to both be true (or both be false)? If not, would it be better to just have one of these vars?

Copy link
Contributor

Choose a reason for hiding this comment

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

It’s not possible for both isPetitioner and isPractitioner to be true or both false at the same time, so we could simplify this by having just one property and negating it when necessary. Originally, I used both properties for readability, but I do see that we are negating in some places. Are you okay with this change going in a followup PR along with the cleanup?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks Nechama, yeah I think a followup PR is fine.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh and I do like the readability argument, my only concern is us winding in a situation where we wind up in an invalid state. If practical, I think it would be fine to have both props, but have one be a computed prop that is the negation of the other.

};
};

const messages = {
[ROLES.privatePractitioner]: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

TIL about computed property names. Neat!

@jimlerza jimlerza merged commit 9993fc4 into ustaxcourt:staging Sep 12, 2024
44 checks passed
@jimlerza jimlerza deleted the 10339-story branch September 12, 2024 19:28
@jimlerza jimlerza mentioned this pull request Sep 13, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants