-
Notifications
You must be signed in to change notification settings - Fork 60
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(service-portal): duplicate health string error id #16395
Conversation
WalkthroughThe changes in this pull request involve modifications to the Changes
Possibly related PRs
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16395 +/- ##
=======================================
Coverage 36.75% 36.75%
=======================================
Files 6835 6835
Lines 141332 141332
Branches 40240 40240
=======================================
Hits 51949 51949
Misses 89383 89383
Flags with carried forward coverage won't be shown. Click here to find out more.
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
🧹 Outside diff range and nitpick comments (1)
libs/service-portal/health/src/lib/messages.ts (1)
685-687
: LGTM! Consider adding a comment for clarity.The change from
healthCenterRegistrationTransferErrorTitle
tohealthErrorTitle
looks good. It generalizes the error message, which can be reused in different contexts, potentially reducing duplication.Consider adding a comment above this message to explain its usage across different health-related error scenarios. This can help other developers understand the broader applicability of this message.
+// Generic error message for health-related errors healthErrorTitle: { id: 'sp.health:health-error-title', defaultMessage: 'Villa hefur komið upp', },
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- libs/service-portal/health/src/lib/messages.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
libs/service-portal/health/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."
🔇 Additional comments (1)
libs/service-portal/health/src/lib/messages.ts (1)
Line range hint
1-687
: Compliant with coding guidelines forlibs/**/*
files.The code in this file adheres to the specified guidelines:
- It uses TypeScript for defining message types.
- The
messages
object is exported, allowing for reuse across different NextJS apps.- The structure supports effective tree-shaking and bundling practices.
Datadog ReportAll test runs ✅ 3 Total Test Services: 0 Failed, 2 Passed |
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/service-portal/health/src/screens/HealthCenterRegistration/HealthCenterRegistration.tsx (1)
Line range hint
209-213
: LGTM! Consider updating related error messages for consistency.The change to use a more general
healthErrorTitle
is appropriate and aligns with the PR objective to fix the duplicate health string error ID. This modification simplifies error reporting without affecting the component's overall functionality.For consistency, consider reviewing and updating other health-related error messages in the codebase to use this new, more general error title where appropriate.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (2)
- libs/service-portal/health/src/screens/DentistRegistration/DentistRegistration.tsx (1 hunks)
- libs/service-portal/health/src/screens/HealthCenterRegistration/HealthCenterRegistration.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
libs/service-portal/health/src/screens/DentistRegistration/DentistRegistration.tsx (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/service-portal/health/src/screens/HealthCenterRegistration/HealthCenterRegistration.tsx (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 (1)
libs/service-portal/health/src/screens/DentistRegistration/DentistRegistration.tsx (1)
143-143
: LGTM: Error message title updated successfully.The change from
messages.healthCenterRegistrationTransferErrorTitle
tomessages.healthErrorTitle
aligns well with the PR objective of fixing the duplicate health string error id issue. This update simplifies the error title to a more generic one, which could improve consistency in error messaging across the application without affecting the component's functionality or reusability.
Service Portal - Health string id duplication
Checklist:
Summary by CodeRabbit
New Features
healthErrorTitle
for improved clarity in error reporting.Bug Fixes