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(service-portal): Parliamentary setup #15451

Merged
merged 24 commits into from
Aug 26, 2024
Merged

Conversation

albinagu
Copy link
Member

@albinagu albinagu commented Jul 4, 2024

Note: still a WIP, but the initial setup of the ui that will be iterated once all the decisions are made

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 new message definitions for parliamentary and presidential elections to enhance localization.
    • Introduced a new ViewList component to display signature lists in a structured format.
    • Launched the OwnerView component for managing parliamentary lists and personnel, improving user interaction.
    • Added a LookupPerson modal for searching individuals by national ID, streamlining user lookups.
  • Bug Fixes

    • Adjusted UI elements for better spacing and layout within the ActionCard component.
  • Documentation

    • Updated localization and UI component documentation to reflect new features and changes.

Copy link
Contributor

coderabbitai bot commented Jul 4, 2024

Walkthrough

The changes introduce new components and updates within the service portal for managing parliamentary and presidential signature lists. Key additions include new message definitions for localization, components for displaying and managing lists, and a modal for looking up individuals by national ID. These updates enhance the application's structure and functionality, particularly in constituency management and user interactions.

Changes

File(s) Change Summary
libs/service-portal/core/src/lib/messages.ts Introduced new message definitions for parliamentary and presidential lists to enhance localization.
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/... Added new components ViewList and OwnerView for displaying and managing signature lists, including modals for constituency management.
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx Introduced LookupPerson component for looking up individuals by national ID in a modal interface.
libs/service-portal/information/src/lib/navigation.ts Updated navigation structure by replacing signatureCollectionLists with signatureCollectionParliamentaryLists and adding signatureCollectionPresidentialLists.
libs/service-portal/signature-collection/src/lib/constants.ts Introduced CollectionType object for presidential and parliamentary elections and a constituencies array for managing electoral districts.
libs/service-portal/signature-collection/src/lib/paths.ts Added new paths for parliamentary signatures and general petitions to SignatureCollectionPaths enum.
libs/service-portal/signature-collection/src/module.tsx Refactored routing logic to use distinct components for parliamentary and presidential signature lists, with updated route names and paths.
libs/service-portal/signature-collection/src/screens/... Modified import paths within various components to reflect a new directory structure, ensuring correct dependencies are maintained.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant OwnerView
    participant Signees
    participant Modal

    User->>OwnerView: Open OwnerView for parliamentary lists
    OwnerView->>Signees: Request list of signees
    Signees->>OwnerView: Return list of signees
    User->>Signees: Filter signees
    Signees->>User: Display filtered signees
    User->>OwnerView: Open AddConstituencyModal
    OwnerView->>Modal: Show Add Constituency options
    Modal->>User: Allow selection of constituencies
    User->>Modal: Confirm selection
    Modal->>OwnerView: Update constituencies
Loading
sequenceDiagram
    participant User
    participant LookupPersonModal
    participant IdentityQuery

    User->>LookupPersonModal: Open modal to lookup person
    LookupPersonModal->>User: Prompt for national ID
    User->>LookupPersonModal: Input national ID
    LookupPersonModal->>IdentityQuery: Validate and fetch identity data
    IdentityQuery->>LookupPersonModal: Return identity data
    LookupPersonModal->>User: Display name or error message
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.

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.

@datadog-island-is
Copy link

datadog-island-is bot commented Jul 4, 2024

Datadog Report

All test runs a0207c8 🔗

34 Total Test Services: 0 Failed, 33 Passed
🔻 Test Sessions change in coverage: 2 decreased, 143 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.34s 1 no change Link
api 0 0 0 4 0 2.88s 1 no change Link
application-api-files 0 0 0 12 0 6.29s 1 no change Link
application-core 0 0 0 90 0 20.71s 1 no change Link
application-system-api 0 0 0 111 2 3m 28.62s 1 decreased (-0.04%) Link
application-template-api-modules 0 0 0 109 0 1m 53.07s 1 decreased (-0.03%) Link
application-templates-accident-notification 0 0 0 98 0 19.36s 1 no change Link
application-templates-criminal-record 0 0 0 2 0 11.76s 1 no change Link
application-templates-driving-license 0 0 0 13 0 16.1s 1 no change Link
application-templates-example-payment 0 0 0 2 0 11.55s 1 no change Link

🔻 Code Coverage Decreases vs Default Branch (2)

  • application-system-api - jest 37.22% (-0.04%) - Details
  • application-template-api-modules - jest 25.61% (-0.03%) - Details

@albinagu albinagu added the deploy-feature Deploys features to dev label Jul 5, 2024
Copy link
Contributor

github-actions bot commented Jul 5, 2024

Affected services are: api,application-system-api,financial-aid-api,financial-aid-backend,financial-aid-open-api,services-auth-personal-representative,air-discount-scheme-web,consultation-portal,contentful-apps,financial-aid-web-osk,financial-aid-web-veita,judicial-system-web,skilavottord-web,web,application-system-form,island-ui-storybook,portals-admin,service-portal,system-e2e,

Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.97%. Comparing base (5784fc0) to head (22ae599).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #15451   +/-   ##
=======================================
  Coverage   36.97%   36.97%           
=======================================
  Files        6625     6625           
  Lines      135746   135746           
  Branches    38619    38620    +1     
=======================================
  Hits        50192    50192           
  Misses      85554    85554           
Flag Coverage Δ
air-discount-scheme-web 0.00% <ø> (ø)
api 3.42% <ø> (ø)
application-api-files 57.92% <ø> (ø)
application-core 72.48% <ø> (ø)
application-system-api 41.86% <ø> (ø)
application-template-api-modules 23.70% <ø> (+0.01%) ⬆️
application-templates-accident-notification 19.88% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 22.23% <ø> (ø)
application-templates-driving-license 16.03% <ø> (ø)
application-templates-estate 11.89% <ø> (ø)
application-templates-example-payment 20.90% <ø> (ø)
application-templates-financial-aid 12.12% <ø> (ø)
application-templates-general-petition 18.96% <ø> (ø)
application-templates-health-insurance 23.36% <ø> (ø)
application-templates-inheritance-report 4.64% <ø> (ø)
application-templates-marriage-conditions 10.52% <ø> (ø)
application-templates-mortgage-certificate 44.48% <ø> (ø)
application-templates-parental-leave 28.40% <ø> (ø)
application-types 6.75% <ø> (ø)
application-ui-components 1.43% <ø> (ø)
application-ui-shell 21.30% <ø> (ø)
auth-react 22.95% <ø> (ø)
clients-charge-fjs-v2 27.54% <ø> (ø)
contentful-apps 6.05% <ø> (ø)
financial-aid-backend 56.45% <ø> (ø)
financial-aid-shared 19.03% <ø> (ø)
island-ui-core 28.76% <ø> (ø)
judicial-system-web 28.58% <ø> (ø)
portals-admin-regulations-admin 2.02% <ø> (ø)
portals-core 16.22% <ø> (ø)
services-auth-personal-representative 48.12% <ø> (+0.03%) ⬆️
shared-components 27.80% <ø> (ø)
shared-form-fields 31.79% <ø> (ø)
web 1.88% <ø> (ø)

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

Files Coverage Δ
...s/island-ui/core/src/lib/ActionCard/ActionCard.tsx 10.86% <ø> (ø)
libs/service-portal/core/src/lib/messages.ts 50.00% <ø> (ø)
...s/service-portal/information/src/lib/navigation.ts 0.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5784fc0...22ae599. Read the comment docs.

@albinagu albinagu added deploy-feature Deploys features to dev and removed deploy-feature Deploys features to dev labels Aug 7, 2024
@albinagu albinagu marked this pull request as ready for review August 22, 2024 15:19
@albinagu albinagu requested review from a team as code owners August 22, 2024 15:19
@albinagu albinagu requested a review from Toti91 August 22, 2024 15:19
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: 13

Outside diff range, codebase verification and nitpick comments (3)
libs/service-portal/signature-collection/src/screens/Parliamentary/index.tsx (1)

5-6: Remove unused import SigneeView.

The SigneeView component is imported but not used in the JSX. Consider removing it if it's not needed for future development.

- import SigneeView from './SigneeView'
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/index.tsx (1)

21-65: Remove or address commented-out code.

The commented-out sections should be removed or addressed to maintain code clarity and cleanliness.

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/Signees.tsx (1)

24-35: Ensure efficient state management.

The state for signees is set directly from listSignees. Consider using a more efficient approach if the data is large or frequently updated.

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 7cc4e6c and ebccfee.

Files selected for processing (24)
  • libs/island-ui/core/src/lib/ActionCard/ActionCard.tsx (1 hunks)
  • libs/service-portal/core/src/lib/messages.ts (1 hunks)
  • libs/service-portal/information/src/lib/navigation.ts (1 hunks)
  • libs/service-portal/signature-collection/src/lib/constants.ts (1 hunks)
  • libs/service-portal/signature-collection/src/lib/messages.ts (2 hunks)
  • libs/service-portal/signature-collection/src/lib/paths.ts (1 hunks)
  • libs/service-portal/signature-collection/src/module.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/Signees.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/AddConstituency/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/CancelCollection/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/DeletePerson/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/EditPerson/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/SigneeView/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/CancelCollection/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/ViewList/SigneesOverview.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/ViewList/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/index.tsx (3 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/SignedList/index.tsx (1 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/SigneeView/index.tsx (2 hunks)
  • libs/service-portal/signature-collection/src/screens/Presidential/index.tsx (1 hunks)
Files skipped from review due to trivial changes (5)
  • libs/island-ui/core/src/lib/ActionCard/ActionCard.tsx
  • libs/service-portal/signature-collection/src/lib/constants.ts
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/CancelCollection/index.tsx
  • libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/ViewList/SigneesOverview.tsx
  • libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/ViewList/index.tsx
Additional context used
Path-based instructions (19)
libs/service-portal/signature-collection/src/lib/paths.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/service-portal/signature-collection/src/screens/Parliamentary/index.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/service-portal/signature-collection/src/screens/Parliamentary/SigneeView/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/DeletePerson/index.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/service-portal/signature-collection/src/screens/Presidential/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/EditPerson/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/AddConstituency/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/index.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/service-portal/signature-collection/src/module.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/service-portal/information/src/lib/navigation.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/service-portal/signature-collection/src/screens/Presidential/OwnerView/CancelCollection/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.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/service-portal/signature-collection/src/screens/Presidential/SigneeView/index.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/service-portal/signature-collection/src/screens/Presidential/SignedList/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/Signees.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/service-portal/signature-collection/src/screens/Presidential/OwnerView/index.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/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.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/service-portal/signature-collection/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."
libs/service-portal/core/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."
Biome
libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx

[error] 38-39: Missing key property for this element in iterable.

The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.

(lint/correctness/useJsxKeyInIterable)

Additional comments not posted (28)
libs/service-portal/signature-collection/src/lib/paths.ts (1)

3-7: LGTM! New paths added to SignatureCollectionPaths.

The new paths for parliamentary signatures and general petitions are consistent with the existing structure and naming conventions.

libs/service-portal/signature-collection/src/screens/Parliamentary/index.tsx (1)

8-22: LGTM! Effective use of localization and UI components.

The SignatureListsParliamentary component is well-structured and makes good use of the Box and IntroHeader components for layout and presentation.

libs/service-portal/signature-collection/src/screens/Parliamentary/SigneeView/index.tsx (1)

1-25: LGTM! Well-structured SigneeView component.

The SigneeView component effectively uses the ActionCard and Text components to display information. The localization is consistent and enhances the user experience.

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/DeletePerson/index.tsx (2)

24-24: Verify the modal label.

The modal's label is currently an empty string. Ensure this is intentional or provide a meaningful label for accessibility.


33-33: Verify the deletion button action.

The delete button doesn't have an associated action. Ensure that the intended functionality is implemented.

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/EditPerson/index.tsx (2)

34-42: Verify the read-only status of input fields.

The input fields for national ID and name are read-only. Ensure this is intentional and aligns with the intended functionality.


53-53: Verify the save button action.

The save button doesn't have an associated action. Ensure that the intended functionality is implemented.

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/AddConstituency/index.tsx (3)

1-14: Imports and component definition look good.

The imports and the functional component definition are appropriate and follow best practices.


18-58: Button and modal logic are well-implemented.

The use of useState for modal visibility and the structure of the modal content are appropriate.


61-61: Default export is appropriate.

The component is correctly exported as the default export.

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/index.tsx (2)

1-10: Imports and component definition look good.

The imports and the functional component definition are appropriate and follow best practices.


69-69: Default export is appropriate.

The component is correctly exported as the default export.

libs/service-portal/signature-collection/src/module.tsx (4)

8-16: Lazy loading of components is well-implemented.

Using lazy for importing components optimizes performance by enabling code-splitting.


28-29: Use of Navigate component is appropriate.

The Navigate component is correctly used for redirection.


17-60: Export statement is appropriate.

The module is correctly exported as signatureCollectionModule.


17-60: TypeScript usage is well-implemented.

The use of TypeScript for defining routes and module structure enhances type safety and reusability.

libs/service-portal/information/src/lib/navigation.ts (1)

59-68: Verify the correctness of new navigation paths.

Ensure that the paths SignatureCollectionPaths.SignatureCollectionParliamentaryLists and SignatureCollectionPaths.ViewParliamentaryList are correctly defined and accessible within the application.

Run the following script to verify the existence of these paths:

Verification successful

Navigation paths are correctly defined and accessible.

The paths SignatureCollectionPaths.SignatureCollectionParliamentaryLists and SignatureCollectionPaths.ViewParliamentaryList are correctly defined within the application and are accessible in the relevant files.

  • libs/service-portal/signature-collection/src/lib/paths.ts
  • libs/portals/admin/signature-collection/src/lib/paths.ts
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the existence of new navigation paths.

# Test: Search for the path definitions. Expect: Definitions for the new paths.
rg --type typescript 'SignatureCollectionPaths.SignatureCollectionParliamentaryLists|SignatureCollectionPaths.ViewParliamentaryList'

Length of output: 169


Script:

#!/bin/bash
# Description: Verify the existence of new navigation paths.

# Test: Search for the path definitions. Expect: Definitions for the new paths.
rg 'SignatureCollectionPaths.SignatureCollectionParliamentaryLists|SignatureCollectionPaths.ViewParliamentaryList'

Length of output: 787


Script:

#!/bin/bash
# Description: Verify the definition of SignatureCollectionPaths.

# Test: Search for the definition of SignatureCollectionPaths.
rg 'SignatureCollectionPaths' --type-add 'ts:*.{ts,tsx}'

Length of output: 3277

libs/service-portal/signature-collection/src/screens/Presidential/SigneeView/index.tsx (2)

14-14: Consider the impact of removing IntroHeader.

The IntroHeader component has been removed, which may affect the user interface by eliminating the title and introductory text. Consider whether this change aligns with the intended user experience.

Ensure that the removal of IntroHeader does not negatively impact the user experience or the overall design consistency.


11-18: Verify import path correctness.

The import paths have been updated to reflect a new directory structure. Ensure that these paths are correct and that the modules are still accessible.

Run the following script to verify the existence of the updated import paths:

libs/service-portal/signature-collection/src/screens/Presidential/SignedList/index.tsx (1)

3-9: Verify import path correctness.

The import paths have been updated to reflect a new directory structure. Ensure that these paths are correct and that the modules are still accessible.

Run the following script to verify the existence of the updated import paths:

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/Signees.tsx (2)

1-16: Verify import necessity and correctness.

Ensure that all imported modules are necessary for the component and correctly used within the code.

Check if any imports are unused or can be optimized.


54-137: Review rendering logic and user experience.

The component renders a table with pagination and handles different states (loading, no results, etc.). Ensure that the user experience is smooth and that all edge cases are handled.

Test the component with various data scenarios to ensure consistent behavior.

libs/service-portal/signature-collection/src/screens/Presidential/OwnerView/index.tsx (2)

Line range hint 22-156: Component Renaming and Import Path Updates Approved.

The renaming of the component to OwnerView and the updated import paths are appropriate given the context change. Ensure that all references to CandidateView are updated across the codebase.


Line range hint 22-156: Verify the Impact of Removing IntroHeader.

The removal of the IntroHeader component may affect the user experience by eliminating introductory information. Verify if this change aligns with the intended design.

Run the following script to check for any remaining references to IntroHeader:

libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx (1)

20-160: Component Structure Approved.

The OwnerView component is well-structured, utilizing localization and navigation effectively. Ensure that the component integrates seamlessly with the rest of the application.

Tools
Biome

[error] 38-39: Missing key property for this element in iterable.

The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.

(lint/correctness/useJsxKeyInIterable)

libs/service-portal/signature-collection/src/lib/messages.ts (1)

250-354: New Message Definitions Approved.

The new message definitions for parliamentary elections are comprehensive and well-structured, enhancing localization support for the new features.

libs/service-portal/core/src/lib/messages.ts (2)

516-519: LGTM! Message definition is correct.

The message signatureCollectionParliamentaryLists is correctly defined with a unique ID and a default message.


520-523: LGTM! Message definition is correct.

The message signatureCollectionPresidentialLists is correctly defined with a unique ID and a default message.

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 96d5e8b and 7d17835.

Files selected for processing (1)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx

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 7d17835 and 7ab0a80.

Files selected for processing (1)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/modals/LookupPerson/index.tsx

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 7ab0a80 and f9387ae.

Files selected for processing (1)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/index.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/ViewList/index.tsx

@albinagu albinagu removed the request for review from Toti91 August 26, 2024 14:18
@albinagu albinagu removed the deploy-feature Deploys features to dev label Aug 26, 2024
@albinagu albinagu added the automerge Merge this PR as soon as all checks pass label Aug 26, 2024
@kodiakhq kodiakhq bot merged commit e50e604 into main Aug 26, 2024
109 checks passed
@kodiakhq kodiakhq bot deleted the sp_collection_parliamentary branch August 26, 2024 14:38
thoreyjona pushed a commit that referenced this pull request Aug 28, 2024
* feat(service-portal): Parliamentary setup

* restructuring files adding parliamentary

* initial view setup

* owner view update

* owner - view list draft

* add manager draft

* ui updates and cleanup

* tweaks

* ui updates - owner view

* cleanup

* chore: nx format:write update dirty files

* lint fix

* tweaks in module for feature flagging

* review tweaks

* tweak

* chore: nx format:write update dirty files

* import fix

---------

Co-authored-by: kksteini <steini@kosmosogkaos.is>
Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
jonnigs pushed a commit that referenced this pull request Sep 2, 2024
* feat(service-portal): Parliamentary setup

* restructuring files adding parliamentary

* initial view setup

* owner view update

* owner - view list draft

* add manager draft

* ui updates and cleanup

* tweaks

* ui updates - owner view

* cleanup

* chore: nx format:write update dirty files

* lint fix

* tweaks in module for feature flagging

* review tweaks

* tweak

* chore: nx format:write update dirty files

* import fix

---------

Co-authored-by: kksteini <steini@kosmosogkaos.is>
Co-authored-by: andes-it <builders@andes.is>
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.

4 participants