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

10489: Status Order Report Enhancements #5600

Merged
merged 18 commits into from
Dec 23, 2024

Conversation

nechama-krigsman
Copy link
Contributor

@nechama-krigsman nechama-krigsman commented Nov 27, 2024

@TomElliottFlexion TomElliottFlexion marked this pull request as ready for review December 11, 2024 18:03
…her than unused signedByUserId; updated cypress integration test to check for chambers user edge case
Comment on lines 139 to 141
judgeFullName: 'John O. Colvin',
name: 'Colvin',
userId: '4497d22-0874-4c5e-ac98-a843d1472baf',
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and below, can we get this data from the judgeColvin user in mockUsers.ts?

documentMetadata.eventCode = 'OJR';
}

if (['O', 'NOT', 'OJR'].includes(documentMetadata.eventCode)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be worth pulling these event codes out into a self-documenting constant like eventCodesThatAllowFreeText? (There is probably a better name, but you get the idea!)

draftOrderState: {},
dueDate: '2024-11-05',
eventCode: 'O',
orderType: 'statusReport',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use constants when possible in this file? E.g., here: STATUS_REPORT_ORDER_OPTIONS.orderTypeOptions.statusReport

Copy link
Contributor

@Mwindo Mwindo Dec 17, 2024

Choose a reason for hiding this comment

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

Anywhere we have 'statusReport', 'statusReportStipulatedDecision', 'retained', or 'restoredToGeneralDocket', we should be able to use the STATUS_REPORT_ORDER_OPTIONS object.

cy.get('#tab-drafts').click();
getLastDraftOrderElementFromDrafts().click();
cy.get('[data-testid="add-court-issued-docket-entry-button"]').click();
cy.get('.select-react-element__control').should('have.text', 'Order');
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's try avoiding third-party library selectors. I think we can just do #document-type here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same thing anyplace we use this selector below.

Copy link
Contributor

@Mwindo Mwindo left a comment

Choose a reason for hiding this comment

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

I left a few comments upon which my approval is contingent, but generally looks good! Thanks @nechama-krigsman and @btejha!

@jimlerza jimlerza merged commit 2486532 into ustaxcourt:staging Dec 23, 2024
44 checks passed
@jimlerza jimlerza mentioned this pull request Jan 3, 2025
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.

5 participants