-
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(inheritance-report): EFS fixes 6/06 #15132
Conversation
WalkthroughThe recent changes focus on enhancing the inheritance report template by making the Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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
Outside diff range and nitpick comments (1)
libs/application/templates/inheritance-report/src/lib/dataSchema.ts (1)
Line range hint
529-529
: Simplify the conditional expression by directly assigning the result without using a ternary operator.- return nationalId !== '' ? true : false + return nationalId !== ''
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (4)
- libs/application/templates/inheritance-report/src/forms/sections/assets.ts (1 hunks)
- libs/application/templates/inheritance-report/src/forms/sections/deceased.ts (3 hunks)
- libs/application/templates/inheritance-report/src/lib/dataSchema.ts (1 hunks)
- libs/application/templates/inheritance-report/src/lib/messages.ts (2 hunks)
Additional context used
Path-based instructions (4)
libs/application/templates/inheritance-report/src/forms/sections/deceased.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."
libs/application/templates/inheritance-report/src/lib/dataSchema.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."
libs/application/templates/inheritance-report/src/forms/sections/assets.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."
libs/application/templates/inheritance-report/src/lib/messages.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."
Biome
libs/application/templates/inheritance-report/src/lib/dataSchema.ts
[error] 529-529: Unnecessary use of boolean literals in conditional expression. (lint/complexity/noUselessTernary)
Simplify your code by directly assigning the result without using a ternary operator.
If your goal is negation, you may use the logical NOT (!) or double NOT (!!) operator for clearer and concise code.
Check for more details about NOT operator.
Unsafe fix: Remove the conditional expression with
Additional comments not posted (6)
libs/application/templates/inheritance-report/src/forms/sections/deceased.ts (2)
101-101
: Reordering of options inbuildRadioField
forhasCustomSpouseSharePercentage
enhances user experience by aligning with common patterns (No/Yes).
118-136
: Addition ofbuildDescriptionField
for spacing and re-addition ofbuildRadioField
fordeceasedHadAssets
improves form structure and clarity.libs/application/templates/inheritance-report/src/lib/dataSchema.ts (1)
273-282
: The added refinement condition foramount
,exchangeRateOrInterest
, anddescription
instocks
ensures that these fields meet specific criteria, enhancing data integrity.libs/application/templates/inheritance-report/src/forms/sections/assets.ts (1)
501-501
: Making thedescription
field required in thestocks
section ensures that all entries have a descriptive label, which is crucial for clarity and record-keeping.libs/application/templates/inheritance-report/src/lib/messages.ts (2)
636-636
: Change in message ID to include markdown suffix approved.Ensure that markdown rendering is supported where this message is used.
1208-1212
: Addition ofdeceasedSharePart
message approved.Verify the necessity of this message in the context of the application, ensuring it does not duplicate existing functionality.
Datadog ReportAll test runs ✅ 10 Total Test Services: 0 Failed, 10 Passed Test ServicesThis report shows up to 10 services
🔻 Code Coverage Decreases vs Default Branch (1)
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15132 +/- ##
==========================================
- Coverage 37.06% 37.05% -0.01%
==========================================
Files 6422 6422
Lines 130903 130936 +33
Branches 37406 37438 +32
==========================================
+ Hits 48515 48517 +2
- Misses 82388 82419 +31
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.
|
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Checklist:
Summary by CodeRabbit
New Features
Improvements
description
field mandatory in the assets section.