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(application-hid): Conditional Section and other minor fixes #15044

Merged
merged 14 commits into from
Jun 3, 2024

Conversation

Halli1414
Copy link
Contributor

@Halli1414 Halli1414 commented May 31, 2024

...

Attach a link to issue if relevant

What

Conditionally render sections.
Stop applicants with no possible declarations in prereqisites step.
Other minor fixes.

Why

Prevent empty screens and lists.
Going through the application with no possible applicants would result in an error from sjukra and no clear reson given.

Screenshots / Gifs

Attach Screenshots / Gifs to help reviewers understand the scope of the pull request

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

    • Enhanced health insurance declaration form with conditional fields for spouse and children.
    • Added error messages for scenarios where no declaration is available.
    • Introduced new functions to handle family-related data efficiently.
  • Bug Fixes

    • Corrected import path for prerequisites in the health insurance declaration form.
  • Refactor

    • Improved validation logic and data handling for selected applicants in the health insurance declaration schema.
  • Documentation

    • Updated error messages to provide clearer guidance on declaration unavailability.

@Halli1414 Halli1414 added the automerge Merge this PR as soon as all checks pass label May 31, 2024
@Halli1414 Halli1414 requested a review from a team as a code owner May 31, 2024 14:09
Copy link
Contributor

coderabbitai bot commented May 31, 2024

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files selected but had no reviewable changes (1)
  • libs/application/templates/health-insurance-declaration/src/lib/HealthInsuranceDeclarationTemplate.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The recent updates to the health insurance declaration module primarily focus on enhancing the handling of applicant data, including spouse and children information. New validation logic, error handling, and conditional checks based on family member data were added. Additionally, the schema and form structure were updated to better manage the presence of family members, ensuring a more robust and user-friendly experience.

Changes

File Path Change Summary
.../health-insurance-declaration.service.ts Added imports for new data types and error handling. Updated method signature and logic to handle applicant's family data and validation.
.../health-insurance-declaration.utils.ts Enhanced data access with optional chaining and added conditional checks before manipulating arrays.
.../HealthInsuranceDeclarationForm.ts Added hidden inputs and conditional logic for spouse and children fields. Refactored field IDs and section conditions.
.../Prerequisites.ts Fixed import statement for prerequisites module.
.../index.ts Added export statement for messages related to health insurance declarations.
.../dataSchema.ts Added boolean fields for hasSpouse and hasChildren. Restructured selectedApplicants with additional validation logic.
.../errors.ts Added new error message for no selected applicant.
.../messages/index.ts Added export statement for prerequisites module.
.../messages/prerequisites.ts Added error messages for declaration unavailability and removed existing introduction text.
.../utils/data.ts Added functions to check for family availability and selection. Refactored logic in getSelectedFamily function.
.../shared-api-definitions/health-insurance-api.ts Updated HealthInsuranceStatementsApi with additional properties.

Sequence Diagram(s) (Beta)

sequenceDiagram
    participant User
    participant Form
    participant Service
    participant NationalRegistry
    participant ErrorHandling

    User->>Form: Submit application
    Form->>Service: getInsuranceStatementData(applicationWithProps)
    Service->>NationalRegistry: Fetch spouse and children data
    NationalRegistry-->>Service: Return spouse and children data
    Service->>Service: Validate data (canApply, hasSpouse, hasChildren)
    alt Data is invalid
        Service->>ErrorHandling: Trigger TemplateApiError
        ErrorHandling-->>User: Display error message
    else Data is valid
        Service-->>Form: Return insurance statement data
        Form-->>User: Display insurance statement
    end
Loading

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.

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: 2

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c817e05 and 14a79d8.

Files selected for processing (11)
  • libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.ts (4 hunks)
  • libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.utils.ts (3 hunks)
  • libs/application/templates/health-insurance-declaration/src/forms/HealthInsuranceDeclarationForm.ts (5 hunks)
  • libs/application/templates/health-insurance-declaration/src/forms/Submitted.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/index.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/dataSchema.ts (2 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/messages/errors.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/messages/index.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/messages/prerequsites.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/utils/data.ts (2 hunks)
  • libs/application/types/src/lib/template-api/shared-api/shared-api-definitions/health-insurance-api.ts (1 hunks)
Files skipped from review due to trivial changes (1)
  • libs/application/templates/health-insurance-declaration/src/index.ts
Additional context used
Path-based instructions (10)
libs/application/templates/health-insurance-declaration/src/lib/messages/index.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/types/src/lib/template-api/shared-api/shared-api-definitions/health-insurance-api.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/health-insurance-declaration/src/lib/messages/errors.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/health-insurance-declaration/src/forms/Submitted.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/health-insurance-declaration/src/lib/dataSchema.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/health-insurance-declaration/src/lib/messages/prerequsites.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/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.utils.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/health-insurance-declaration/src/utils/data.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/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.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/health-insurance-declaration/src/forms/HealthInsuranceDeclarationForm.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."
Biome
libs/application/templates/health-insurance-declaration/src/forms/Submitted.ts

[error] 9-10: Some named imports are only used as types.

libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.utils.ts

[error] 1-6: All these imports are only used as types.


[error] 6-11: All these imports are only used as types.


[error] 11-12: All these imports are only used as types.


[error] 12-17: All these imports are only used as types.

libs/application/templates/health-insurance-declaration/src/utils/data.ts

[error] 40-40: Change to an optional chain.


[error] 105-105: Change to an optional chain.


[error] 125-125: Change to an optional chain.


[error] 172-172: This else clause can be omitted because previous branches break early.


[error] 1-8: All these imports are only used as types.


[error] 9-10: All these imports are only used as types.


[error] 11-16: All these imports are only used as types.

libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.ts

[error] 158-159: This variable implicitly has the any type.


[error] 1-5: Some named imports are only used as types.


[error] 5-9: All these imports are only used as types.


[error] 11-12: All these imports are only used as types.


[error] 12-13: Some named imports are only used as types.


[error] 13-14: All these imports are only used as types.

libs/application/templates/health-insurance-declaration/src/forms/HealthInsuranceDeclarationForm.ts

[error] 19-25: Some named imports are only used as types.


[error] 40-41: All these imports are only used as types.


[error] 42-43: All these imports are only used as types.

Additional comments not posted (11)
libs/application/types/src/lib/template-api/shared-api/shared-api-definitions/health-insurance-api.ts (1)

16-17: Properties order and throwOnError added to enhance API error handling and prioritization.

libs/application/templates/health-insurance-declaration/src/lib/messages/errors.ts (1)

20-25: New error message noSelectedApplicant correctly added to handle cases where no applicant is selected.

libs/application/templates/health-insurance-declaration/src/forms/Submitted.ts (1)

Line range hint 9-10: Imports used as types are appropriate here for type safety.

libs/application/templates/health-insurance-declaration/src/lib/messages/prerequsites.ts (1)

22-39: New error messages related to declaration availability added correctly.

libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.utils.ts (3)

68-68: LGTM! The use of optional chaining and conditional checks before adding spouse data enhances robustness.


82-82: LGTM! The use of optional chaining and conditional checks before adding children data enhances robustness.


128-128: LGTM! The conditional check before adding spouse data prevents potential runtime errors.

libs/application/templates/health-insurance-declaration/src/utils/data.ts (2)

62-64: LGTM! The function hasFamilyAvailable correctly checks for the presence of spouse or children, enhancing UI conditional rendering.


66-75: LGTM! The function hasFamilySelected correctly checks for the selection of family members, which is crucial for dependent operations.

libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.ts (1)

61-84: LGTM! The enhancements in getInsuranceStatementData method improve error handling and data processing, aligning with best practices.

libs/application/templates/health-insurance-declaration/src/forms/HealthInsuranceDeclarationForm.ts (1)

167-178: LGTM! The addition of hidden inputs for hasSpouse and hasChildren correctly implements dynamic form behavior based on family data.

@datadog-island-is
Copy link

datadog-island-is bot commented May 31, 2024

Datadog Report

All test runs bfce57d 🔗

68 Total Test Services: 0 Failed, 66 Passed
🔻 Test Sessions change in coverage: 4 decreased, 3 increased, 193 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-backend 0 0 0 81 0 42.04s N/A Link
air-discount-scheme-web 0 0 0 2 0 11.59s N/A Link
api 0 0 0 4 0 4.65s N/A Link
api-domains-air-discount-scheme 0 0 0 6 0 31.59s N/A Link
api-domains-assets 0 0 0 3 0 20.36s N/A Link
api-domains-auth-admin 0 0 0 18 0 20.04s N/A Link
api-domains-communications 0 0 0 5 0 54.78s N/A Link
api-domains-criminal-record 0 0 0 5 0 14.22s N/A Link
api-domains-driving-license 0 0 0 23 0 54.71s N/A Link
api-domains-education 0 0 0 8 0 34.56s N/A Link

🔻 Code Coverage Decreases vs Default Branch (4)

  • clients-middlewares - jest 75.2% (-0.11%) - Details
  • services-auth-personal-representative - jest 51.15% (-0.02%) - Details
  • application-template-api-modules - jest 25.96% (-0.02%) - Details
  • services-auth-ids-api - jest 49.76% (-0.01%) - Details

Copy link

codecov bot commented May 31, 2024

Codecov Report

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

Project coverage is 37.16%. Comparing base (760c6bb) to head (554ae7f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #15044      +/-   ##
==========================================
+ Coverage   37.14%   37.16%   +0.02%     
==========================================
  Files        6396     6405       +9     
  Lines      130163   130317     +154     
  Branches    37132    37219      +87     
==========================================
+ Hits        48349    48438      +89     
- Misses      81814    81879      +65     
Flag Coverage Δ
air-discount-scheme-backend 53.63% <ø> (ø)
air-discount-scheme-web 0.00% <ø> (ø)
api 3.44% <ø> (ø)
api-domains-air-discount-scheme 35.89% <ø> (ø)
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 57.91% <ø> (ø)
api-domains-communications 40.60% <ø> (ø)
api-domains-criminal-record 43.44% <ø> (ø)
api-domains-driving-license 44.20% <ø> (ø)
api-domains-health-insurance 27.15% <ø> (ø)
api-domains-mortgage-certificate 34.76% <ø> (ø)
api-domains-payment-schedule 40.26% <ø> (ø)
application-templates-criminal-record 21.97% <ø> (+0.13%) ⬆️
application-templates-driving-license 16.55% <ø> (+0.08%) ⬆️
application-templates-estate 11.86% <ø> (+0.01%) ⬆️
application-templates-example-payment 20.62% <ø> (+0.13%) ⬆️
application-templates-financial-aid 11.96% <ø> (+0.05%) ⬆️
application-templates-general-petition 19.14% <ø> (ø)
application-templates-health-insurance 23.10% <ø> (ø)
clients-charge-fjs-v2 22.58% <ø> (ø)
clients-driving-license 40.15% <ø> (ø)
clients-driving-license-book 43.63% <ø> (ø)
clients-license-client 1.84% <ø> (ø)
clients-middlewares 72.75% <ø> (-0.27%) ⬇️
clients-regulations 41.85% <ø> (ø)
clients-rsk-company-registry 29.24% <ø> (ø)
clients-syslumenn 49.44% <ø> (ø)
contentful-apps 6.24% <ø> (ø)
download-service 44.31% <ø> (ø)
license-api 42.96% <ø> (-0.16%) ⬇️
portals-admin-regulations-admin 2.06% <ø> (ø)
portals-core 16.28% <ø> (ø)
services-auth-admin-api 51.97% <ø> (-0.09%) ⬇️
services-auth-delegation-api 61.77% <ø> (-0.14%) ⬇️
services-auth-ids-api 54.59% <ø> (-0.10%) ⬇️
services-auth-personal-representative 48.51% <ø> (-0.13%) ⬇️
services-auth-personal-representative-public 44.37% <ø> (+0.14%) ⬆️
services-auth-public-api 49.82% <ø> (ø)
services-endorsements-api 55.07% <ø> (ø)
services-university-gateway 48.44% <ø> (+0.02%) ⬆️
services-user-notification 47.58% <ø> (ø)
web 1.94% <ø> (+0.05%) ⬆️

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

Files Coverage Δ
...emplates/health-insurance-declaration/src/index.ts 100.00% <100.00%> (ø)
...tion/src/lib/HealthInsuranceDeclarationTemplate.ts 50.00% <ø> (ø)
...h-insurance-declaration/src/lib/messages/errors.ts 100.00% <ø> (ø)
...th-insurance-declaration/src/lib/messages/index.ts 100.00% <100.00%> (ø)
...ance-declaration/src/lib/messages/prerequisites.ts 100.00% <ø> (ø)
...api/shared-api-definitions/health-insurance-api.ts 100.00% <ø> (ø)
...-declaration/health-insurance-declaration.utils.ts 21.31% <0.00%> (-0.36%) ⬇️
...health-insurance-declaration/src/lib/dataSchema.ts 17.85% <0.00%> (ø)
...eclaration/health-insurance-declaration.service.ts 21.87% <23.07%> (+0.44%) ⬆️

... and 70 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 760c6bb...554ae7f. Read the comment docs.

@Halli1414 Halli1414 requested a review from Toti91 May 31, 2024 15:03
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: 2

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 14a79d8 and e63829a.

Files selected for processing (7)
  • libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.ts (4 hunks)
  • libs/application/templates/health-insurance-declaration/src/forms/Prerequisites.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/index.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/dataSchema.ts (2 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/messages/errors.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/messages/index.ts (1 hunks)
  • libs/application/templates/health-insurance-declaration/src/lib/messages/prerequisites.ts (1 hunks)
Files skipped from review as they are similar to previous changes (4)
  • libs/application/templates/health-insurance-declaration/src/index.ts
  • libs/application/templates/health-insurance-declaration/src/lib/dataSchema.ts
  • libs/application/templates/health-insurance-declaration/src/lib/messages/errors.ts
  • libs/application/templates/health-insurance-declaration/src/lib/messages/index.ts
Additional context used
Path-based instructions (3)
libs/application/templates/health-insurance-declaration/src/forms/Prerequisites.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/health-insurance-declaration/src/lib/messages/prerequisites.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/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.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."
Biome
libs/application/templates/health-insurance-declaration/src/forms/Prerequisites.ts

[error] 8-17: Some named imports are only used as types.

libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.ts

[error] 157-158: This variable implicitly has the any type.


[error] 1-5: Some named imports are only used as types.


[error] 5-9: All these imports are only used as types.


[error] 11-12: All these imports are only used as types.


[error] 12-13: Some named imports are only used as types.


[error] 13-14: All these imports are only used as types.

Additional comments not posted (3)
libs/application/templates/health-insurance-declaration/src/forms/Prerequisites.ts (1)

20-20: The addition of the prerequisites import is correctly used to enhance the form's localization and error handling.

libs/application/templates/health-insurance-declaration/src/lib/messages/prerequisites.ts (1)

22-39: The addition of new error messages enhances user feedback and error handling in the application process.

libs/application/template-api-modules/src/lib/modules/templates/health-insurance-declaration/health-insurance-declaration.service.ts (1)

61-83: The update to the getInsuranceStatementData method signature and the enhanced error handling align well with the PR objectives.

@kodiakhq kodiakhq bot merged commit af62134 into main Jun 3, 2024
179 checks passed
@kodiakhq kodiakhq bot deleted the fix/application-hid-qa branch June 3, 2024 14:29
Halli1414 added a commit that referenced this pull request Jun 3, 2024
* Remove titles of empty checkbox fields

* Validate number of applicants more than 0

* Remove titles of empty checkbox fields

* Validate number of applicants more than 0

* Error message on both fields

* Stop applicants with no declaration available

* Formatting

* clean up

* More readable validation

* typo fixes and file rename

* Typo fix,

* File rename

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit that referenced this pull request Jun 4, 2024
* fix(application-hid): Display rejection reason from client (#14947)

* Update rights-portal client

* Add additional information to application

* Rename function -> status

* clean up

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* fix(application-hid): Conditional Section and other minor fixes (#15044)

* Remove titles of empty checkbox fields

* Validate number of applicants more than 0

* Remove titles of empty checkbox fields

* Validate number of applicants more than 0

* Error message on both fields

* Stop applicants with no declaration available

* Formatting

* clean up

* More readable validation

* typo fixes and file rename

* Typo fix,

* File rename

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

---------

Co-authored-by: andes-it <[email protected]>
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