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(estate): text tweak #16546

Merged
merged 2 commits into from
Oct 24, 2024
Merged

fix(estate): text tweak #16546

merged 2 commits into from
Oct 24, 2024

Conversation

albinagu
Copy link
Member

@albinagu albinagu commented Oct 24, 2024

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
    • Introduced new localized messages for the service portal, enhancing user guidance for accessing personal information and application status.
  • Bug Fixes
    • Updated existing message identifiers to improve clarity and categorization, including support for markdown formatting in certain messages.

@albinagu albinagu requested a review from a team as a code owner October 24, 2024 10:40
Copy link
Contributor

coderabbitai bot commented Oct 24, 2024

Walkthrough

The pull request includes modifications to localization strings and form configurations across several files. In Done.ts, the buttonTitle and message properties have been updated to reference a localized message module instead of a core message module. The messages.ts file has seen changes in message identifiers, including the addition of new messages for the service portal. Additionally, a message in the inheritance report's messages.ts file has been updated to support markdown formatting.

Changes

File Path Change Summary
libs/application/templates/estate/src/forms/Done.ts Updated buttonTitle and message properties to reference localized messages instead of core messages.
libs/application/templates/estate/src/lib/messages.ts Changed notFilledOut message ID, added openServicePortalTitle and openServicePortalMessage.
libs/application/templates/inheritance-report/src/lib/messages.ts Updated realEstateDescriptionPrePaid message ID to support markdown formatting.

Possibly related PRs

Suggested reviewers

  • kksteini
  • Toti91

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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

@albinagu albinagu added the automerge Merge this PR as soon as all checks pass label Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.76%. Comparing base (6705e8a) to head (c7a3910).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #16546   +/-   ##
=======================================
  Coverage   36.76%   36.76%           
=======================================
  Files        6851     6851           
  Lines      142129   142129           
  Branches    40546    40546           
=======================================
  Hits        52251    52251           
  Misses      89878    89878           
Flag Coverage Δ
api 3.37% <ø> (ø)
application-system-api 41.37% <ø> (ø)
application-template-api-modules 27.82% <ø> (+0.01%) ⬆️
application-templates-estate 12.31% <ø> (ø)
application-templates-inheritance-report 6.49% <ø> (ø)
application-ui-shell 21.36% <ø> (ø)

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

Files with missing lines Coverage Δ
...ibs/application/templates/estate/src/forms/Done.ts 0.00% <ø> (ø)
...s/application/templates/estate/src/lib/messages.ts 100.00% <ø> (ø)
...n/templates/inheritance-report/src/lib/messages.ts 100.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 6705e8a...c7a3910. Read the comment docs.

@datadog-island-is
Copy link

datadog-island-is bot commented Oct 24, 2024

Datadog Report

All test runs 0d841c3 🔗

4 Total Test Services: 0 Failed, 4 Passed
➡️ Test Sessions change in coverage: 9 no change

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
api 0 0 0 4 0 3.12s 1 no change Link
application-system-api 0 0 0 120 2 3m 44.69s 1 no change Link
application-template-api-modules 0 0 0 123 0 2m 27.72s 1 no change Link
application-ui-shell 0 0 0 74 0 33.8s 1 no change Link

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

🧹 Outside diff range and nitpick comments (2)
libs/application/templates/estate/src/forms/Done.ts (1)

Line range hint 1-7: Consider removing unused import.

The coreMessages import is no longer used after the migration to localized messages.

import {
  buildForm,
  buildMultiField,
  getValueViaPath,
  buildMessageWithLinkButtonField,
- coreMessages,
  buildImageField,
} from '@island.is/application/core'
libs/application/templates/estate/src/lib/messages.ts (1)

1008-1018: Consider adding descriptions for the new messages.

The new service portal messages are well-structured, but consider adding meaningful descriptions to help other developers understand the context and usage of these messages.

 openServicePortalTitle: {
   id: 'es.application:openServicePortalTitle',
   defaultMessage: 'Mínar síður',
-  description: '',
+  description: 'Title for the service portal link button',
 },
 openServicePortalMessage: {
   id: 'es.application:openServicePortalMessage',
   defaultMessage:
     'Inni á Mínum síðum og í Ísland.is appinu hefur þú aðgang að þínum upplýsingum, Stafrænu pósthólfi og stöðu umsóknar.',
-  description: '',
+  description: 'Informational message about accessing personal data in the service portal',
 },
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 6705e8a and c7a3910.

📒 Files selected for processing (3)
  • libs/application/templates/estate/src/forms/Done.ts (1 hunks)
  • libs/application/templates/estate/src/lib/messages.ts (2 hunks)
  • libs/application/templates/inheritance-report/src/lib/messages.ts (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • libs/application/templates/inheritance-report/src/lib/messages.ts
🧰 Additional context used
📓 Path-based instructions (2)
libs/application/templates/estate/src/forms/Done.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/estate/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 (2)
libs/application/templates/estate/src/forms/Done.ts (1)

49-50: LGTM! The message reference updates look correct.

The changes appropriately move from core messages to localized messages, maintaining better separation of concerns.

Let's verify that these message keys exist in the localization file:

✅ Verification successful

Message keys are properly defined in the localization file

The verification confirms that both openServicePortalTitle and openServicePortalMessage keys are correctly defined in libs/application/templates/estate/src/lib/messages.ts, with appropriate namespacing (es.application:). The message reference updates in the code are valid and properly mapped.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the required message keys exist in the messages file
# Expected: Should find both openServicePortalTitle and openServicePortalMessage

rg "openServicePortalTitle|openServicePortalMessage" "libs/application/templates/estate/src/lib/messages.ts"

Length of output: 266

libs/application/templates/estate/src/lib/messages.ts (1)

Line range hint 966-970: LGTM: Message ID updated to reflect markdown formatting.

The change correctly reflects the use of italic formatting in the message content.

@kodiakhq kodiakhq bot merged commit 8ec5136 into main Oct 24, 2024
39 of 40 checks passed
@kodiakhq kodiakhq bot deleted the estate_texts branch October 24, 2024 11:33
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.

3 participants