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-plc): Detect user delegation type #16429

Merged
merged 12 commits into from
Oct 16, 2024

Conversation

kksteini
Copy link
Member

@kksteini kksteini commented Oct 16, 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
    • Updated messages to provide clearer information regarding recommendations in electoral districts.
    • Introduced new messages and buttons for company-related actions to improve user experience.
    • Added delegation options specifically for company-related processes in the parliamentary list creation.
    • Enhanced message construction for better integration of link buttons based on delegation status.
  • Bug Fixes
    • Improved conditions for displaying messages related to delegation status.

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 36.72%. Comparing base (d356a2f) to head (3c54817).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...st-creation/parliamentary-list-creation.service.ts 16.66% 5 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16429      +/-   ##
==========================================
- Coverage   36.72%   36.72%   -0.01%     
==========================================
  Files        6809     6809              
  Lines      141165   141172       +7     
  Branches    40245    40247       +2     
==========================================
+ Hits        51844    51846       +2     
- Misses      89321    89326       +5     
Flag Coverage Δ
air-discount-scheme-web 0.00% <ø> (ø)
api 3.37% <ø> (ø)
application-api-files 58.02% <ø> (ø)
application-core 71.85% <ø> (+0.32%) ⬆️
application-system-api 41.40% <28.57%> (-0.01%) ⬇️
application-template-api-modules 27.88% <0.00%> (-0.01%) ⬇️
application-templates-accident-notification 29.29% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 26.35% <ø> (ø)
application-templates-driving-license 18.29% <ø> (ø)
application-templates-estate 12.31% <ø> (ø)
application-templates-example-payment 25.14% <ø> (ø)
application-templates-financial-aid 14.27% <ø> (ø)
application-templates-general-petition 23.43% <ø> (ø)
application-templates-inheritance-report 6.43% <ø> (ø)
application-templates-marriage-conditions 15.09% <ø> (ø)
application-templates-mortgage-certificate 43.78% <ø> (ø)
application-templates-parental-leave 29.85% <ø> (-0.13%) ⬇️
application-types 6.69% <ø> (ø)
application-ui-components 1.28% <ø> (ø)
application-ui-shell 21.35% <ø> (ø)
clients-charge-fjs-v2 24.11% <ø> (ø)
web 1.82% <ø> (ø)

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 37.98% <ø> (ø)
...iamentary-list-creation/src/dataProviders/index.ts 100.00% <100.00%> (ø)
...-list-creation/src/lib/createCollectionTemplate.ts 50.00% <ø> (ø)
...on/parliamentary-list-creation/src/lib/messages.ts 100.00% <ø> (ø)
...st-creation/parliamentary-list-creation.service.ts 27.94% <16.66%> (-1.10%) ⬇️

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 d356a2f...3c54817. Read the comment docs.

@datadog-island-is
Copy link

datadog-island-is bot commented Oct 16, 2024

Datadog Report

All test runs 79b566f 🔗

21 Total Test Services: 0 Failed, 20 Passed
🔻 Test Sessions change in coverage: 1 decreased (-0.1%), 1 increased (+0.2%), 89 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.86s 1 no change Link
api 0 0 0 4 0 2.99s 1 no change Link
application-api-files 0 0 0 12 0 6.76s 1 no change Link
application-core 0 0 0 92 0 21.62s 1 increased (+0.2%) Link
application-system-api 0 0 0 120 2 3m 43.56s 1 no change Link
application-template-api-modules 0 0 0 123 0 2m 37.9s 1 no change Link
application-templates-accident-notification 0 0 0 148 0 17.75s 1 no change Link
application-templates-criminal-record 0 0 0 2 0 10.39s 1 no change Link
application-templates-driving-license 0 0 0 13 0 14.91s 1 no change Link
application-templates-example-payment 0 0 0 2 0 10.65s 1 no change Link

🔻 Code Coverage Decreases vs Default Branch (1)

  • application-templates-parental-leave - jest 35.04% (-0.1%) - Details

@kksteini kksteini marked this pull request as ready for review October 16, 2024 14:32
@kksteini kksteini requested a review from a team as a code owner October 16, 2024 14:32
Copy link
Contributor

coderabbitai bot commented Oct 16, 2024

Walkthrough

The pull request introduces several modifications to the parliamentary list creation service and related components. Key changes include the update of existing messages and the addition of new messages for user interface elements, a new method in the ParliamentaryListCreationService, and an API for checking delegation status. Additionally, updates to forms accommodate these changes, enhancing functionality related to delegation in the signature collection process.

Changes

File Change Summary
libs/application/template-api-modules/src/lib/modules/templates/signature-collection/.../service.ts Added method async delegatedToCompany({ auth }: TemplateApiModuleActionProps) in ParliamentaryListCreationService.
libs/application/templates/signature-collection/parliamentary-list-creation/src/dataProviders/index.ts Added method export const IsDelegatedToCompanyApi.
libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Done.ts Added buildMessageWithLinkButtonField methods with conditions for delegation status and company delegation status.
libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Prerequisites.ts Added new data provider IsDelegatedToCompanyApi.
libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/createCollectionTemplate.ts Added IsDelegatedToCompanyApi to allowedDelegations for the APPLICANT role.
libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/messages.ts Updated linkFieldMessage and added new messages: linkFieldButtonCompanyTitle and linkFieldCompanyMessage.

Possibly related PRs

Suggested labels

automerge, high priority

Suggested reviewers

  • albinagu

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.

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 (6)
libs/application/templates/signature-collection/parliamentary-list-creation/src/dataProviders/index.ts (1)

14-17: LGTM! Consider grouping related APIs together.

The addition of IsDelegatedToCompanyApi is consistent with the existing pattern and adheres to the coding guidelines for the libs directory. It's properly exported for reusability, uses TypeScript, and allows for effective tree-shaking.

Consider grouping related APIs together for better code organization. For example, you might want to place IsDelegatedToCompanyApi next to ParliamentaryIdentityApi if they are closely related in functionality.

libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Done.ts (2)

63-75: LGTM! Consider enhancing type safety.

The new buildMessageWithLinkButtonField component is well-implemented and follows good practices for reusability and internationalization. The condition for rendering is clear and uses TypeScript effectively.

To further improve type safety, consider defining an interface for the externalData structure:

interface ExternalData {
  delegatedToCompany: {
    data: {
      delegatedToCompany: boolean;
    };
  };
}

Then, update the condition function:

condition: (_, externalData: ExternalData) => {
  return !externalData.delegatedToCompany.data.delegatedToCompany;
},

This change would make the code more robust and easier to maintain.


76-89: LGTM! Consider refactoring to reduce duplication.

The second buildMessageWithLinkButtonField component is well-implemented and consistent with the first one. It correctly handles the company-specific scenario.

To reduce duplication and improve maintainability, consider refactoring both components into a single, more flexible component:

const delegationStatusButton = buildMessageWithLinkButtonField({
  condition: (_, externalData: ExternalData) => true, // Always render
  id: 'done.goToServicePortal',
  title: '',
  url: (externalData: ExternalData) => 
    externalData.delegatedToCompany.data.delegatedToCompany
      ? '/minarsidur/fyrirtaeki/listar/althingis-medmaelasofnun'
      : '/minarsidur/min-gogn/listar/althingis-medmaelasofnun',
  buttonTitle: (externalData: ExternalData) =>
    externalData.delegatedToCompany.data.delegatedToCompany
      ? m.linkFieldButtonCompanyTitle
      : m.linkFieldButtonTitle,
  message: (externalData: ExternalData) =>
    externalData.delegatedToCompany.data.delegatedToCompany
      ? m.linkFieldCompanyMessage
      : m.linkFieldMessage,
});

This refactoring would make the code more DRY and easier to maintain, while still preserving the functionality.

libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Prerequisites.ts (1)

94-98: LGTM: New data provider correctly added

The IsDelegatedToCompanyApi data provider is correctly added to the dataProviders array, following the existing pattern. This addition enhances the functionality related to delegation in the signature collection process.

Consider adding a comment explaining the purpose of this new data provider, especially since the title and subTitle are empty strings. This would improve code readability and maintainability.

libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-creation/parliamentary-list-creation.service.ts (1)

91-98: LGTM: New method is well-structured, but consider adding error handling and logging.

The delegatedToCompany method is correctly implemented and follows TypeScript best practices. It effectively checks for the ProcurationHolder delegation type and returns a boolean result.

Suggestions for improvement:

  1. Consider adding error handling to catch any unexpected issues when accessing auth.delegationType.
  2. Add logging statements to track method invocation and results, which can aid in debugging.

Example implementation with improvements:

async delegatedToCompany({ auth }: TemplateApiModuleActionProps) {
  try {
    this.logger.debug('Checking delegation type for user', { nationalId: auth.nationalId });
    const delegatedToCompany = auth.delegationType?.includes(AuthDelegationType.ProcurationHolder) ?? false;
    this.logger.info('Delegation check completed', { delegatedToCompany, nationalId: auth.nationalId });
    return { delegatedToCompany };
  } catch (error) {
    this.logger.error('Error checking delegation type', { error, nationalId: auth.nationalId });
    throw new TemplateApiError('Failed to check delegation type', 500);
  }
}

These changes would enhance the robustness and observability of the method.

libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/messages.ts (1)

305-315: LGTM! Consider a minor naming improvement.

The new messages linkFieldButtonCompanyTitle and linkFieldCompanyMessage are well-structured and consistent with the existing code. They adhere to the coding guidelines for library files, including TypeScript usage and reusability across NextJS apps.

For improved consistency, consider renaming linkFieldCompanyMessage to linkFieldMessageCompany to match the pattern of linkFieldButtonCompanyTitle.

 linkFieldButtonCompanyTitle: {
   id: 'plc.application:linkFieldButtonCompanyTitle',
   defaultMessage: 'Mínar síður (fyrirtæki)',
   description: '',
 },
-linkFieldCompanyMessage: {
+linkFieldMessageCompany: {
   id: 'plc.application:linkFieldCompanyMessage',
   defaultMessage:
     'Á mínum síðum fyrirtækja sést hve mörgum meðmælum hefur verið safnað í hverjum landsfjórðungi.',
   description: '',
 },
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 775afb3 and ccf93a6.

📒 Files selected for processing (6)
  • libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-creation/parliamentary-list-creation.service.ts (2 hunks)
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/dataProviders/index.ts (1 hunks)
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Done.ts (1 hunks)
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Prerequisites.ts (2 hunks)
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/createCollectionTemplate.ts (2 hunks)
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/messages.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-creation/parliamentary-list-creation.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/signature-collection/parliamentary-list-creation/src/dataProviders/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/templates/signature-collection/parliamentary-list-creation/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/signature-collection/parliamentary-list-creation/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/signature-collection/parliamentary-list-creation/src/lib/createCollectionTemplate.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/signature-collection/parliamentary-list-creation/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 (7)
libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Done.ts (1)

63-89: Overall, the changes look good and align with the project's standards.

The new components enhance the functionality related to delegation in the signature collection process. They are reusable, use TypeScript effectively, and support internationalization. The conditional rendering based on delegation status is well-implemented.

To further improve the code:

  1. Consider enhancing type safety by defining interfaces for external data structures.
  2. Explore refactoring the two similar components into a single, more flexible component to reduce duplication.

These changes would make the code more robust, maintainable, and aligned with best practices for library code in NextJS applications.

libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Prerequisites.ts (2)

23-23: LGTM: Import statement is correctly added

The new import for IsDelegatedToCompanyApi is correctly added to the existing imports from the dataProviders. This maintains consistency with the current code structure and follows TypeScript best practices.


23-23: Adherence to coding guidelines confirmed

The changes in this file adhere to the coding guidelines for the libs/ directory:

  1. They maintain reusability across different NextJS apps by extending existing functionality without breaking the structure.
  2. TypeScript is used consistently for defining types and imports.
  3. The changes don't negatively impact tree-shaking or bundling practices.

Also applies to: 94-98

libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/createCollectionTemplate.ts (2)

24-24: LGTM: New API import follows existing patterns

The import of IsDelegatedToCompanyApi from '../dataProviders' is consistent with the existing import structure and naming conventions. It adheres to the TypeScript usage guidelines for the library.


85-85: Approved: New API added to APPLICANT role

The addition of IsDelegatedToCompanyApi to the api array for the APPLICANT role is consistent with the existing structure and enhances the role's functionality. This change adheres to the coding guidelines for library files and maintains the component's reusability across different NextJS apps.

To ensure this addition is necessary for all use cases of this template, please run the following verification script:

This script will help identify where and how the new API is used, allowing you to verify its necessity across different scenarios.

✅ Verification successful

To proceed with verifying the usage of IsDelegatedToCompanyApi, please run the following script:


Verified: IsDelegatedToCompanyApi usage confirmed

The usage of IsDelegatedToCompanyApi has been confirmed in the following files:

  • libs/application/templates/signature-collection/parliamentary-list-creation/src/forms/Prerequisites.ts
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/lib/createCollectionTemplate.ts
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/dataProviders/index.ts

No conditional imports or usage were found, indicating that the addition is consistently applied and necessary across these components. Therefore, the addition of IsDelegatedToCompanyApi to the api array is verified and approved.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for usage of IsDelegatedToCompanyApi in related components

# Test: Search for references to IsDelegatedToCompanyApi
echo "Searching for references to IsDelegatedToCompanyApi:"
rg "IsDelegatedToCompanyApi" --type typescript

# Test: Check if there are any conditional imports or usage of this API
echo "Checking for conditional imports or usage:"
rg "IsDelegatedToCompanyApi.*\?|if.*IsDelegatedToCompanyApi" --type typescript

Length of output: 407


Script:

#!/bin/bash
# Description: Check for usage of IsDelegatedToCompanyApi in related components

# Test: Search for references to IsDelegatedToCompanyApi without specifying type
echo "Searching for references to IsDelegatedToCompanyApi in all files:"
rg "IsDelegatedToCompanyApi"

# Test: Check if there are any conditional imports or usage of this API
echo "Checking for conditional imports or usage of IsDelegatedToCompanyApi:"
rg "IsDelegatedToCompanyApi.*\?|if.*IsDelegatedToCompanyApi"

Length of output: 1117

libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-creation/parliamentary-list-creation.service.ts (2)

23-23: LGTM: Import statement is correctly placed and follows best practices.

The import of AuthDelegationType from the shared types package is well-structured and supports reusability across different NextJS apps. It also facilitates effective tree-shaking by importing only the specific type needed.


23-23: Summary: New method for detecting user delegation type is well-implemented.

The changes in this file effectively introduce a new capability to detect user delegation type, specifically for company delegation. The implementation is consistent with the existing codebase and follows TypeScript best practices.

Key points:

  1. New import for AuthDelegationType supports the added functionality.
  2. The delegatedToCompany method is well-structured and focused.
  3. The changes align with the PR objective of detecting user delegation type.

While the implementation is solid, consider the suggestions in the previous comment to further enhance robustness and observability.

Also applies to: 91-98

…ub.com:/island-is/island.is into fix/parliamentary-list-creation-user-detection
@kksteini kksteini added the deprecated:automerge (Disabled) Merge this PR as soon as all checks pass label Oct 16, 2024
@kksteini kksteini removed the deprecated:automerge (Disabled) Merge this PR as soon as all checks pass label Oct 16, 2024
@kksteini kksteini requested a review from a team as a code owner October 16, 2024 14:50
@kksteini kksteini added the deprecated:automerge (Disabled) Merge this PR as soon as all checks pass label Oct 16, 2024
Copy link
Member

@HjorturJ HjorturJ 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
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 (1)
libs/application/core/src/lib/fieldBuilders.ts (1)

Line range hint 527-540: Consider enhancing the buildMessageWithLinkButtonField function

The new function looks good and follows the established patterns in the file. However, consider the following improvements:

  1. Add TypeScript type annotations for the function parameters and return type to enhance type safety and developer experience.
  2. Include JSDoc comments to describe the function's purpose and parameters.
  3. Consider handling optional properties more robustly, using default values or optional chaining where appropriate.

Here's an example of how you could refactor the function:

/**
 * Builds a MessageWithLinkButtonField object.
 * @param {Omit<MessageWithLinkButtonField, 'type' | 'component' | 'children'>} data - The field data.
 * @returns {MessageWithLinkButtonField} The constructed field object.
 */
export const buildMessageWithLinkButtonField = (
  data: Omit<MessageWithLinkButtonField, 'type' | 'component' | 'children'>
): MessageWithLinkButtonField => {
  const { url, message, buttonTitle, marginBottom, marginTop } = data;
  return {
    ...extractCommonFields(data),
    children: undefined,
    url,
    message,
    buttonTitle,
    marginTop: marginTop ?? undefined,
    marginBottom: marginBottom ?? undefined,
    type: FieldTypes.MESSAGE_WITH_LINK_BUTTON_FIELD,
    component: FieldComponents.MESSAGE_WITH_LINK_BUTTON_FIELD,
  };
};

This refactored version includes type annotations, JSDoc comments, and handles potentially optional marginTop and marginBottom properties.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 88edd39 and 86540cf.

📒 Files selected for processing (3)
  • libs/application/core/src/lib/fieldBuilders.ts (1 hunks)
  • libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-creation/parliamentary-list-creation.service.ts (2 hunks)
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/dataProviders/index.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-creation/parliamentary-list-creation.service.ts
  • libs/application/templates/signature-collection/parliamentary-list-creation/src/dataProviders/index.ts
🧰 Additional context used
📓 Path-based instructions (1)
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."

@kodiakhq kodiakhq bot merged commit d25d4e9 into main Oct 16, 2024
85 checks passed
@kodiakhq kodiakhq bot deleted the fix/parliamentary-list-creation-user-detection branch October 16, 2024 15:39
kksteini added a commit that referenced this pull request Oct 16, 2024
* wip

* wip

* Small fixes

* Conditioned

* Fixed messages

* Fixed conditionals
kodiakhq bot added a commit that referenced this pull request Oct 16, 2024
* fix(application-plc): Detect user delegation type (#16429)

* wip

* wip

* Small fixes

* Conditioned

* Fixed messages

* Fixed conditionals

* feat(signature-collection): user not found handling (#16431)

* feat(signature=collection): user not found handling

* fix: text update

* 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(signature-collection): refetch is owner 16.10 (#16432)

* fix(signature-collection): refetch is owner after remove last list

* tw

* tweak

* tw

* tw

---------

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

---------

Co-authored-by: Alex Diljar Birkisbur Hellsing <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: albinagu <[email protected]>
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.

3 participants