Skip to content

Colinofdutysophie0#407

Merged
andrewfraser73 merged 5 commits intomainfrom
colinofdutysophie0
Apr 16, 2026
Merged

Colinofdutysophie0#407
andrewfraser73 merged 5 commits intomainfrom
colinofdutysophie0

Conversation

@andrewfraser73
Copy link
Copy Markdown
Contributor

fix some sophie spots

  • search date bounds
  • Import 0 bug after create
  • get nice supplier name from address for Clearance so no (USD Account)
  • add comments
  • some WithOne() mappings causing issues on import book report

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses several Import Book / Import Clearance Instruction issues, including date filtering accuracy, fixing post-create behaviour, improving supplier display names, and adding support for clearance comments end-to-end.

Changes:

  • Add ClearanceComments support across domain, persistence, facade/resources, UI, and the clearance instruction view.
  • Adjust Import Book date search filtering to use inclusive date bounds.
  • Fix Import Book create flow to reload/navigate correctly after creation, and adjust EF mappings that were impacting reporting/imports.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/Unit/Domain.LinnApps.Tests/ImportClearanceInstructionTests/WhenAddingRsnImportBookForRepair.cs Extends coverage to assert NiceSupplierName behaviour.
tests/Unit/Domain.LinnApps.Tests/ImportClearanceInstructionTests/WhenAddingComments.cs Adds unit coverage for splitting/propagating clearance comments into instructions.
tests/TestData/TestData/Suppliers/TestSuppliers.cs Updates supplier test data to support order address-based “nice” names and removes CountryCode usage.
src/Service.Host/views/ImportClearanceInstruction.cshtml Renders supplier “nice” name and displays comments section when present.
src/Service.Host/client/src/components/imports/SearchParams.js Adjusts query serialization for date filtering.
src/Service.Host/client/src/components/imports/MainTab.js Hides calculated fields during creation via new creating prop.
src/Service.Host/client/src/components/imports/ImportBookUtility.js Fixes post-create navigation/reload, adds Comments tab, and avoids setting state during render.
src/Service.Host/client/src/components/imports/CreateTab.js Prevents showing “Add” for import types where it doesn’t apply.
src/Service.Host/client/src/components/imports/CommentsTab.js Adds UI for editing comments and clearanceComments.
src/Resources/Imports/ImportBookResource.cs Adds ClearanceComments to API resource.
src/Persistence.LinnApps/ServiceDbContext.cs Updates EF mappings (Supplier address/country FK, ImportBook clearance comments, relationship cardinalities).
src/Persistence.LinnApps/Repositories/ImportBookRepository.cs Updates includes to load supplier order address/country.
src/Facade/Services/ImportBookFacadeService.cs Persists Comments and ClearanceComments updates from resources.
src/Facade/ResourceBuilders/ImportBookResourceBuilder.cs Builds SupplierCountry using Supplier.Country.CountryCode and exposes clearance comments.
src/Facade/Extensions/ImportBookSearchResourceExtensions.cs Makes date filters inclusive of whole days and simplifies from/to logic.
src/Domain.LinnApps/Supplier.cs Adds OrderAddress and computed NiceSupplierName.
src/Domain.LinnApps/Imports/Models/ImportUpdate.cs Adds Comments and ClearanceComments to update model.
src/Domain.LinnApps/Imports/Models/ImportClearanceInstruction.cs Adds instruction comments support sourced from Import Book clearance comments.
src/Domain.LinnApps/Imports/ImportReportService.cs Switches sender country display to use Supplier.Country.CountryCode.
src/Domain.LinnApps/Imports/ImportBook.cs Adds ClearanceComments and updates Update() to apply both comment fields.

Comment thread src/Domain.LinnApps/Imports/Models/ImportClearanceInstruction.cs
Comment thread src/Facade/ResourceBuilders/ImportBookResourceBuilder.cs
Comment thread src/Domain.LinnApps/Imports/ImportReportService.cs
Comment thread src/Persistence.LinnApps/Repositories/ImportBookRepository.cs
Comment thread src/Domain.LinnApps/Supplier.cs
Comment thread src/Service.Host/client/src/components/imports/SearchParams.js
Copy link
Copy Markdown
Contributor

@richardiphillips richardiphillips left a comment

Choose a reason for hiding this comment

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

couple of Pipeline / build-and-test warnings

@andrewfraser73 andrewfraser73 merged commit 9e24c7f into main Apr 16, 2026
2 checks passed
@andrewfraser73 andrewfraser73 deleted the colinofdutysophie0 branch April 16, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants