-
Notifications
You must be signed in to change notification settings - Fork 57
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(driving-license): disabled BE for 65 and older #15873
Conversation
WalkthroughThe change introduces an additional condition to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Application
User->>Application: Initiate application
Application->>User: Check age and license categories
alt Age < 18 or Age >= 65 or License not valid
Application-->>User: Disable application
else Age >= 18 and Age < 65 and License valid
Application-->>User: Allow application
end
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 #15873 +/- ##
=======================================
Coverage 36.93% 36.94%
=======================================
Files 6681 6681
Lines 136456 136439 -17
Branches 38746 38738 -8
=======================================
Hits 50401 50401
+ Misses 86055 86038 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file 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: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts (1 hunks)
Additional context used
Path-based instructions (1)
libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts (1)
Pattern
libs/**/*
: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exporting types.
- Effective tree-shaking and bundling practices."
Additional comments not posted (2)
libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts (2)
87-87
: LGTM!The code change is approved.
Line range hint
1-1
: Adheres to the additional instructions for files in thelibs
directory.The file:
- Exports a reusable
sectionApplicationFor
function that can be used across different driving license application forms.- Uses TypeScript for defining the
DrivingLicense
andDrivingLicenseFakeData
types and exporting thesectionApplicationFor
function.- Imports only the necessary dependencies, which helps with effective tree-shaking and bundling.
Datadog ReportAll test runs ✅ 5 Total Test Services: 0 Failed, 5 Passed Test Services
|
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Checklist:
Summary by CodeRabbit