* feat(notification): ✨ Add notification removal feature
Implemented a new method `RemoveNotificationAsync` in the `INotificationBuilder` interface to allow the removal of toast notifications for specific emails identified by a unique ID.
This change enhances the notification management by ensuring that notifications can be cleared when emails are marked as read. The `NotificationBuilder` class has been updated to include logic for removing existing notifications and to use the unique ID as a tag for the toast notifications, facilitating their removal. Additionally, the `AppShellViewModel` has been modified to call this new method when an email is updated and marked as read.
This improvement aims to provide a better user experience by keeping the notification area relevant and up-to-date.
* feat(notification): ✨ Add MailReadStatusChanged event handling
Introduced a new event system for handling email read status changes. This includes the addition of a listener in `NotificationBuilder` that removes notifications when an email is marked as read.
• Added `MailReadStatusChanged` record to represent the event.
• Registered a listener in `NotificationBuilder` to handle notification removal.
• Removed the `OnMailUpdated` method from `AppShellViewModel`, delegating notification management to the new event system.
• Updated `MailService` to send `MailReadStatusChanged` events when emails are marked as read.
This change improves the communication between components and enhances the notification management system.
* refactor: Remove comments
* Little cleanup.
---------
Co-authored-by: Burak Kaan Köse <bkaankose@outlook.com>
* feat(preferences): ✨ Add email sync interval setting
Introduced a new property `EmailSyncIntervalMinutes` in the `IPreferencesService` interface to allow users to configure the email synchronization interval in minutes. This feature enhances user control over email sync behavior.
• Updated `resources.json` to include translations for the new setting.
• Implemented the logic for the new property in `PreferencesService.cs`, with a default value of 3 minutes.
• Added binding and UI support in `AppPreferencesPageViewModel.cs` and `AppPreferencesPage.xaml` to allow users to modify the sync interval.
• Integrated the new setting into `ServerContext.cs` to dynamically adjust the synchronization timer based on user preferences.
This change improves the user experience by providing customizable email synchronization settings.
* Minimum interval and added an icon.
* Proper SetProperty usage.
* Making sure the minimum sync interval is 1 in the ServerContext.
* Making sure the minimum is applied to first trigger of the sync timer.
---------
Co-authored-by: Burak Kaan Köse <bkaankose@outlook.com>
* feat: Enhanced sender avatars with gravatar and favicons integration
* chore: Remove unused known companies thumbnails
* feat(thumbnail): add IThumbnailService and refactor usage
- Introduced a new interface `IThumbnailService` for handling thumbnail-related functionalities.
- Registered `IThumbnailService` with its implementation `ThumbnailService` in the service container.
- Updated `NotificationBuilder` to use an instance of `IThumbnailService` instead of static methods.
- Refactored `ThumbnailService` from a static class to a regular class with instance methods and variables.
- Modified `ImagePreviewControl` to utilize the new `IThumbnailService` instance.
- Completed integration of `IThumbnailService` in the application by registering it in `App.xaml.cs`.
* style: Show favicons as squares
- Changed `hintCrop` in `NotificationBuilder` to `None` for app logo display.
- Added `FaviconSquircle`, `FaviconImage`, and `isFavicon` to `ImagePreviewControl` for favicon handling.
- Updated `UpdateInformation` method to manage favicon visibility.
- Introduced `GetBitmapImageAsync` for converting Base64 to Bitmap images.
- Enhanced XAML to include `FaviconSquircle` for improved UI appearance.
* refactor thumbnail service
* Removed old code and added clear method
* added prefetch function
* Change key from host to email
* Remove redundant code
* Test event
* Fixed an issue with the thumbnail updated event.
* Fix cutted favicons
* exclude some domain from favicons
* add yandex.ru
* fix buttons in settings
* remove prefetch method
* Added thumbnails propagation to mailRenderingPage
* Revert MailItemViewModel to object
* Remove redundant code
* spaces
* await load parameter added
* fix spaces
* fix case sensativity for mail list thumbnails
* change duckdns to google
* Some cleanup.
---------
Co-authored-by: Aleh Khantsevich <aleh.khantsevich@gmail.com>
Co-authored-by: Burak Kaan Köse <bkaankose@outlook.com>
* Refactor and enhance settings pages and solution structure
- Added transition effects to multiple pages for enhanced UI animations.
- Moved `AboutPage` and `PersonalizationPage` to settings folder.
- Put version into settings card instead of text.
* Fixed main logo in about page and changed version styles
* revert platforms
* Remove useless imprt
* Apply this animation globally
* Added resize transition for mail rendering page
* remove entrance transition from rendering page
Issue: Account selector dialog pops up endlessly for Outlook/Live accounts. (Stored account not being correctly identified)
Fix: Ignore case differences, add null safety and remove whitespaces when retrieving stored accounts.
* Added sync error factories for outlook and gmail.
* Implement ObjectCannotBeDeletedHandler for OutlookSynchronizer.
* Remove debug code.
* Implement del key to delete on mail list.
* Revert debug code.
* Remove account rename dialog. Implement edit account details page.
* Remove unused folder definition.
* Adressing theming issues and adding reset button. Changing the UI a bit.
* Enable auto indent in initializer. Use service from the application.
* Adding color picker to acc setup dialog. Changing UI of edit acc details page.