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

feat(fa): Adding muni settings to summary form #14869

Merged
merged 77 commits into from
May 22, 2024

Conversation

MargretFinnboga
Copy link
Contributor

@MargretFinnboga MargretFinnboga commented May 21, 2024

...

Sýna upphæðir v. barna í útreikningum í umsókn ef við á

What

  • Retrieving from muni which children aid settings they have
  • showing in application in summary where the aid for children will go
  • Fixing look in tablet having kennitala and name in the same row

Why

  • Added information for applicant depending on muni and if the applicant has children

Screenshots / Gifs

-- If childrenaid is APPLICANT --
Screenshot 2024-05-21 at 15 19 26

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 alert messages in the Summary form based on children's aid status.
  • Updates

    • Adjusted layout of child information grid for better responsiveness.
    • Updated margin settings for child information boxes for improved UI consistency.
  • Removed

    • Removed the use of useIntl() for formatting messages in the ChildrenInfo component.

@MargretFinnboga MargretFinnboga requested a review from a team as a code owner May 21, 2024 15:37
@MargretFinnboga MargretFinnboga changed the title feat(fa): adding muni settings to summary form feat(fa): Adding muni settings to summary form May 21, 2024
@MargretFinnboga MargretFinnboga added the automerge Merge this PR as soon as all checks pass label May 21, 2024
Copy link
Contributor

coderabbitai bot commented May 21, 2024

Walkthrough

The recent updates focus on enhancing the functionality and user interface of the financial aid application template. Key changes include the removal of useIntl() for message formatting in the ChildrenInfo component, adjustments to the layout of child information, and the introduction of an AlertMessage component in the SummaryForm to display messages based on children's aid status. Additionally, new messages related to children's aid alerts have been added to the summaryForm module.

Changes

File Path Change Summary
.../ChildrenInfo.tsx Removed useIntl() for message formatting, adjusted layout for child information.
.../SummaryForm.tsx Added AlertMessage component to display messages based on children's aid status.
.../messages/summaryForm.ts Added new messages related to children's aid alerts.

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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.

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 6175885 and 98ab062.
Files selected for processing (3)
  • libs/application/templates/financial-aid/src/fields/Summary/ChildrenInfo.tsx (2 hunks)
  • libs/application/templates/financial-aid/src/fields/Summary/SummaryForm.tsx (3 hunks)
  • libs/application/templates/financial-aid/src/lib/messages/summaryForm.ts (1 hunks)
Additional Context Used
Path-based Instructions (3)
libs/application/templates/financial-aid/src/fields/Summary/ChildrenInfo.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/application/templates/financial-aid/src/fields/Summary/SummaryForm.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/application/templates/financial-aid/src/lib/messages/summaryForm.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 not posted (5)
libs/application/templates/financial-aid/src/fields/Summary/ChildrenInfo.tsx (1)

52-52: Approved the changes in grid layout and margin settings, enhancing responsiveness and consistency.

Also applies to: 60-61

libs/application/templates/financial-aid/src/fields/Summary/SummaryForm.tsx (3)

4-10: Confirmed the new imports are used appropriately for handling children's aid functionality.


58-61: Approved the logic for displaying children's aid alerts based on relevant conditions.


93-118: Approved the conditional rendering of alert messages, which enhances clarity of information based on user-specific circumstances.

libs/application/templates/financial-aid/src/lib/messages/summaryForm.ts (1)

48-60: Approved the new message definitions for children's aid alerts, which are correctly implemented and support enhanced functionality.

Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 36.97%. Comparing base (4a27d65) to head (98ab062).
Report is 1 commits behind head on main.

Current head 98ab062 differs from pull request most recent head 9743721

Please upload reports for the commit 9743721 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #14869      +/-   ##
==========================================
- Coverage   37.04%   36.97%   -0.08%     
==========================================
  Files        6331     6331              
  Lines      129120   129105      -15     
  Branches    36852    36849       -3     
==========================================
- Hits        47835    47731     -104     
- Misses      81285    81374      +89     
Flag Coverage Δ
air-discount-scheme-web 0.00% <ø> (ø)
api 3.48% <ø> (ø)
application-api-files 56.51% <ø> (ø)
application-core 71.72% <ø> (+0.34%) ⬆️
application-system-api 41.96% <ø> (+0.01%) ⬆️
application-template-api-modules 24.40% <ø> (+0.01%) ⬆️
application-templates-accident-notification 19.92% <ø> (ø)
application-templates-car-recycling 4.23% <ø> (ø)
application-templates-criminal-record 21.67% <ø> (ø)
application-templates-driving-license 16.52% <ø> (ø)
application-templates-estate 11.74% <ø> (ø)
application-templates-example-payment 20.49% <ø> (ø)
application-templates-financial-aid 12.07% <0.00%> (-0.04%) ⬇️
application-templates-general-petition 19.14% <ø> (ø)
application-templates-health-insurance 23.10% <ø> (ø)
application-templates-inheritance-report 3.95% <ø> (ø)
application-templates-parental-leave 25.30% <ø> (-3.02%) ⬇️
application-types 7.39% <ø> (ø)
application-ui-components 1.44% <ø> (ø)
application-ui-shell 21.72% <ø> (ø)
auth-react 22.95% <ø> (ø)
clients-charge-fjs-v2 22.58% <ø> (ø)
contentful-apps 6.24% <ø> (ø)
financial-aid-backend 56.44% <ø> (ø)
island-ui-core 28.98% <ø> (ø)
judicial-system-api 17.61% <ø> (ø)
judicial-system-backend 56.11% <ø> (ø)
judicial-system-web 28.08% <ø> (ø)
portals-admin-regulations-admin 2.08% <ø> (ø)
portals-core 16.14% <ø> (ø)
services-auth-personal-representative 49.75% <ø> (+0.05%) ⬆️
shared-components 27.79% <ø> (ø)
shared-form-fields 31.87% <ø> (ø)
web 1.91% <ø> (ø)

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

Files Coverage Δ
.../financial-aid/src/fields/Summary/ChildrenInfo.tsx 0.00% <ø> (ø)
...ates/financial-aid/src/lib/messages/summaryForm.ts 100.00% <ø> (ø)
...s/financial-aid/src/fields/Summary/SummaryForm.tsx 0.00% <0.00%> (ø)

... and 8 files with indirect coverage changes


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 4d37ab4...9743721. Read the comment docs.

@datadog-island-is
Copy link

Datadog Report

All test runs 93dbd33 🔗

36 Total Test Services: 0 Failed, 35 Passed
🔻 Test Sessions change in coverage: 1 decreased (-0.09%), 6 increased, 128 no change

Test Services
This report shows up to 10 services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
air-discount-scheme-web 0 0 0 2 0 8.65s 1 no change Link
api 0 0 0 4 0 4.5s 1 no change Link
application-api-files 0 0 0 12 0 10.33s 1 no change Link
application-core 0 0 0 90 0 25.9s 1 increased (+0.22%) Link
application-system-api 0 0 0 111 2 3m 43.21s 1 increased (+0.02%) Link
application-template-api-modules 0 0 0 109 0 2m 23.59s 1 no change Link
application-templates-accident-notification 0 0 0 98 0 41.56s 1 no change Link
application-templates-criminal-record 0 0 0 2 0 13.73s 1 no change Link
application-templates-driving-license 0 0 0 13 0 27.62s 1 no change Link
application-templates-example-payment 0 0 0 2 0 16.26s 1 no change Link

🔻 Code Coverage Decreases vs Default Branch (1)

  • application-templates-parental-leave - jest 29.63% (-0.09%) - Details

@kodiakhq kodiakhq bot merged commit d97292b into main May 22, 2024
29 checks passed
@kodiakhq kodiakhq bot deleted the feat/adding-muni-settings-to-summary branch May 22, 2024 11:00
jonnigs pushed a commit that referenced this pull request May 22, 2024
* adding sortable feature

* Revert "adding sortable feature"

This reverts commit d9691c5.

* adding more detail for api

* removing white space break just adding html element to the db

* adding settings children aid

* adding children aid to places

* children aid added from backend to front, just need to make it appear

* adding radiobuttons to update

* adding alert banners depending children aid from muni

---------

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