This version introduces several significant changes to the EmailAnalyzer.Client
project, focusing on enhancing the authentication process, adding new pages, and updating dependencies. The most important changes include adding a new DateSelectionPage
, updating the authentication flow, and modifying the project dependencies.
New Pages and Routing:
EmailAnalyzer.Client/AppShell.xaml
: Added newShellContent
elements forDateSelectionPage
andSummaryPage
routes.EmailAnalyzer.Client/AppShell.xaml.cs
: Registered routes forDateSelectionPage
andSummaryPage
in theAppShell
constructor.
Authentication Enhancements:
EmailAnalyzer.Client/App.xaml.cs
: Added a helper property to access services from anywhere in the app and implemented token retrieval and logging in theOnStart
method. [1] [2]EmailAnalyzer.Client/Pages/LoginPage.xaml.cs
: Updated the base address of theHttpClient
to the production URL.
New Features:
EmailAnalyzer.Client/Pages/DateSelectionPage.xaml
: Created a new page for selecting the date range for email analysis.EmailAnalyzer.Client/Pages/DateSelectionPage.xaml.cs
: Implemented logic for date range selection, token verification, and navigation to the summary page.
Project Configuration:
EmailAnalyzer.Client/EmailAnalyzer.Client.csproj
: Added new package references for logging and MongoDB, and included a folder for ViewModels. [1] [2]
Code Cleanup:
- Removed
MainPage.xaml
and its corresponding code-behind fileMainPage.xaml.cs
as they are no longer needed. [1] [2]