-
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
chore(j-s): Update advocate confirmed strings #16573
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
|
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 (3)
apps/judicial-system/web/src/routes/Court/Indictments/Advocates/Advocates.strings.ts (3)
28-32
: LGTM! Consider documenting the versioning strategy.The addition of version suffix '_v1' to the string identifier is a good practice for managing content updates. However, it would be beneficial to document this versioning strategy in the project documentation for future maintainers.
166-167
: LGTM! Consider enhancing type safety.While the versioning update is good, consider creating a TypeScript type or const enum for the version suffixes to ensure consistency across the codebase.
Example implementation:
export const STRING_VERSIONS = { V1: '_v1' } as const; type StringVersion = typeof STRING_VERSIONS[keyof typeof STRING_VERSIONS];
Line range hint
1-190
: Consider implementing a versioning strategy document.The systematic addition of version suffixes to string identifiers indicates a need for:
- A documented versioning strategy
- Type-safe version management
- A migration guide for future version updates
- Integration with the content management workflow
This will help maintain consistency and make future updates more manageable.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- apps/judicial-system/web/src/routes/Court/Indictments/Advocates/Advocates.strings.ts (4 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
apps/judicial-system/web/src/routes/Court/Indictments/Advocates/Advocates.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."
🔇 Additional comments (3)
apps/judicial-system/web/src/routes/Court/Indictments/Advocates/Advocates.strings.ts (3)
37-38
: LGTM! Consistent with versioning pattern.The changes maintain consistency with the new versioning approach while preserving the message semantics.
126-128
: Verify translation requirements for system-specific terms.The message now includes the system name "Réttarvörslugátt". Ensure that:
- This term is consistently used across the application
- Translation requirements for this system-specific term are communicated to translators
139-141
: LGTM! Message maintains clarity.The versioned identifier and rephrased message maintain the intended meaning while aligning with content management updates.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16573 +/- ##
==========================================
- Coverage 36.80% 36.80% -0.01%
==========================================
Files 6854 6854
Lines 142236 142227 -9
Branches 40561 40558 -3
==========================================
- Hits 52346 52342 -4
+ Misses 89890 89885 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportBranch report: ✅ 0 Failed, 288 Passed, 0 Skipped, 0s Total Time |
Textar í modal þegar verið er að staðfesta/breyta verjanda
What
Updated some texts and force update them in contentful
Why
To keep our code in sync with Contentful values
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes