3 Commits

Author SHA1 Message Date
651b33171b Reintroduce MailingEmailMap and enhance template handling
- Added `MailingEmailMap` back to `EntityMapperConfiguration.cs`.
- Improved error handling in `MailingRepository.cs` by adding a check for `MailingTemplate` mapping.
- Updated template retrieval logic to fetch by ID when `TemplateId` is greater than 0.
- Modified `GetAllAsync` to include an additional parameter for mapping `MailingTemplate`.
- Enhanced `MailingEdit.tsx` to pre-fill form fields with existing template data for existing mailings.
- Updated template selection logic to ensure form data reflects the current state of the selected template.
2025-08-24 09:17:20 -05:00
5a6c57bade Add unsubscribe list management functionality
This commit introduces comprehensive functionality for managing unsubscribe lists within the application. Key changes include:

- Creation of new DTOs, services, repositories, and controllers for unsubscribe list operations.
- Updates to `MailingsController.cs` and `TestEmailListsController.cs` to include necessary using directives.
- Registration of `IUnsubscribeListService` and `IUnsubscribeListRepository` in `Program.cs`.
- Implementation of the `UnsubscribeListsController` with API endpoints for CRUD operations.
- Introduction of the `UnsubscribeList` entity and its mapping to database columns.
- Modifications to existing classes, including `Mailing` and `Target`, to reference unsubscribe lists.
- Frontend updates to TypeScript interfaces and components for displaying and selecting unsubscribe lists.

These enhancements provide a more robust email management system.
2025-08-24 08:04:53 -05:00
ba01cfcaf7 Refactor authentication and restructure project architecture
This commit removes the `AuthenticationController.cs` and related DTOs, indicating a shift in authentication handling. The `BaseController.cs` has been updated to remove the authorization attribute, affecting access control. Multiple controllers have been restructured to reference `Surge365.Core.Controllers`.

Significant changes in `Program.cs` enhance security and service management with new middleware and JWT configurations. The project file now includes references to `Surge365.Core`, and the `IAuthService` interface has been updated accordingly.

React components have been modified to support the new authentication flow, including token refresh handling. The `customFetch.ts` utility has been improved for better session management. Mapping classes have been introduced or updated for improved entity mapping.

Overall, these changes enhance the application's architecture, security, and data handling processes.
2025-06-28 09:26:41 -05:00