-
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(secondary school): Update message IDs #17608
base: main
Are you sure you want to change the base?
Conversation
Note Currently processing new changes in this PR. This may take a few minutes, please wait... 📒 Files selected for processing (41)
WalkthroughThis pull request involves precise updates to message identifiers across multiple files in the secondary school application templates. The changes focus on correcting and refining message IDs to improve specificity and accuracy. Modifications were made in three key message files: Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Tip You can generate walkthrough in a markdown collapsible section to save space.Enable the 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
🧹 Nitpick comments (1)
libs/application/templates/secondary-school/src/lib/messages/application.ts (1)
33-36
: Update the description comment to match the stateThe description comment still refers to "completed" state while the message is for "in review" state.
id: 'ss.application:actionCardInReview', defaultMessage: 'Í vinnslu hjá stofnun', description: - 'Description of application state/status when application is completed', + 'Description of application state/status when application is in review',
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
libs/application/templates/secondary-school/src/lib/messages/application.ts
(1 hunks)libs/application/templates/secondary-school/src/lib/messages/conclusion.ts
(1 hunks)libs/application/templates/secondary-school/src/lib/messages/error.ts
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
libs/application/templates/secondary-school/src/lib/messages/application.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/secondary-school/src/lib/messages/error.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/secondary-school/src/lib/messages/conclusion.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 (3)
libs/application/templates/secondary-school/src/lib/messages/error.ts (1)
15-15
: LGTM! Message ID now correctly reflects its content typeThe message ID has been appropriately updated to use 'Description' instead of 'Title', which accurately represents its purpose as an error description message.
libs/application/templates/secondary-school/src/lib/messages/application.ts (1)
33-33
: LGTM! Message ID now correctly reflects the application stateThe message ID has been appropriately updated to use 'actionCardInReview' instead of 'actionCardCompleted', which accurately represents the "in review" state.
libs/application/templates/secondary-school/src/lib/messages/conclusion.ts (1)
68-68
: LGTM! Message IDs now clearly differentiate between user groupsThe message IDs have been appropriately updated to distinguish between freshman and general alert messages, improving code clarity and maintainability.
Also applies to: 74-74
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17608 +/- ##
==========================================
- Coverage 35.57% 35.57% -0.01%
==========================================
Files 7030 7030
Lines 150489 150495 +6
Branches 42973 42979 +6
==========================================
- Hits 53536 53535 -1
- Misses 96953 96960 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 134 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportAll test runs ✅ 5 Total Test Services: 0 Failed, 4 Passed Test Services
|
…dmin-web,auth-api-lib,auth-shared update dirty files
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: 1
🧹 Nitpick comments (1)
apps/auth-admin-web/components/Admin/nav/AdminTabNav.tsx (1)
Line range hint
1-150
: Consider NextJS best practices improvements.While the component functions correctly, there are several opportunities for improvement:
- Consider using Next.js's built-in Link component for tab navigation if these tabs correspond to different routes
- The localization initialization could be moved outside the component to prevent unnecessary state recreation
- The repetitive button structure could be extracted into a reusable component
Would you like me to provide a refactored version implementing these improvements?
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
apps/auth-admin-web/components/Admin/nav/AdminTabNav.tsx
(1 hunks)apps/auth-admin-web/components/Client/nav/ClientTabNav.tsx
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- apps/auth-admin-web/components/Client/nav/ClientTabNav.tsx
🧰 Additional context used
📓 Path-based instructions (1)
apps/auth-admin-web/components/Admin/nav/AdminTabNav.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."
handleTabChange, | ||
activeTab: activetab, | ||
children, |
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.
🛠️ Refactor suggestion
Follow React/TypeScript naming conventions for props.
The prop renaming from activeTab
to activetab
breaks the camelCase naming convention commonly used in React and TypeScript. This inconsistency could lead to confusion and maintenance issues.
Apply this diff to maintain consistent naming:
const AdminTabNav: React.FC<React.PropsWithChildren<Props>> = ({
handleTabChange,
- activeTab: activetab,
+ activeTab,
children,
}) => {
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
handleTabChange, | |
activeTab: activetab, | |
children, | |
handleTabChange, | |
activeTab, | |
children, |
…admin-web,native-app,web,api-domains-secondary-school,api,application-template-api-modules,application-system-api,api-domains-application,application-templates-secondary-school,application-template-loader,application-system-form,application-ui-shell,clients-secondary-school,clients-ultraviolet-radiation,clients-statistics,api-domains-statistics,cms,api-domains-icelandic-government-institution-vacancies,api-domains-university-careers,api-domains-university-gateway,api-domains-social-insurance,api-domains-license-service,api-domains-communications,api-domains-content-search,api-domains-notifications,api-domains-email-signup,air-discount-scheme-api,content-search-indexer,services-search-indexer,api-domains-auth,api-domains-auth-admin,api-domains-sessions,cms-translations,api-domains-occupational-licenses-v2,services-user-notification,clients-user-notification,api-domains-law-and-order,application-api-history,judicial-system-backend,api-domains-vehicles,judicial-system-api,services-auth-personal-representative-public,services-auth-personal-representative,judicial-system-digital-mailbox-api,regulations-admin-backend,clients-regulations-admin,api-domains-regulations-admin,download-service,contentful-role-permissions,icelandic-names-registry-backend,services-contentful-entry-tagger,judicial-system-message-handler,services-auth-delegation-api,clients-auth-delegation-api,services-user-profile,clients-user-profile,api-domains-user-profile,services-auth-ids-api,air-discount-scheme-backend,clients-air-discount-scheme,api-domains-air-discount-scheme,services-university-gateway,clients-university-gateway-api,application-templates-university,judicial-system-scheduler,services-endorsements-api,api-domains-endorsement-system,external-contracts-tests,services-auth-public-api,clients-auth-public-api,services-xroad-collector,air-discount-scheme-web,financial-aid-web-veita,judicial-system-xrd-api,services-auth-admin-api,clients-auth-admin-api,financial-aid-open-api,financial-aid-backend,clients-municipalities-financial-aid,api-domains-municipalities-financial-aid,financial-aid-web-osk,financial-aid-web-osk-e2e,github-actions-cache,license-api,services-form-system,consultation-portal,island-ui-storybook,judicial-system-web,reference-next-app,services-documents,api-domains-document-provider,clients-document-provider,financial-aid-api,reference-backend,services-sessions,clients-sessions,service-portal,skilavottord-web,contentful-apps,skilavottord-ws,clients-car-recycling,portals-admin,services-bff,auth-shared,portals-admin-ids-admin,portals-admin-application-system,portals-admin-service-desk,auth-api-lib,services-auth-testing,system-e2e,application-templates-social-insurance-administration-additional-support-for-the-elderly,application-templates-transport-authority-order-vehicle-registration-certificate,application-templates-social-insurance-administration-household-supplement,application-templates-transport-authority-digital-tachograph-workshop-card,application-templates-transport-authority-digital-tachograph-company-card,application-templates-transport-authority-digital-tachograph-drivers-card,application-templates-social-insurance-administration-pension-supplement,application-templates-transport-authority-anonymity-in-vehicle-registry,application-templates-transport-authority-transfer-of-vehicle-ownership,application-templates-parliamentary-list-creation,application-templates-parliamentary-list-signing,application-templates-presidential-list-creation,application-templates-social-insurance-administration-old-age-pension,application-templates-transport-authority-order-vehicle-license-plate,application-templates-presidential-list-signing,application-templates-social-insurance-administration-death-benefits,application-templates-transport-authority-change-co-owner-of-vehicle,application-templates-transport-authority-change-operator-of-vehicle,fiancial-statement-individual-election,application-templates-children-residence-change-v2,application-templates-social-insurance-administration-income-plan,clients-university-application-agricultural-university-of-iceland,application-templates-transport-authority-license-plate-renewal,application-templates-inao-financial-statement-political-party,clients-university-application-iceland-university-of-the-arts,api-domains-administration-of-occupational-safety-and-health,application-templates-directorate-of-immigration-citizenship,application-templates-driving-license-book-update-instructor,clients-transport-authority-digital-tachograph-drivers-card,api-domains-transport-authority,application-templates-social-insurance-administration-core,application-templates-parental-leave,application-templates-aosh-transfer-of-machine-ownership,clients-administration-of-occupational-safety-and-health,financial-statement-cemetery,application-templates-complaints-to-althingi-ombudsman,application-templates-driving-instructor-registrations,application-templates-aosh-work-accident-notification,clients-university-application-university-of-akureyri,application-templates-aosh-change-machine-supervisor,application-templates-european-health-insurance-card,application-templates-healthcare-license-certificate,clients-university-application-university-of-iceland,clients-university-application-bifrost-university,clients-university-application-holar-university,api-domains-financial-statement-individual-election,api-domains-official-journal-of-iceland-application,clients-health-insurance,api-domains-health-insurance,clients-university-application-reykjavik-university,application-templates-document-provider-onboarding,application-templates-health-insurance-declaration,clients-icelandic-government-institution-vacancies,clients-transport-authority-vehicle-plate-ordering,application-templates-aosh-request-for-inspection,application-templates-driving-assessment-approval,application-templates-driving-school-confirmation,application-templates-funding-government-projects,application-templates-official-journal-of-iceland,clients-transport-authority-vehicle-plate-renewal,clients-rights-portal,api-domains-rights-portal,clients-license-client,license,clients-transport-authority-vehicle-owner-change,clients-transport-authority-vehicle-operators,application-templates-aosh-register-new-machine,application-templates-data-protection-complaint,application-templates-driving-license-duplicate,application-templates-financial-statements-inao,application-templates-institution-collaboration,clients-official-journal-of-iceland-application,application-templates-aosh-street-registration,application-templates-grindavik-housing-buyout,application-templates-public-debt-payment-plan,clients-transport-authority-vehicle-codetables,application-templates-aosh-deregister-machine,application-templates-driving-learners-permit,application-templates-general-fishing-license,clients-transport-authority-vehicle-infolocks,portals-my-pages-education-student-assessment,portals-my-pages-education-career,portals-my-pages-education,portals-my-pages-social-insurance-maintenance,application-templates-alcohol-tax-redemption,application-templates-healthcare-work-permit,clients-transport-authority-vehicle-printing,application-templates-accident-notification,application-templates-announcement-of-death,application-templates-mortgage-certificate,clients-official-journal-of-iceland,api-domains-official-journal-of-iceland,application-templates-family-matters-core,application-templates-marriage-conditions,application-templates-no-debt-certificate,api-domains-financial-statement-cemetery,application-templates-inheritance-report,application-templates-new-primary-school,application-templates-passport-annulment,application-templates-reference-template,application-templates-operating-license,clients-district-commissioners-licenses,clients-social-insurance-administration,api-domains-housing-benefit-calculator,application-templates-general-petition,application-templates-health-insurance,portals-admin-icelandic-names-registry,portals-my-pages-occupational-licenses,api-domains-financial-statements-inao,application-templates-criminal-record,application-templates-driving-license,application-templates-example-payment,clients-ums-cost-of-living-calculator,api-domains-umbodsmadur-skuldara,portals-my-pages-signature-collection,portals-my-pages-information,api-domains-icelandic-names-registry,api-domains-national-registry-x-road,api-domains-driving-license,api-domains-driving-license-book,api-domains-identity,api-domains-intellectual-properties,application-templates-car-recycling,application-templates-financial-aid,application-templates-login-service,application-templates-energy-funds,application-templates-home-support,clients-directorate-of-immigration,clients-housing-benefit-calculator,portals-admin-signature-collection,portals-my-pages-education-license,portals-shared-modules-delegations,delegation-admin,api-domains-directorate-of-labour,api-domains-occupational-licenses,api-domains-watson-assistant-chat,clients-data-protection-complaint,clients-financial-statements-inao,portals-admin-air-discount-scheme,portals-my-pages-education-degree,api-domains-mortgage-certificate,api-domains-signature-collection,api-consultation-portal,clients-adr-and-machine-license,clients-intellectual-properties,clients-judicial-administration,clients-rsk-personal-tax-return,island-ui-vanilla-extract-utils,island-ui-core,portals-admin-document-provider,portals-admin-regulations-admin,application-templates-passport,portals-my-pages-law-and-order,application-templates-id-card,my-pages-air-discount,portals-my-pages-applications,portals-my-pages-restrictions,application-templates-estate,application-templates-p-sign,portals-my-pages-documents,portals-my-pages-petitions,application-ui-components,application-ui-fields,portals-admin-form-system,portals-my-pages-licenses,portals-my-pages-sessions,portals-my-pages-consent,portals-my-pages-finance,portals-my-pages-assets,portals-my-pages-health,portals-admin-petition,portals-my-pages-core,financial-aid-shared,island-ui-contentful,portals-admin-core,shared-form-fields,application-types,application-api-payment,application-api-files,clients-charge-fjs-v2,api-domains-payment,application-utils,application-api-core,application-ui-forms,application-testing,application-core,api-mocks,shared-components,react-components,react-spa-bff,react-feature-flags,portals-core,react-spa-shared,shared-connected,api-domains-disability-license,api-domains-health-directorate,clients-vehicle-service-fjs-v1,icelandic-names-registry-types,api-domains-aircraft-registry,api-domains-national-registry,api-domains-company-registry,api-domains-housing-benefits,api-domains-payment-schedule,clients-driving-license-book,clients-hms-housing-benefits,clients-national-registry-v2,clients-national-registry-v3,api-domains-education,clients-mms-grade,clients-identity,clients-rsk-company-registry,clients-signature-collection,content-search-index-manager,content-search-indexer-types,content-search-toolkit,content-search-metrics,judicial-system-court-client,api-domains-criminal-record,api-domains-fishing-license,clients-consultation-portal,judicial-system-audit-trail,air-discount-scheme-consts,clients-althingi-ombudsman,clients-disability-license,clients-health-directorate,clients-judicial-system-sp,clients-smart-solutions-v2,clients-university-careers,judicial-system-formatters,portals-my-pages-constants,air-discount-scheme-types,aircraft-registry,api-domains-api-catalogue,api-domains-ship-registry,api-domains-work-machines,clients-rsk-relationships,clients-work-accident-ver,api-domains-energy-funds,clients-payment-schedule,clients-vehicles-mileage,clients-workpoint-arborg,portals-my-pages-graphql,api-domains-file-upload,api-domains-regulations,api/domains/form-system,clients-criminal-record,clients-driving-license,clients-firearm-license,clients-fishing-license,clients-hunting-license,judicial-system-lawyers,judicial-system-message,api-catalogue-services,api-domains-fiskistofa,clients-ehic-client-v1,clients-smartsolutions,judicial-system-consts,judicial-system-auth,api-catalogue-elastic,api-domains-documents,api-domains-hms-loans,api-domains-syslumenn,clients-work-machines,judicial-system-types,ship-registry,api-catalogue-consts,api-catalogue-types,api-domains-passport,clients-auth-ids-api,clients-documents-v2,clients-energy-funds,infra-express-server,api-domains-finance,application-graphql,clients-middlewares,clients-regulations,form-system-client,clients-finance-v2,clients-fiskistofa,clients-hms-loans,clients-mms-frigg,clients-passports,clients-syslumenn,clients-islykill,clients-vehicles,clients-finance,clients-assets,api-domains-assets,clients-p-card,clients-inna,clients-cms,clients-mms,shared-translations,skilavottord-consts,nest-feature-flags,skilavottord-types,testing-containers,message-queue,university-gateway,clients-documents,infra-nest-server,testing-nest,nest-problem,nest-swagger,infra-next-server,residence-history,shared-constants,infra-tracing,nest-core,localization,shared-utils,clients-vmst,logging,auth-nest-tools,testing-fixtures,nest-dataloader,nest-audit,clients-zendesk,dokobit-signing,nest-sequelize,email-service,infra-metrics,nest-config,file-storage,nova-sms,nest-aws,cache,island-ui-theme,island-ui-utils,regulations,nest-pagination,user-monitoring,shared-mocking,shared-problem,feature-flags,next-ids-auth,nest-graphql,shared-babel,shared-types,auth-scopes,testing-e2e,api-schema,shared-pii,plausible update dirty files
…b.com/island-is/island.is into fix/secondary-school-cleanup-messages
...
Attach a link to issue if relevant
What
Specify what you're trying to achieve
Why
Specify why you need to achieve this
Screenshots / Gifs
Attach Screenshots / Gifs to help reviewers understand the scope of the pull request
Checklist:
Summary by CodeRabbit
The changes ensure more precise message labeling across various sections of the application, enhancing clarity and reducing potential confusion in message routing and display.