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(assets): Bulk mileage registration #15774

Merged
merged 66 commits into from
Sep 29, 2024
Merged

feat(assets): Bulk mileage registration #15774

merged 66 commits into from
Sep 29, 2024

Conversation

thorkellmani
Copy link
Member

@thorkellmani thorkellmani commented Aug 23, 2024

What

  • Add a bulk mileage registration service
  • new pages for bulk mileage registrations

Why

*Owners of multiple vehicles should be able to register mileages in bulk

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

    • Introduced new input types for bulk vehicle mileage requests and status.
    • Added new constants for origin code and logging category.
    • Implemented new interfaces for mileage readings and vehicle data structures.
    • Added support for bulk mileage registration jobs with detailed response handling.
    • New React components for managing bulk mileage input, job overview, and file downloads.
    • Enhanced localization with Icelandic translations for vehicle-related messages.
    • Introduced new SVG icons for upload actions.
  • Bug Fixes

    • Removed outdated vehicle and user vehicle data structures.
  • Documentation

    • Enhanced GraphQL schemas for better data handling and clarity.

Copy link
Contributor

coderabbitai bot commented Aug 23, 2024

Walkthrough

The changes involve significant restructuring within the vehicle domain of the API. Key modifications include the consolidation of exports in the index.ts file, the removal of a TypeScript interface file, the introduction of new input types for GraphQL operations, and the addition of new constants and model classes. These updates streamline the data structures and enhance the input handling for bulk vehicle mileage operations, along with the introduction of new components for user interaction and data management.

Changes

Files Change Summary
libs/api/domains/vehicles/src/index.ts Exports consolidated: removed api-domains-vehicles.module and api-domains-vehicles.service, added vehicles.module.
libs/api/domains/vehicles/src/lib/api-domains-vehicles.type.ts Removed interfaces Vehicle and UsersVehicles.
libs/api/domains/vehicles/src/lib/constants.ts Added constants ISLAND_IS_ORIGIN_CODE and LOG_CATEGORY.
libs/api/domains/vehicles/src/lib/dto/getBulkVehicleMileageRequestOverview.input.ts Introduced input type class BulkVehicleMileageRequestOverviewInput with field guid.
libs/api/domains/vehicles/src/lib/dto/getBulkVehicleMileageRequestStatus.input.ts Introduced input type class BulkVehicleMileageRequestStatusInput with field requestId.
libs/api/domains/vehicles/src/lib/dto/mileageReading.dto.ts Added interface MileageReadingDto with properties for mileage readings.
libs/api/domains/vehicles/src/lib/dto/postBulkVehicleMileage.input.ts Introduced PostVehicleBulkMileageInput and PostVehicleBulkMileageSingleInput classes for handling bulk mileage data.
libs/api/domains/vehicles/src/lib/dto/vehiclesListInputV3.ts Introduced input type class VehiclesListInputV3 with fields pageSize and page.
libs/api/domains/vehicles/src/lib/models/usersVehicles.model.ts Added fields lastMileageRegistration and mileageRegistrationHistory to VehicleListed class.
libs/api/domains/vehicles/src/lib/models/v3/bulkMileage/bulkMileageReadingResponse.model.ts Introduced object type VehiclesBulkMileageReadingResponse with fields requestId and errorMessage.
libs/api/domains/vehicles/src/lib/models/v3/bulkMileage/bulkMileageRegistrationJob.model.ts Introduced object type VehiclesBulkMileageRegistrationJob with fields for job details including guid, reportingPersonNationalId, reportingPersonName, originCode, originName, dateRequested, dateStarted, dateFinished.
libs/service-portal/assets/src/lib/messages.ts Added multiple new vehicle-related message translations for localization.
libs/service-portal/assets/src/screens/VehicleBulkMileage/*.tsx Introduced several new React components for managing bulk mileage input, including VehicleBulkMileage, VehicleBulkMileageFileDownloader, VehicleBulkMileageRow, VehicleBulkMileageSaveButton, and VehicleBulkMileageUpload.
libs/service-portal/assets/src/screens/VehicleBulkMileage/types.ts Added TypeScript interfaces and types related to vehicle management, including VehicleProps, SubmissionState, and VehicleList.
libs/island-ui/core/src/lib/IconRC/icons/*.tsx Introduced new SVG components for upload icons: SvgUpload and SvgUploadOutline.

Possibly related PRs

  • fix(skilavottord): Check current owner on deregistration #14763: This PR involves changes to the VehicleService class, which is related to vehicle ownership and management, similar to the restructuring of vehicle-related exports in the main PR. However, it does not directly modify the same functions or classes as the main PR.

Suggested labels

automerge

Suggested reviewers

  • helgifr

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.

@datadog-island-is
Copy link

datadog-island-is bot commented Aug 23, 2024

Datadog Report

All test runs 0e03377 🔗

5 Total Test Services: 0 Failed, 4 Passed
🔻 Test Sessions change in coverage: 1 decreased (-0.03%), 26 no change

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
api 0 0 0 4 0 2.79s 1 no change Link
application-system-api 0 0 0 122 2 3m 11.72s 1 decreased (-0.03%) Link
application-template-api-modules 0 0 0 109 0 1m 53.17s 1 no change Link
service-portal-core 0 0 0 5 0 2.19s N/A Link
service-portal-health 0 0 0 0 0 628.25ms 1 no change Link

🔻 Code Coverage Decreases vs Default Branch (1)

  • application-system-api - jest 37.09% (-0.03%) - Details

@thorkellmani thorkellmani changed the title feat(assets): Bulk mileage registartion feat(assets): Bulk mileage registration Aug 26, 2024
@thorkellmani thorkellmani added the deploy-feature Deploys features to dev label Aug 26, 2024
Copy link
Contributor

github-actions bot commented Aug 26, 2024

Affected services are: air-discount-scheme-api,air-discount-scheme-backend,api,application-system-api,download-service,financial-aid-api,financial-aid-backend,financial-aid-open-api,judicial-system-api,judicial-system-digital-mailbox-api,judicial-system-backend,judicial-system-message-handler,judicial-system-robot-api,judicial-system-scheduler,judicial-system-xrd-api,license-api,regulations-admin-backend,services-auth-admin-api,services-auth-ids-api,services-auth-delegation-api,services-auth-personal-representative,services-auth-personal-representative-public,services-auth-public-api,services-endorsements-api,services-search-indexer,services-sessions,services-university-gateway,services-user-notification,services-user-profile,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,
Feature deployment of your services will begin shortly. Your feature will be accessible here:
https://featbulk-second-try-api-catalogue.dev01.devland.is/api
https://featbulk-second-try-api.dev01.devland.is/download
https://featbulk-second-try-application-callback-xrd.internal.dev01.devland.is/application-payment
https://featbulk-second-try-application-callback-xrd.internal.dev01.devland.is/applications
https://featbulk-second-try-application-payment-callback-xrd.internal.dev01.devland.is/application-payment
https://featbulk-second-try-application-payment-callback-xrd.internal.dev01.devland.is/applications
https://featbulk-second-try-beta.dev01.devland.is/
https://featbulk-second-try-beta.dev01.devland.is/api
https://featbulk-second-try-beta.dev01.devland.is/app/skilavottord/
https://featbulk-second-try-beta.dev01.devland.is/minarsidur
https://featbulk-second-try-beta.dev01.devland.is/samradsgatt
https://featbulk-second-try-beta.dev01.devland.is/stjornbord
https://featbulk-second-try-beta.dev01.devland.is/umsoknir
https://featbulk-second-try-license-api-xrd.internal.dev01.devland.is/
https://featbulk-second-try-loftbru-cf.dev01.devland.is/
https://featbulk-second-try-loftbru-cf.dev01.devland.is/api/graphql
https://featbulk-second-try-loftbru-cf.dev01.devland.is/api/public
https://featbulk-second-try-loftbru-cf.dev01.devland.is/api/swagger
https://featbulk-second-try-loftbru.dev01.devland.is/
https://featbulk-second-try-loftbru.dev01.devland.is/api/graphql
https://featbulk-second-try-loftbru.dev01.devland.is/api/public
https://featbulk-second-try-loftbru.dev01.devland.is/api/swagger
https://featbulk-second-try-service-portal-api.internal.dev01.devland.is/
https://featbulk-second-try-services-university-gateway.internal.dev01.devland.is/api
https://featbulk-second-try-sessions-api.internal.dev01.devland.is/
https://featbulk-second-try-ui.dev01.devland.is/

Deployed services: application-system-api,application-system-form,service-portal,service-portal-api,portals-admin,consultation-portal,api,web,skilavottord-web,island-ui-storybook,download-service,endorsement-system-api,air-discount-scheme-web,air-discount-scheme-backend,air-discount-scheme-api,regulations-admin-backend,application-system-api-worker,license-api,services-sessions,services-sessions-worker,services-sessions-cleanup,services-university-gateway,services-university-gateway-worker.
Excluded services: search-indexer-service,user-notification,user-notification-worker,user-notification-cleanup-worker,contentful-apps

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.

Project coverage is 36.70%. Comparing base (e5bb9ff) to head (44e1bc0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ibs/island-ui/core/src/lib/IconRC/icons/Upload.tsx 0.00% 4 Missing ⚠️
...and-ui/core/src/lib/IconRC/icons/UploadOutline.tsx 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #15774      +/-   ##
==========================================
- Coverage   36.70%   36.70%   -0.01%     
==========================================
  Files        6776     6778       +2     
  Lines      139592   139601       +9     
  Branches    39685    39687       +2     
==========================================
  Hits        51243    51243              
- Misses      88349    88358       +9     
Flag Coverage Δ
air-discount-scheme-backend 54.13% <100.00%> (+0.01%) ⬆️
air-discount-scheme-web 0.00% <ø> (ø)
api 3.39% <ø> (ø)
api-domains-air-discount-scheme 36.91% <100.00%> (+0.03%) ⬆️
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 48.77% <ø> (ø)
api-domains-communications 39.96% <100.00%> (+<0.01%) ⬆️
api-domains-criminal-record 47.85% <100.00%> (+0.03%) ⬆️
api-domains-driving-license 44.35% <100.00%> (+0.01%) ⬆️
api-domains-education 31.39% <100.00%> (+0.03%) ⬆️
api-domains-health-insurance 34.68% <100.00%> (+0.04%) ⬆️
api-domains-mortgage-certificate 35.70% <100.00%> (+0.02%) ⬆️
api-domains-payment-schedule 41.20% <100.00%> (+0.02%) ⬆️
application-api-files 57.65% <100.00%> (+0.02%) ⬆️
application-core 71.87% <ø> (+0.32%) ⬆️
application-system-api 41.62% <100.00%> (+<0.01%) ⬆️
application-template-api-modules 23.70% <100.00%> (-0.01%) ⬇️
application-templates-accident-notification 22.14% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 26.63% <ø> (ø)
application-templates-driving-license 18.70% <ø> (ø)
application-templates-estate 12.34% <ø> (ø)
application-templates-example-payment 25.41% <ø> (ø)
application-templates-financial-aid 14.34% <ø> (ø)
application-templates-general-petition 23.68% <ø> (ø)
application-templates-health-insurance 26.62% <ø> (ø)
application-templates-inheritance-report 6.45% <ø> (ø)
application-templates-marriage-conditions 15.23% <ø> (ø)
application-templates-mortgage-certificate 43.96% <ø> (ø)
application-templates-parental-leave 30.15% <ø> (+0.12%) ⬆️
application-types 6.71% <ø> (ø)
application-ui-components 1.28% <ø> (ø)
application-ui-shell 21.29% <ø> (ø)
auth-react 22.80% <ø> (ø)
clients-charge-fjs-v2 24.11% <ø> (ø)
clients-driving-license 40.65% <100.00%> (+0.04%) ⬆️
clients-driving-license-book 43.91% <100.00%> (+0.02%) ⬆️
clients-financial-statements-inao 49.17% <100.00%> (+0.03%) ⬆️
clients-license-client 1.83% <ø> (ø)
clients-regulations 42.63% <100.00%> (+0.04%) ⬆️
clients-rsk-company-registry 29.76% <ø> (ø)
clients-rsk-personal-tax-return 38.00% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
clients-syslumenn 49.66% <100.00%> (+0.02%) ⬆️
cms 0.43% <ø> (ø)
cms-translations 39.09% <100.00%> (+<0.01%) ⬆️
contentful-apps 5.76% <ø> (ø)
dokobit-signing 63.03% <100.00%> (+0.08%) ⬆️
download-service 44.63% <100.00%> (+0.01%) ⬆️
email-service 60.81% <100.00%> (+0.08%) ⬆️
feature-flags 90.83% <100.00%> (+0.07%) ⬆️
file-storage 53.25% <100.00%> (+0.11%) ⬆️
financial-aid-backend 56.54% <100.00%> (+0.01%) ⬆️
financial-aid-shared 19.03% <ø> (ø)
island-ui-core 28.47% <0.00%> (-0.06%) ⬇️
judicial-system-api 18.46% <ø> (ø)
judicial-system-audit-trail 68.94% <100.00%> (+0.08%) ⬆️
judicial-system-message 66.99% <100.00%> (+0.06%) ⬆️
judicial-system-message-handler 47.89% <100.00%> (+0.09%) ⬆️
judicial-system-scheduler 69.12% <100.00%> (+0.02%) ⬆️
judicial-system-web 28.16% <ø> (ø)
license-api 42.60% <100.00%> (+0.08%) ⬆️
nest-config 78.19% <100.00%> (+0.06%) ⬆️
nest-feature-flags 52.43% <100.00%> (+0.45%) ⬆️
nova-sms 62.37% <100.00%> (+0.09%) ⬆️
portals-admin-regulations-admin 1.93% <ø> (ø)
portals-core 16.17% <ø> (ø)
services-auth-delegation-api 57.85% <100.00%> (-0.07%) ⬇️
services-auth-personal-representative 45.51% <100.00%> (+0.07%) ⬆️
services-auth-personal-representative-public 41.55% <100.00%> (-0.04%) ⬇️
services-auth-public-api 49.25% <100.00%> (+<0.01%) ⬆️
services-endorsements-api 55.13% <100.00%> (+0.01%) ⬆️
services-sessions 65.83% <100.00%> (+0.01%) ⬆️
services-university-gateway 48.45% <100.00%> (+0.01%) ⬆️
services-user-notification 47.13% <100.00%> (+0.01%) ⬆️
services-user-profile 62.30% <100.00%> (+<0.01%) ⬆️
shared-components 27.68% <ø> (ø)
shared-form-fields 31.61% <ø> (ø)
web 1.83% <ø> (ø)

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

Files with missing lines Coverage Δ
libs/feature-flags/src/lib/features.ts 100.00% <100.00%> (ø)
libs/island-ui/core/src/lib/Icon/Icon.tsx 93.54% <ø> (ø)
...rtal/core/src/components/LinkButton/LinkButton.tsx 0.00% <ø> (ø)
libs/service-portal/core/src/index.ts 0.00% <ø> (ø)
libs/service-portal/core/src/lib/messages.ts 50.00% <ø> (ø)
...ibs/island-ui/core/src/lib/IconRC/icons/Upload.tsx 0.00% <0.00%> (ø)
...and-ui/core/src/lib/IconRC/icons/UploadOutline.tsx 0.00% <0.00%> (ø)

... and 1 file 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 e5bb9ff...44e1bc0. Read the comment docs.

Copy link
Member

@thordurhhh thordurhhh left a comment

Choose a reason for hiding this comment

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

Nice 🙌

@thorkellmani
Copy link
Member Author

@coderabbitai review pls

Copy link
Contributor

coderabbitai bot commented Sep 27, 2024

Tip

For best results, initiate chat on the files or code changes.

@thorkellmani,

I've reviewed your changes for the bulk mileage registration feature. Here are some observations:

  1. Removal of Vehicle and UsersVehicles Interfaces:

    • In libs/api/domains/vehicles/src/lib/api-domains-vehicles.type.ts, the Vehicle and UsersVehicles interfaces have been removed. Please ensure that all references to these interfaces elsewhere in the codebase are updated to prevent any TypeScript compilation errors or runtime issues.
  2. Update of Exports in index.ts:

    • In libs/api/domains/vehicles/src/index.ts, you've replaced the exports with export * from './lib/vehicles.module'. Verify that any modules or services that previously imported from api-domains-vehicles.module and api-domains-vehicles.service are updated accordingly.
  3. Change in Return Type of putMileageReading Method:

    • In libs/api/domains/vehicles/src/lib/services/vehicles.service.ts, the return type of putMileageReading has changed from PutMileageReadingModel | null to Array<MileageReadingDto> | null. This is a breaking change that could affect consumers of this method. Please ensure that all callers are updated to handle the new return type.
  4. Error Handling in New Components:

    • In components like VehicleBulkMileageUpload and VehicleBulkMileageRow, consider adding comprehensive error handling for network requests and form submissions to enhance user experience and robustness.
  5. Use of CSV Parsing Libraries:

    • In libs/service-portal/assets/src/utils/parseCsvToMileage.ts, you're parsing CSV files using regular expressions. It would be more robust to use a dedicated CSV parsing library like csv-parse or Papa Parse to handle different CSV formats and edge cases effectively.
  6. Unit Tests and Documentation:

    • Ensure that unit tests are added for the new services and components to maintain high code quality and coverage.
    • Update any relevant documentation to reflect the new bulk mileage registration feature, including API documentation and user guides.
  7. Localization and Translations:

    • The new messages added in libs/service-portal/assets/src/lib/messages.ts enhance localization. Please ensure that translations are provided for all supported locales to avoid missing text in the UI.

Overall, this is a valuable feature addition that will greatly benefit users managing multiple vehicles. Great work!

Copy link
Member

@disaerna disaerna left a comment

Choose a reason for hiding this comment

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

UI Core files reviewed - only minor questions

@thorkellmani thorkellmani added the automerge Merge this PR as soon as all checks pass label Sep 27, 2024
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: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9e2de6b and 8a3a792.

📒 Files selected for processing (14)
  • libs/api/domains/vehicles/src/lib/resolvers/bulkMileage.resolver.ts (1 hunks)
  • libs/api/domains/vehicles/src/lib/resolvers/mileage.resolver.ts (2 hunks)
  • libs/api/domains/vehicles/src/lib/resolvers/vehicleV3.resolver.ts (1 hunks)
  • libs/api/domains/vehicles/src/lib/resolvers/vehicles.resolver.ts (1 hunks)
  • libs/api/domains/vehicles/src/lib/services/bulkMileage.service.ts (1 hunks)
  • libs/island-ui/core/src/lib/IconRC/icons/Upload.tsx (1 hunks)
  • libs/island-ui/core/src/lib/IconRC/icons/UploadOutline.tsx (1 hunks)
  • libs/service-portal/assets/src/lib/messages.ts (3 hunks)
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileage.tsx (1 hunks)
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileageFileDownloader.tsx (1 hunks)
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileageRow.tsx (1 hunks)
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileageSaveButton.tsx (1 hunks)
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/types.ts (1 hunks)
  • libs/service-portal/assets/src/screens/VehicleBulkMileageUpload/VehicleBulkMileageUpload.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (13)
  • libs/api/domains/vehicles/src/lib/resolvers/bulkMileage.resolver.ts
  • libs/api/domains/vehicles/src/lib/resolvers/mileage.resolver.ts
  • libs/api/domains/vehicles/src/lib/resolvers/vehicleV3.resolver.ts
  • libs/api/domains/vehicles/src/lib/resolvers/vehicles.resolver.ts
  • libs/api/domains/vehicles/src/lib/services/bulkMileage.service.ts
  • libs/island-ui/core/src/lib/IconRC/icons/Upload.tsx
  • libs/island-ui/core/src/lib/IconRC/icons/UploadOutline.tsx
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileage.tsx
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileageFileDownloader.tsx
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileageRow.tsx
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/VehicleBulkMileageSaveButton.tsx
  • libs/service-portal/assets/src/screens/VehicleBulkMileage/types.ts
  • libs/service-portal/assets/src/screens/VehicleBulkMileageUpload/VehicleBulkMileageUpload.tsx
🧰 Additional context used
📓 Path-based instructions (1)
libs/service-portal/assets/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 (4)
libs/service-portal/assets/src/lib/messages.ts (4)

286-289: New message 'lastRegistration' added correctly.

The message lastRegistration has been added with the appropriate id and defaultMessage.


398-401: New message 'registration' added correctly.

The message registration has been added with the appropriate id and defaultMessage.


402-405: New message 'annualUsage' added correctly.

The message annualUsage has been added with the appropriate id and defaultMessage.


895-1051: Bulk mileage messages added correctly.

The bulk mileage registration messages have been added with consistent naming conventions and appropriate ids and defaultMessages. This enhances localization support for the new feature.

@saevarma saevarma removed the automerge Merge this PR as soon as all checks pass label Sep 29, 2024
@saevarma
Copy link
Member

Removed automerge to unblock Kodiak

@thorkellmani thorkellmani added the automerge Merge this PR as soon as all checks pass label Sep 29, 2024
@kodiakhq kodiakhq bot merged commit c14f868 into main Sep 29, 2024
430 checks passed
@kodiakhq kodiakhq bot deleted the feat/bulk-second-try branch September 29, 2024 13:25
thoreyjona pushed a commit that referenced this pull request Oct 2, 2024
* Vehicle bulk mileage frontend

* feat: omg it works

* chore: remove logs

* chore: nx format:write update dirty files

* fix: more messsages

* feat: bad csv parser

* fix: failure calblack

* feat: refactor logic

* chore: nx format:write update dirty files

* feat: better org

* chore: update config

* feat: update client

* feat: update with mutation

* feat: organize domain and add methods

* feat: update domain

* fix: better csv parsing

* chore: label

* chore: nx format:write update dirty files

* feat: some ui

* chore: nx format:write update dirty files

* feat/clearer ui

* chore: empty screen

* fix: remove buttons

* fix: expand callbacks

* fix: linting

* fix: expand lower

* chore: remove console

* chore: localize messages

* chore: imports

* fix: add logos

* fix: parsing

* fix: reveiw comments

* chore: nx format:write update dirty files

* fix: more review fixes

* chore: review comment v3

* chore: fix func name

* chore: review2
gp

* chore: add error message

* fix:nullechck

* fix:review

---------

Co-authored-by: Þórður Hafliðason <tolleinn@gmail.com>
Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
thorkellmani added a commit that referenced this pull request Oct 3, 2024
* Vehicle bulk mileage frontend

* feat: omg it works

* chore: remove logs

* chore: nx format:write update dirty files

* fix: more messsages

* feat: bad csv parser

* fix: failure calblack

* feat: refactor logic

* chore: nx format:write update dirty files

* feat: better org

* chore: update config

* feat: update client

* feat: update with mutation

* feat: organize domain and add methods

* feat: update domain

* fix: better csv parsing

* chore: label

* chore: nx format:write update dirty files

* feat: some ui

* chore: nx format:write update dirty files

* feat/clearer ui

* chore: empty screen

* fix: remove buttons

* fix: expand callbacks

* fix: linting

* fix: expand lower

* chore: remove console

* chore: localize messages

* chore: imports

* fix: add logos

* fix: parsing

* fix: reveiw comments

* chore: nx format:write update dirty files

* fix: more review fixes

* chore: review comment v3

* chore: fix func name

* chore: review2
gp

* chore: add error message

* fix:nullechck

* fix:review

---------

Co-authored-by: Þórður Hafliðason <tolleinn@gmail.com>
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 deploy-feature Deploys features to dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants