Skip to content
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(social-insurance-maintenance): add labels #15443

Merged
merged 6 commits into from
Jul 5, 2024
Merged

Conversation

thorkellmani
Copy link
Member

@thorkellmani thorkellmani commented Jul 4, 2024

What

  • Change labels and text

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Formatting passes locally with my changes
  • I have rebased against main before asking for a review

Summary by CodeRabbit

  • New Features

    • Added a new intro message for social insurance maintenance overview.
    • Introduced a new description field in the social insurance maintenance navigation.
    • Added a LinkButton component within the Payment Plan screen for enhanced navigation.
  • Enhancements

    • Updated the maintenance footer message with additional text and new link messages.

Copy link
Contributor

coderabbitai bot commented Jul 4, 2024

Walkthrough

The recent changes in the service portal primarily involve enhancing and updating message handling. New messages and additional footer content have been introduced for better user communication in the Social Insurance Maintenance section. Additionally, an enhanced navigation description and a modified title in the PaymentPlan.tsx have been made to improve clarity and user experience.

Changes

Files/Modules Change Summary
libs/service-portal/core/src/lib/messages.ts Added a new message socialInsuranceMaintenanceIntro with the text 'Yfirlit yfir greiðslur frá almannatryggingum'.
.../social-insurance-maintenance/src/lib/messages.ts Updated maintenanceFooter message and added maintenanceFooterLinkUrl and maintenanceFooterLink messages.
.../social-insurance-maintenance/src/lib/navigation.ts Added a new description field to socialInsuranceMaintenanceNavigation object, utilizing socialInsuranceMaintenanceIntro.
.../social-insurance-maintenance/src/screens/PaymentPlan/PaymentPlan.tsx Changed IntroHeader component's title prop and added a LinkButton component within the Text component.

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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@datadog-island-is
Copy link

datadog-island-is bot commented Jul 4, 2024

Datadog Report

All test runs e1d4a63 🔗

2 Total Test Services: 0 Failed, 1 Passed
➡️ Test Sessions change in coverage: 20 no change

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
service-portal-core 0 0 0 5 0 1.99s N/A Link
service-portal-health 0 0 0 0 0 577.12ms 1 no change Link

@thorkellmani thorkellmani added the automerge Merge this PR as soon as all checks pass label Jul 5, 2024
@thorkellmani thorkellmani marked this pull request as ready for review July 5, 2024 09:30
@thorkellmani thorkellmani requested a review from a team as a code owner July 5, 2024 09:30
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 8d22fae and 1d2356a.

Files selected for processing (4)
  • libs/service-portal/core/src/lib/messages.ts (1 hunks)
  • libs/service-portal/social-insurance-maintenance/src/lib/messages.ts (1 hunks)
  • libs/service-portal/social-insurance-maintenance/src/lib/navigation.ts (1 hunks)
  • libs/service-portal/social-insurance-maintenance/src/screens/PaymentPlan/PaymentPlan.tsx (3 hunks)
Files skipped from review due to trivial changes (2)
  • libs/service-portal/core/src/lib/messages.ts
  • libs/service-portal/social-insurance-maintenance/src/lib/navigation.ts
Additional context used
Path-based instructions (2)
libs/service-portal/social-insurance-maintenance/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."
libs/service-portal/social-insurance-maintenance/src/screens/PaymentPlan/PaymentPlan.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 not posted (5)
libs/service-portal/social-insurance-maintenance/src/lib/messages.ts (3)

10-12: Approved: Update to maintenanceFooter message.

The additional text in the defaultMessage enhances the clarity of the message.


13-16: Approved: Addition of maintenanceFooterLinkUrl message.

The URL provided in the defaultMessage appears to be correct and relevant.


17-19: Approved: Addition of maintenanceFooterLink message.

The default link message is clear and correctly formatted.

libs/service-portal/social-insurance-maintenance/src/screens/PaymentPlan/PaymentPlan.tsx (2)

25-25: Approved: Update to title prop of IntroHeader component.

The updated title prop now correctly uses formatMessage(coreMessages.paymentPlan).


81-89: Approved: Addition of LinkButton component inside Text component.

The LinkButton component is correctly implemented and its props are correctly set.

Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.01%. Comparing base (8d22fae) to head (1d2356a).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #15443   +/-   ##
=======================================
  Coverage   37.01%   37.01%           
=======================================
  Files        6542     6542           
  Lines      133736   133736           
  Branches    38261    38261           
=======================================
  Hits        49505    49505           
  Misses      84231    84231           
Flag Coverage Δ
api-domains-auth-admin 53.90% <ø> (ø)
api-domains-communications 40.56% <ø> (+<0.01%) ⬆️
api-domains-education 33.71% <ø> (ø)
application-api-files 56.99% <ø> (ø)
application-template-api-modules 23.88% <ø> (+<0.01%) ⬆️
application-templates-criminal-record 22.35% <ø> (ø)
application-templates-driving-license 15.89% <ø> (ø)
application-templates-estate 11.94% <ø> (ø)
application-templates-example-payment 21.01% <ø> (ø)
application-templates-financial-aid 12.14% <ø> (ø)
application-templates-marriage-conditions 10.56% <ø> (ø)
application-ui-components 1.43% <ø> (ø)
application-ui-shell 21.54% <ø> (ø)
clients-driving-license 41.03% <ø> (ø)
clients-regulations 42.80% <ø> (ø)
clients-rsk-company-registry 30.64% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
dokobit-signing 62.31% <ø> (+0.09%) ⬆️
feature-flags 90.24% <ø> (+0.07%) ⬆️
file-storage 52.29% <ø> (ø)
financial-aid-backend 56.56% <ø> (+0.01%) ⬆️
judicial-system-backend 56.03% <ø> (ø)
judicial-system-message 66.33% <ø> (+0.06%) ⬆️
judicial-system-message-handler 66.07% <ø> (ø)
portals-core 16.33% <ø> (ø)
services-endorsements-api 55.49% <ø> (ø)
services-sessions 65.39% <ø> (ø)
services-university-gateway 48.49% <ø> (-0.09%) ⬇️
services-user-notification 48.02% <ø> (-0.03%) ⬇️
services-user-profile 62.40% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
libs/service-portal/core/src/lib/messages.ts 50.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d22fae...1d2356a. Read the comment docs.

@kodiakhq kodiakhq bot merged commit 50a4bbc into main Jul 5, 2024
30 checks passed
@kodiakhq kodiakhq bot deleted the fix/social-miantenace branch July 5, 2024 11:47
thorkellmani added a commit that referenced this pull request Jul 8, 2024
* fix:init

* chore: improts

* fix: messages

---------

Co-authored-by: Þorkell Máni Þorkelsson <mani@hugsmidjan.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
oskarjs pushed a commit that referenced this pull request Aug 20, 2024
* fix:init

* chore: improts

* fix: messages

---------

Co-authored-by: Þorkell Máni Þorkelsson <mani@hugsmidjan.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this PR as soon as all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants