Add company detail page.

This commit is contained in:
2025-11-15 05:32:46 +00:00
parent d5fbb55425
commit 80791a8cc9
18 changed files with 1348 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Input;
using Marechai.App.Helpers;
using Marechai.App.Presentation.Models;
using Marechai.App.Services;
using Uno.Extensions.Navigation;
@@ -14,13 +15,12 @@ namespace Marechai.App.Presentation.ViewModels;
public partial class CompaniesViewModel : ObservableObject
{
private readonly List<CompanyListItem> _allCompanies = [];
private readonly CompaniesService _companiesService;
private readonly IStringLocalizer _localizer;
private readonly ILogger<CompaniesViewModel> _logger;
private readonly INavigator _navigator;
private readonly List<CompanyListItem> _allCompanies = [];
[ObservableProperty]
private ObservableCollection<CompanyListItem> _companiesList = [];
@@ -146,8 +146,14 @@ public partial class CompaniesViewModel : ObservableObject
_logger.LogInformation("Navigating to company: {CompanyName} (ID: {CompanyId})", company.Name, company.Id);
// TODO: Implement company detail view
// For now, just log the navigation
// Navigate to company detail view with navigation parameter
var navParam = new CompanyDetailNavigationParameter
{
CompanyId = company.Id,
NavigationSource = this
};
await _navigator.NavigateViewModelAsync<CompanyDetailViewModel>(this, data: navParam);
}
/// <summary>