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(application-system): Add dependent loading to async select #17525

Merged
merged 5 commits into from
Jan 16, 2025

Conversation

norda-gunni
Copy link
Member

@norda-gunni norda-gunni commented Jan 16, 2025

...

Attach a link to issue if relevant

What

Enable async selects to fetch their values using values selected in other async select fields

Why

To enable more responsive and user friendly applications by avoiding the need for splitting such functionality into multiple screens.

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

    • Added updateOnSelect property for async select fields.
    • Introduced dynamic option loading based on user selection.
    • Enhanced form field interactivity with dependent selections.
  • Improvements

    • Refined type definitions for async select contexts.
    • Improved error handling for loading options.
    • Updated input clearing mechanism to use null instead of an empty string.
  • Bug Fixes

    • Prevented persistence of nonexistent values in form fields.

@norda-gunni norda-gunni requested review from a team as code owners January 16, 2025 10:35
Copy link
Contributor

coderabbitai bot commented Jan 16, 2025

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 eslint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

warning eslint@8.57.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
warning eslint > file-entry-cache > flat-cache > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning jest > @jest/core > jest-runtime > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > jest-config > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/reporters > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning jest > @jest/core > @jest/transform > babel-plugin-istanbul > test-exclude > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning storybook > @storybook/cli > puppeteer-core > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
warning storybook > @storybook/cli > puppeteer-core > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning storybook > @storybook/cli > tempy > del > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning storybook > @storybook/cli > jscodeshift > temp > rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
warning storybook > @storybook/cli > jscodeshift > temp > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning storybook > @storybook/cli > jscodeshift > @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning storybook > @storybook/cli > jscodeshift > @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning storybook > @storybook/cli > jscodeshift > @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning react-native > @react-native/codegen > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning react-native > @react-native/community-cli-plugin > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning react-native > @react-native-community/cli > @react-native-community/cli-tools > sudo-prompt@9.2.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
warning react-native > @react-native/community-cli-plugin > @react-native/dev-middleware > @rnx-kit/chromium-edge-launcher > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-optional-catch-binding@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-logical-assignment-operators@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
warning react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer > @react-native/babel-preset > @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
warning next-auth > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning next-auth > jose@1.28.2: this version is no longer supported
warning next-auth > @next-auth/typeorm-legacy-adapter > typeorm > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @nx/next > @nx/webpack > stylus > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning @nx/next > @nx/webpack > webpack-dev-server > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning @nx/next > @nx/webpack > fork-ts-checker-webpack-plugin > memfs@3.6.0: this will be v4
warning @nx/next > @nx/webpack > webpack-dev-server > webpack-dev-middleware > memfs@3.6.0: this will be v4
warning workspace-aggregator-7358848a-41ad-41fd-9dca-744190afbb13 > eslint@8.57.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
warning "@nx/eslint > @nx/js > ts-node@10.9.1" has unmet peer dependency "@types/node@".
warning "@nx/next > @babel/plugin-proposal-decorators@7.25.9" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "styled-components > babel-plugin-styled-components > @babel/plugin-syntax-jsx@7.25.9" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > styled-components@5.3.6" has unmet peer dependency "react-is@>= 16.8.0".
warning "@nx/react > file-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning " > ts-node@10.9.2" has unmet peer dependency "@types/node@
".
warning " > react-native@0.74.5" has incorrect peer dependency "react@18.2.0".
warning "react-native > @react-native/codegen@0.74.87" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/community-cli-plugin > @react-native/metro-babel-transformer@0.74.87" has unmet peer dependency "@babel/core@*".
warning "@vanilla-extract/next-plugin > @vanilla-extract/webpack-plugin@2.3.16" has unmet peer dependency "webpack@^4.30.0 || ^5.20.2".
warning " > next-auth@3.29.10" has incorrect peer dependency "react@^16.13.1 || ^17".
warning " > next-auth@3.29.10" has incorrect peer dependency "react-dom@^16.13.1 || ^17".
warning "next-auth > @next-auth/prisma-legacy-adapter@0.1.2" has unmet peer dependency "@prisma/client@^2.16.1".
warning "@nx/next > copy-webpack-plugin@10.2.4" has unmet peer dependency "webpack@^5.1.0".

Walkthrough

This pull request introduces an updateOnSelect property for async select fields across multiple libraries. The changes enable dynamic option loading based on user selections in form components. The modifications span type definitions, field builders, and UI components, allowing for more interactive and context-aware form field behaviors. The implementation ensures backward compatibility while providing enhanced selection functionality.

Changes

File Change Summary
libs/application/core/src/lib/fieldBuilders.ts Added updateOnSelect property to buildAsyncSelectField function
libs/application/types/src/lib/Fields.ts Introduced AsyncSelectContext type, updated AsyncSelectField interface with updateOnSelect and modified loadOptions method signature
libs/application/ui-fields/src/lib/AsyncSelectFormField/AsyncSelectFormField.tsx Integrated updateOnSelect logic, added dynamic option loading based on selected values
libs/application/templates/reference-template/src/forms/exampleForm/simpleInputsSection/asyncSelectSubsection.ts Added new description and divider fields, introduced dependent async select fields
libs/shared/form-fields/src/lib/SelectController/SelectController.tsx Enhanced getValue function to handle cases with unmatched values
libs/shared/utils/src/lib/clearInputsOnChange.ts Modified to set input values to null instead of empty string
libs/shared/utils/src/lib/clearInputsOnChange.spec.ts Updated tests to reflect changes from empty string to null in setValue assertions

Sequence Diagram

sequenceDiagram
    participant User
    participant PrimarySelect
    participant DependentSelect
    participant DataSource

    User->>PrimarySelect: Select primary value
    PrimarySelect->>DependentSelect: Trigger update
    DependentSelect->>DataSource: Fetch options
    DataSource-->>DependentSelect: Return filtered options
    DependentSelect->>User: Display updated options
Loading

Possibly related PRs

  • feat(application-system): Make required a dynamic field #16691: The addition of the clearOnChange property in the AsyncSelectFormField component allows for enhanced control over the behavior of the select field when the selection changes, which is directly related to the changes made in the main PR that introduced the updateOnSelect property.
  • feat(application-system): Add clear on change #17452: The introduction of the clearOnChange property across various field-building functions, including buildAsyncSelectField, enhances the flexibility of field configurations, which aligns with the changes made in the main PR regarding the buildAsyncSelectField function.

Suggested labels

deploy-feature

Suggested reviewers

  • Toti91
  • jonnigs
  • kksteini

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bdcca7b and 8ba932c.

📒 Files selected for processing (2)
  • libs/application/core/src/lib/fieldBuilders.ts (2 hunks)
  • libs/application/types/src/lib/Fields.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
libs/application/core/src/lib/fieldBuilders.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/Fields.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/types/src/lib/Fields.ts (2)

53-57: Well-structured type definition!

The new AsyncSelectContext type effectively extends the existing context with an optional selectedValue array while maintaining reusability of existing types.


392-398: Well-designed interface update!

The changes maintain backward compatibility while enabling dependent loading functionality:

  1. The loadOptions method now accepts the enhanced context with selected values
  2. The optional updateOnSelect property allows specifying dependencies
libs/application/core/src/lib/fieldBuilders.ts (1)

244-244: Clean implementation of the builder pattern!

The changes consistently handle the new updateOnSelect property, maintaining alignment with the type system and other field builders.

Also applies to: 259-259

Finishing Touches

  • 📝 Generate Docstrings (Beta)

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

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

🧹 Nitpick comments (1)
libs/application/types/src/lib/Fields.ts (1)

392-392: Consider improving type safety for updateOnSelect.

While the implementation is correct, we could enhance type safety by ensuring the field IDs in updateOnSelect array actually exist.

Consider using a generic type parameter to constrain the field IDs:

export interface AsyncSelectField<T extends string = string> extends InputField {
  // ... other properties
  updateOnSelect?: T[]
  loadOptions(c: AsyncSelectContext): Promise<Option[]>
}

Also applies to: 398-398

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7e8309f and c1942bb.

📒 Files selected for processing (6)
  • libs/application/core/src/lib/fieldBuilders.ts (2 hunks)
  • libs/application/templates/reference-template/src/forms/exampleForm/simpleInputsSection/asyncSelectSubsection.ts (2 hunks)
  • libs/application/types/src/lib/Fields.ts (2 hunks)
  • libs/application/ui-fields/src/lib/AsyncSelectFormField/AsyncSelectFormField.tsx (2 hunks)
  • libs/shared/form-fields/src/lib/SelectController/SelectController.tsx (1 hunks)
  • libs/shared/utils/src/lib/clearInputsOnChange.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
libs/shared/utils/src/lib/clearInputsOnChange.ts (2)

Pattern libs/shared/**/*: "Confirm that the code adheres to the following:

  • Cross-application utility functions, types, and constants.
  • TypeScript best practices to ensure type safety and reusability.
  • Documentation and examples for library consumers."

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/core/src/lib/fieldBuilders.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/reference-template/src/forms/exampleForm/simpleInputsSection/asyncSelectSubsection.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/shared/form-fields/src/lib/SelectController/SelectController.tsx (2)

Pattern libs/shared/**/*: "Confirm that the code adheres to the following:

  • Cross-application utility functions, types, and constants.
  • TypeScript best practices to ensure type safety and reusability.
  • Documentation and examples for library consumers."

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/Fields.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/ui-fields/src/lib/AsyncSelectFormField/AsyncSelectFormField.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 (5)
libs/application/ui-fields/src/lib/AsyncSelectFormField/AsyncSelectFormField.tsx (1)

71-77: Ensure 'watchUpdateOnSelect' is handled correctly

After adjusting watchUpdateOnSelect to always be an array, the checks in this useEffect will function as intended. Make sure that the indexing and length checks align with the updated type of watchUpdateOnSelect.

libs/shared/utils/src/lib/clearInputsOnChange.ts (1)

6-6: LGTM!

Changing the cleared value to null ensures consistency with the SelectController component, which sets unselected values to null. This promotes better handling of empty states.

libs/application/types/src/lib/Fields.ts (1)

53-57: LGTM! Well-structured type definition.

The new AsyncSelectContext type properly extends the base context with the additional selectedValue property needed for dependent loading.

libs/application/core/src/lib/fieldBuilders.ts (1)

244-244: LGTM! Clean implementation.

The updateOnSelect property is correctly extracted and included in the returned object, maintaining consistency with the existing pattern.

Also applies to: 259-259

libs/application/templates/reference-template/src/forms/exampleForm/simpleInputsSection/asyncSelectSubsection.ts (1)

76-84: LGTM! Clear and informative field description.

The description field effectively explains the purpose of the dependent async select feature to users.

coderabbitai[bot]
coderabbitai bot previously approved these changes Jan 16, 2025
@datadog-island-is
Copy link

datadog-island-is bot commented Jan 16, 2025

Datadog Report

All test runs befa61a 🔗

10 Total Test Services: 0 Failed, 10 Passed
🔻 Test Sessions change in coverage: 2 decreased, 2 increased, 196 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 63 0 23.33s N/A Link
air-discount-scheme-web 0 0 0 2 0 7.81s N/A Link
api 0 0 0 4 0 2.95s N/A Link
api-domains-air-discount-scheme 0 0 0 6 0 19.29s N/A Link
api-domains-assets 0 0 0 3 0 12.19s N/A Link
api-domains-auth-admin 0 0 0 18 0 13.32s N/A Link
api-domains-communications 0 0 0 5 0 35.11s N/A Link
api-domains-criminal-record 0 0 0 5 0 9.93s 1 no change Link
api-domains-driving-license 0 0 0 23 0 33.92s N/A Link
api-domains-education 0 0 0 8 0 24.34s N/A Link

🔻 Code Coverage Decreases vs Default Branch (2)

  • services-university-gateway - jest 45.23% (-0.08%) - Details
  • application-ui-shell - jest 28.73% (-0.08%) - Details

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 17.24138% with 24 lines in your changes missing coverage. Please review.

Project coverage is 35.60%. Comparing base (2db52d8) to head (fc1d8a2).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../lib/AsyncSelectFormField/AsyncSelectFormField.tsx 0.00% 24 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #17525      +/-   ##
==========================================
- Coverage   35.60%   35.60%   -0.01%     
==========================================
  Files        7016     7016              
  Lines      150310   150312       +2     
  Branches    42937    42945       +8     
==========================================
- Hits        53524    53515       -9     
- Misses      96786    96797      +11     
Flag Coverage Δ
air-discount-scheme-backend 48.29% <0.00%> (ø)
air-discount-scheme-web 0.00% <ø> (ø)
api 3.33% <ø> (ø)
api-domains-air-discount-scheme 38.11% <ø> (ø)
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 48.49% <ø> (ø)
api-domains-communications 39.49% <0.00%> (ø)
api-domains-criminal-record 48.11% <ø> (ø)
api-domains-driving-license 44.91% <0.00%> (ø)
api-domains-education 31.35% <0.00%> (ø)
api-domains-health-insurance 35.56% <ø> (ø)
api-domains-mortgage-certificate 35.18% <ø> (ø)
api-domains-payment-schedule 42.23% <ø> (ø)
application-api-files 62.06% <ø> (ø)
application-core 75.66% <ø> (ø)
application-system-api 38.71% <0.00%> (+<0.01%) ⬆️
application-template-api-modules 27.57% <0.00%> (ø)
application-templates-accident-notification 27.60% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 25.79% <ø> (ø)
application-templates-driving-license 18.15% <ø> (ø)
application-templates-estate 13.57% <0.00%> (-0.01%) ⬇️
application-templates-example-payment 24.66% <ø> (ø)
application-templates-financial-aid 14.47% <ø> (ø)
application-templates-general-petition 23.13% <ø> (ø)
application-templates-inheritance-report 6.59% <ø> (ø)
application-templates-marriage-conditions 14.84% <ø> (ø)
application-templates-mortgage-certificate 43.73% <ø> (ø)
application-templates-new-primary-school 21.02% <ø> (ø)
application-templates-parental-leave 29.92% <ø> (ø)
application-types 6.47% <ø> (ø)
application-ui-components 1.17% <ø> (ø)
application-ui-shell 22.04% <0.00%> (-0.06%) ⬇️
clients-charge-fjs-v2 28.88% <ø> (ø)
clients-driving-license 40.99% <ø> (ø)
clients-driving-license-book 43.98% <ø> (ø)
clients-financial-statements-inao 49.78% <ø> (ø)
clients-license-client 1.26% <ø> (ø)
clients-middlewares 72.82% <0.00%> (ø)
clients-regulations 43.08% <ø> (ø)
clients-rsk-company-registry 31.18% <ø> (ø)
clients-syslumenn 49.35% <ø> (ø)
cms 0.39% <ø> (ø)
cms-translations 38.81% <0.00%> (ø)
contentful-apps 4.69% <ø> (ø)
financial-aid-backend 51.47% <ø> (ø)
financial-aid-shared 17.88% <ø> (ø)
island-ui-core 30.33% <0.00%> (ø)
judicial-system-api 20.11% <ø> (ø)
judicial-system-backend 55.80% <0.00%> (-0.01%) ⬇️
judicial-system-web 27.88% <0.00%> (ø)
license-api 42.98% <0.00%> (+0.01%) ⬆️
portals-admin-regulations-admin 1.80% <ø> (ø)
portals-core 19.59% <0.00%> (ø)
services-auth-admin-api 52.52% <0.00%> (ø)
services-auth-delegation-api 58.52% <0.00%> (ø)
services-auth-ids-api 52.54% <0.00%> (ø)
services-auth-public-api 49.41% <0.00%> (ø)
services-university-gateway 49.46% <ø> (-0.12%) ⬇️
services-user-profile 56.90% <0.00%> (-0.09%) ⬇️
shared-components 29.48% <0.00%> (ø)
shared-form-fields 33.40% <80.00%> (+0.08%) ⬆️
shared-utils 28.67% <100.00%> (ø)
web 2.39% <0.00%> (ø)

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

Files with missing lines Coverage Δ
libs/application/core/src/lib/fieldBuilders.ts 40.00% <ø> (ø)
libs/application/types/src/lib/Fields.ts 100.00% <ø> (ø)
...elds/src/lib/SelectController/SelectController.tsx 58.82% <100.00%> (+7.21%) ⬆️
libs/shared/utils/src/lib/clearInputsOnChange.ts 100.00% <100.00%> (ø)
.../lib/AsyncSelectFormField/AsyncSelectFormField.tsx 2.27% <0.00%> (-1.44%) ⬇️

... and 5 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 15168ee...fc1d8a2. Read the comment docs.

Copy link
Member

@jonnigs jonnigs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@baering baering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core file changes LGTM

@norda-gunni norda-gunni added the deprecated:automerge (Disabled) Merge this PR as soon as all checks pass label Jan 16, 2025
@kodiakhq kodiakhq bot merged commit 374bc28 into main Jan 16, 2025
207 checks passed
@kodiakhq kodiakhq bot deleted the as-expand-asyncselect branch January 16, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated:automerge (Disabled) Merge this PR as soon as all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants