-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(j-s): Text and handling of modal on subpoena screen #16057
Conversation
WalkthroughThe pull request introduces updates to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16057 +/- ##
==========================================
+ Coverage 36.66% 36.67% +0.01%
==========================================
Files 6748 6737 -11
Lines 138729 138464 -265
Branches 39404 39382 -22
==========================================
- Hits 50862 50781 -81
+ Misses 87867 87683 -184 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 43 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Actionable comments posted: 3
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.strings.ts (1 hunks)
- apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.tsx (3 hunks)
Additional context used
Path-based instructions (2)
apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.strings.ts (1)
Pattern
apps/**/*
: "Confirm that the code adheres to the following:
- NextJS best practices, including file structure, API routes, and static generation methods.
- Efficient state management and server-side rendering techniques.
- Optimal use of TypeScript for component and utility type safety."
apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.tsx (1)
Pattern
apps/**/*
: "Confirm that the code adheres to the following:
- NextJS best practices, including file structure, API routes, and static generation methods.
- Efficient state management and server-side rendering techniques.
- Optimal use of TypeScript for component and utility type safety."
Additional comments not posted (6)
apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.strings.ts (2)
27-32
: LGTMThe addition of
modalText
provides clearer communication in the modal dialog. The identifier and default message are well-defined, enhancing user experience by making the actions more understandable.
39-44
: LGTMThe introduction of
modalSecondaryButtonText
is appropriate and enhances the modal's functionality by providing a clear option to cancel the action. The identifiers and default messages are consistent and well-defined.apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.tsx (4)
84-89
: LGTMThe use of
Promise.all
to handle multiple asynchronous operations ensures that all necessary updates are completed before navigation occurs. The error handling appropriately checks for any failed promises and prevents navigation if any operation fails.
94-99
: Verify Dependency Array CompletenessIn the
handleNavigationTo
useCallback
, ensure that all dependencies used within the function are included in the dependency array. It appears that all relevant dependencies are present, which helps prevent unnecessary re-renders and maintains optimal performance.
172-176
: LGTMThe navigation logic has been correctly adjusted to account for the arraignment status. Navigating directly when the arraignment is done enhances user experience by streamlining the workflow.
188-197
: Ensure Consistency in Modal ConfigurationThe
Modal
component is correctly configured with the updated string identifiers and event handlers. The use offormatMessage
with the new identifiers aligns with internationalization best practices. Confirm that thehandleNavigationTo
andsetNavigateTo
functions effectively manage the navigation flow as intended.
apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.strings.ts
Show resolved
Hide resolved
apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.strings.ts
Show resolved
Hide resolved
apps/judicial-system/web/src/routes/Court/Indictments/Subpoena/Subpoena.tsx
Outdated
Show resolved
Hide resolved
Datadog ReportAll test runs ✅ 34 Total Test Services: 0 Failed, 33 Passed Test ServicesThis report shows up to 10 services
🔻 Code Coverage Decreases vs Default Branch (1)
|
Fyrirkall módall - uppfærður texti
What
Changed text in subpoena modal and changed handling of update and notification
Why
So that we don't send the update until the user has acknowledged that he wants to send a subpoena to the defendant
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Refactor