Skip to content

backend call for dates implemented#650

Merged
StuartFerguson merged 6 commits intomainfrom
task/#601_comparison_dates
Jan 15, 2026
Merged

backend call for dates implemented#650
StuartFerguson merged 6 commits intomainfrom
task/#601_comparison_dates

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

closes #601

Copy link
Copy Markdown
Contributor

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 pull request implements backend API calls for fetching comparison dates from an estate reporting service. The PR introduces a new BusinessLogic layer that separates concerns and implements request handlers using MediatR pattern to make actual API calls instead of returning mock data.

Changes:

  • Introduced new EstateManagementUI.BusinessLogic project with API client, request handlers, and data transfer objects
  • Implemented DateRequestHandler to fetch comparison dates from the backend API
  • Refactored code to use SimpleResults Result type instead of custom Result wrapper
  • Added model conversion layer (ModelFactory) to bridge BusinessLogic and BlazorServer models

Reviewed changes

Copilot reviewed 53 out of 53 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
EstateManagmentUI.BusinessLogic/RequestHandlers/DateRequestHandler.cs New request handlers for comparison dates and other entities
EstateManagmentUI.BusinessLogic/Client/DateMethods.cs API client method for fetching comparison dates
EstateManagmentUI.BusinessLogic/BackendAPI/IEstateReportingApiClient.cs Backend API client interface and implementation
EstateManagmentUI.BusinessLogic/EstateManagementUI.BusinessLogic.csproj New business logic project configuration
EstateManagementUI.BlazorServer/Program.cs Updated DI configuration to use new request handlers
EstateManagementUI.BlazorServer/Components/Pages/Home.razor.cs Refactored to use new model factory and authentication state
EstateManagementUI.BlazorServer/Factories/ModelFactory.cs New factory for converting between BusinessLogic and BlazorServer models
Multiple Razor pages Updated to use ModelFactory for data conversion
Test files Updated mocks to use SimpleResults Result type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread EstateManagmentUI.BusinessLogic/Services/StubbedMediatorService.cs Outdated
Comment thread EstateManagementUI.BlazorServer/Components/Pages/Home.razor.cs
Comment thread EstateManagementUI.BlazorServer/Components/Pages/Home.razor.cs
Comment thread EstateManagementUI.BlazorServer/Components/Pages/Merchants/New.razor Outdated
@StuartFerguson StuartFerguson merged commit d071db1 into main Jan 15, 2026
10 checks passed
@github-actions github-actions Bot deleted the task/#601_comparison_dates branch March 17, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get List of Comparison Dates

2 participants