Added new localized strings for "Receiver_SignField_ClickToSign" and "Receiver_Signing_Instruction" in `Resource.de-DE.resx`, `Resource.en-US.resx`, and `Resource.fr-FR.resx` to support receiver signing instructions.
Updated `ReceiverPage.razor` to integrate `IStringLocalizer<Resource>` for localization support. Introduced a helper method `L(string key, string fallback)` to fetch localized strings with a fallback mechanism.
Modified `_signatures` rendering logic to display localized signing instructions when applicable. Updated `FieldOverlays` to use the localized string for the signature field label. Enhanced the UI to show a styled message box with signing instructions when not all fields are signed.
Introduced a `FieldCursor` parameter in the `SenderPdfImageEditor`
component to allow customization of the cursor style for fields,
defaulting to `"move"`. Updated the `GetFieldStyle` method to
include this parameter and apply the cursor style dynamically.
Modified the `foreach` loop in `SenderPdfImageEditor.razor` to
pass the `FieldCursor` parameter when rendering fields. Added
a `cursor` CSS property to the inline styles generated by
`GetFieldStyle`.
Updated `ReceiverPage.razor` to pass `"pointer"` as the
`FieldCursor` value to `SenderPdfImageEditor`. Also added
`@onclick:stopPropagation` to prevent click event propagation
from field elements.
Added a `FieldClick` parameter to `SenderPdfImageEditor` to handle field click events. Introduced `OnFieldClickAsync` to invoke the `FieldClick` callback. Updated `ReceiverPage.razor` to bind `FieldClick` to `OnSignatureFieldClickAsync`.
Enhanced signature application workflow by tracking applied fields with `_appliedSignatureFieldIndexes` and managing pending fields with `_pendingSignatureFieldIndex`. Added `AllSignatureFieldsApplied` to validate submission readiness. Updated `VisibleFieldOverlays` and `SignedOverlays` to reflect applied fields.
Refactored signature popup logic with `SignaturePopupVisible` for better state management. Improved submission validation to ensure all fields are signed before allowing submission. Various minor adjustments to improve user experience and state handling.
Added `IAuthenticator` dependency to `CreateEnvelopeCommandHandler` to enable access code generation for envelope receivers. Updated the `AccessCode` property of `EnvelopeReceiver` to store a 5-character code generated by `Authenticator.GenerateCode`.
Introduced a new test class `CreateEnvelopeCommandTests` with a test method `CreateEnvelope_ShouldGenerateAccessCode_ForEnvelopeReceiver` to validate the functionality. The test ensures that the access code is generated, not null, not empty, and has the correct length.
Updated test setup to include necessary configurations and dependencies.
Enhanced ReceiverPage.razor to display and manage the last uploaded image file name. Introduced `_savedImageFileName` to track the selected image file and render it conditionally in the UI. Added methods to restore and clear image signature states (`RestoreImageSignatureIfAvailableAsync` and `ClearSignatureTabStateAsync`).
Updated `receiver-signature.js` to improve image signature handling:
- Added `getSelectedImageFileName` to retrieve the selected file name.
- Added `loadExistingImageSignature` to render saved image signatures.
- Improved `initializeImage` to prevent duplicate event listeners.
Exposed new functions in the public API of `receiver-signature.js` and ensured proper state management for image signatures across tabs.
Introduced a new `BlazorServerOptions` class to manage Blazor Server runtime configuration. Added support for configuring the maximum SignalR message size via `appsettings.json` under the `BlazorServer` section. Updated `Program.cs` to apply this configuration to SignalR hub options and register `BlazorServerOptions` with the DI container.
Updated the `style` attribute of `<canvas>` elements to include `display: block;` and `margin: 0 auto;`, ensuring horizontal centering. Changes applied to `rp-typed-signature-pad` and `rp-image-signature-pad`.
Added `_lastSavedSignatureTab` to store the last active signature tab. Updated `OpenSignaturePopup` to restore the last tab if a signature exists. Updated signature submission logic to save the current tab before closing the popup.
Reduced the z-index from 40 to 30 in the return statement of a method to modify the stacking order of the element. This change may affect how the element overlaps with others on the page.
Added `RestoreDrawSignatureIfAvailableAsync` in `ReceiverPage.razor` to restore previously captured signatures on the "Draw" tab using `JSRuntime`. Updated `OnPopupShownAsync` and `SetSignatureTabAsync` to invoke this method.
In `receiver-signature.js`, fixed comment formatting and added `_detachPad` to cleanly remove event listeners from signature pads. Updated `initialize` to handle reinitialization of canvases by detaching old event listeners and reattaching new ones, preventing redundant listeners and ensuring proper cleanup.
These changes enhance signature restoration functionality and improve event listener management to prevent memory leaks and ensure robust behavior.
The `CloseOnOutsideClick` property was set to `true`, allowing the popup to close when clicking outside of it. The `ShowCloseButton` property was also set to `true`, enabling the display of a close button. Additionally, the `CloseOnEscape` property was set to `true`, allowing the popup to close when the Escape key is pressed.
These changes enhance the user experience by providing multiple intuitive ways to close the popup, making it more user-friendly.
Updated the signature popup and canvas dimensions in `ReceiverPage.razor` to enhance usability. Increased the height of all signature canvases to 360px and adjusted styles for better alignment and display.
Refined `envelope-viewer.css` by modifying the `sender-image-editor__signature-image-wrap` class to reduce flex size and padding. Added a new class for signature images to ensure proper scaling and object-fit behavior. Improved spacing and readability in `sender-image-editor__signature-meta` and introduced a new `sender-image-editor__signature-place` class for styling the signature place with italic font and smaller size.
Enhanced `SenderPdfImageEditor` to render signature overlays
with dynamic positioning and metadata display. Introduced
`SenderPdfSignatureOverlay` record to represent signature
data. Updated `ReceiverPage` to integrate signature capture
and submission, including a confirmation popup and error
handling. Removed legacy signature caching logic.
Added new state variables and computed properties to manage
signature overlays and submission state. Marked legacy
`ReceiverSignedPage` route as obsolete. Improved styling in
`envelope-viewer.css` for signature overlays.
Updated `SenderPdfImageEditor` to conditionally display the "Remove" button using a new `ShowFieldRemoveButton` parameter. Integrated dynamic field overlays in `ReceiverPage` and `ReceiverSignedPage` using `SenderPdfFieldOverlay`. Removed `DrawSignaturePlaceholders` method and simplified `_displayPdfBytes` assignment. Added a guard clause in `OnFieldMouseDownAsync` to prevent unnecessary execution.
Replaced DevExpress DxReportViewer and XtraReport with a custom
solution using SenderPdfImageEditor and PdfPageImageRenderer.
PDF handling now uses byte arrays and renders pages as images,
removing dependencies on DevExpress reporting components.
- Removed DxReportViewer and XtraReport usage.
- Introduced SenderPdfImageEditor for PDF rendering.
- Added PdfPageImageRenderer for rendering pages as images.
- Removed BuildReport and DataUrlToBytes methods.
- Updated CSS and JavaScript references.
- Simplified navigation and state management.
- Refactored signature handling logic.
- Removed IDisposable implementation.
Added a fallback UI in `App.razor` to handle startup failures, including a message for unsupported browsers and a reload button. Updated `blazor.web.js` to use `autostart="false"` and added JavaScript for error handling.
Introduced an HTTP warning in `LoginReceiverPage.razor` to alert users when using an unencrypted connection. Added the `IsSecureRequest` property to determine if the request is secure.
Disabled native WebAssembly builds by setting `<WasmBuildNative>` to `false` in `EnvelopeGenerator.Server.Client.csproj` and `publish.bat`.
Incremented version numbers in `EnvelopeGenerator.Server.csproj` to `1.11.0-beta`. Added new CSS classes for styling the fallback UI.
Updated project version, file version, and assembly version:
- Version updated from 1.9.0-beta to 1.10.0-beta.
- FileVersion updated from 1.9.0.0 to 1.10.0.0.
- AssemblyVersion updated from 1.9.0.0 to 1.10.0.0.
This marks a new release milestone for the project.
Introduced a resizable upload panel feature in the
`CreateEnvelopeWizardPopup` component, allowing users to adjust
the panel's width dynamically.
- Added a draggable splitter (`sender-create-wizard__splitter`)
with mouse event handling for resizing.
- Updated `sender-create-wizard__body-layout` to support dynamic
grid column definitions using `--sender-upload-panel-width`.
- Added Razor methods (`StartUploadPanelResize`,
`OnBodyLayoutMouseMove`, `StopUploadPanelResize`) to handle
resizing logic.
- Defined constants for min/max panel widths.
- Enhanced CSS for resizing behavior, including transitions,
cursor changes, and visual improvements for the splitter.
- Adjusted layout and padding for better alignment with the
resizable design.
These changes improve user experience by enabling dynamic
adjustment of the upload panel's width.
Added a `DxPopup` to confirm cancellation of the wizard, with
"Yes, cancel" and "No" options. Modified the "Cancel" button
to trigger the new `OpenCancelConfirm` method. Introduced a
private `_cancelConfirmVisible` flag to manage popup visibility.
Implemented `OpenCancelConfirm` and `ConfirmCancelAsync`
methods to handle popup display and cancellation confirmation.
Updated `OnPopupVisibleChangedAsync` and `ResetWizardState`
to reset `_cancelConfirmVisible` appropriately.
Introduced state persistence to `SenderPage.razor` using the
`PersistentComponentState` service, enabling the page to save
and restore its state across sessions. Added `IDisposable`
implementation for resource cleanup and refactored envelope
data handling into reusable methods for improved readability
and maintainability.
Modified `appsettings.Secrets.json` to switch the notification
consumer type from `RabbitMQ` to `API`.
Refactor the `DependencyInjection` class to enhance the
validation and setup process for `RabbitMQ` when used as
the `ConsumerType`. Remove the outdated logic for adding
an HTTP client based on `options.ApiUrl`. Introduce a
check for `options.RabbitMQ` and throw a detailed
`InvalidOperationException` if it is missing. Use
`services.AddMessagingServiceClient` to configure the
messaging service client with the appropriate section name.
- Enhanced `AddAutoMapper` configuration for flexibility.
- Replaced `IEnvelopeMailService` with `IEnvelopeNotificationService`.
- Migrated from `IUserRepository` to `EGDbContext` for data access.
- Updated RabbitMQ configuration to use `AddMessagingServiceHttpClient`.
- Removed `AddUserManager` and `AddDispatcher` registrations.
- Added conditional `FluentValidation` dependencies for target frameworks.
- Upgraded `MediatR` to 14.2.0 and `AutoMapper` to 16.2.0.
- Added `HtmlSanitizer` dependency.
- Improved error handling and logging in `ReadOnlyController`.
The `.gitignore` file was updated to exclude specific files and directories related to the `EnvelopeGenerator.Server` project, such as `FodyWeavers.xsd`, `TekH - SoftHSM Test.md`, `tekh_softHSM_test.md`, `publish-output`, and `appsettings.Secrets.json`.
Added new configuration sections to `appsettings.Secrets.json`:
- `Crypt` section with `Pkcs11` settings for cryptographic operations.
- `Notification` section with `RabbitMQ` settings for message handling, including host, port, credentials, and queue/exchange details.
These changes improve environment-specific file management and enable integration with external services.
Updated the `publish.bat` script to use delayed expansion (`!OUTPUT!`) for the `OUTPUT` variable to ensure correct value handling in block contexts. Updated the "Removed" message to use delayed expansion for consistency.
Added two new parameters to the `dotnet publish` command:
- `-p:WasmBuildNative=true` to enable native WebAssembly builds.
- `-m:4` to set the maximum degree of parallelism to 4 for improved build performance.
Added new localized strings for improved user guidance in `Resource.*.resx` files, including instructions and messages for resending access codes. Updated `LoginReceiverPage.razor` to include detailed UI elements for access code guidance, such as step-by-step instructions and a resend button with dynamic feedback.
Introduced new state variables (`IsResending`, `ResendRequestFailed`, `ResendResult`) and implemented the `ResendAccessCodeAsync` method to handle resend logic. Modified `AuthService.RequestEnvelopeReceiverAccessCodeAsync` to support an `autoGenerated` flag, enabling differentiation between automatic and manual access code requests.
These changes improve the user experience by providing clearer instructions and a streamlined process for resending access codes.
Introduced a mechanism to limit repeated access code requests
within a configurable time period using `IMemoryCache` and a
new `RepeatRequestBlockingPeriod` configuration in
`SendAccessCodeParams`.
Key changes:
- Added `SendAccessCodeParams` configuration to `appsettings.json`.
- Updated DI in `DependencyInjection.cs` to include `SendAccessCodeParams`.
- Enhanced `SendAccessCodeCommand` with `MultipleRequestsAllowed`.
- Updated `SendAccessCodeCommandHandler` to handle caching logic:
- Added `IsAccessCodeRequestsDisabled` and `DisableAccessCodeRequests`.
- Modified `AuthController` to support `autoGenerated` query parameter.
- Improved error handling and documentation.
These changes ensure better control over access code requests
and prevent abuse by limiting repeated requests within a
configurable time window.
Updated the `OnInitializedAsync` method in `LoginReceiverPage.razor` to handle cases where the envelope has already been signed. The method now checks the result of `RequestEnvelopeReceiverAccessCodeAsync` and redirects the user to the `/envelope/signed-result` page if the result is `SendAccessCodeResult.AlreadySigned`.
Encapsulated the access code request logic in a new `SendAccessCodeCommand` using MediatR. Introduced a `SendAccessCodeResult` enum to standardize outcomes. Refactored `AuthController` to delegate access code handling to the command, simplifying the controller and reducing dependencies.
Updated `AuthService` to map HTTP responses to `SendAccessCodeResult`. Improved error handling and edge case management in `SendAccessCodeCommandHandler`. Centralized history recording and notification logic in the command handler for better maintainability and separation of concerns.
Update DocumentSharedNotification to mirror DocumentReceivedNotification URL strategy.
Replace externally supplied link strings with init-only Origin and ReadOnlyId inputs and compute LINK_TO_DOCUMENT / LINK_TO_DOCUMENT_TEXT internally via ToEnvelopeKey().
Add strongly typed notification records for remaining email templates that do not require document URL composition.
Each record maps template placeholders to explicit properties and returns the matching EmailTemplateType.
Also includes XML documentation so placeholder-to-property mapping is self-describing.
Added `id` and `name` attributes to `<select>` elements in `CreateEnvelopeWizardPopup.razor` and `SenderEditorPage.razor` for better accessibility. Replaced hardcoded dropdown values with `FinalEmailType` enum for maintainability.
Introduced `@bind:after` event handlers to track user overrides for `FinalEmailToCreator` and `FinalEmailToReceivers`. Added flags `_finalEmailToCreatorUserOverridden` and `_finalEmailToReceiversUserOverridden` to ensure user changes are respected.
Refactored default value logic into `ApplyEnvelopeTypeFinalEmailDefaults` and updated `NormalizeSettings` to reset override flags. Improved code readability by replacing magic numbers with named constants.
Updated `_finalEmailToCreator` and `_finalEmailToReceivers` in `SenderEditorPage.razor` to use `FinalEmailType.No` directly instead of casting to `(int)`. This improves code readability and ensures type safety by eliminating unnecessary type casting.
Replaced raw `int` values with the strongly-typed `FinalEmailType`
enum for `FinalEmailToCreator` and `FinalEmailToReceivers` across
the codebase. Updated DTOs, entities, commands, handlers, Razor
components, and test controllers to reflect this change.
This improves type safety, code readability, and maintainability.
Default values now use `FinalEmailType.No` instead of integer
casting. Adjusted database mappings and added necessary imports
to support the new enum type.
This commit removes all code related to the `20250701151754_InitialCreate` migration, including:
- The designer file (`20250701151754_InitialCreate.Designer.cs`)
- The migration implementation file (`20250701151754_InitialCreate.cs`)
- The snapshot file (`EGDbContextModelSnapshot.cs`)
These files contained schema definitions and logic for creating database tables, relationships, and constraints for entities such as `EmailOut`, `ClientUser`, `Group`, `User`, `Envelope`, `Receiver`, and others.
The removal indicates that the migration and its schema definitions are no longer needed or have been deprecated in favor of a different approach to managing the database schema.
Simplified the `<select>` element by replacing `value` and `@onchange` with `@bind` for two-way data binding. Updated `OnEnvelopeTypeChanged` to remove the `ChangeEventArgs` parameter and directly use `_selectedEnvelopeType`. Removed redundant parsing logic and ensured defaults are applied only when `_selectedEnvelopeType` is not null. Cleaned up unnecessary code for better readability and maintainability.
Introduce conditional compilation to differentiate `Id` property
behavior between `NET` and `NETFRAMEWORK` environments. For `NET`,
the `Id` property is of type `EnvelopeType` with `[Key]` and
`[Column("GUID")]` attributes. For `NETFRAMEWORK`, the `Id` property
is of type `int` with a default value of `0`, retaining `[Key]`,
`[DatabaseGenerated(DatabaseGeneratedOption.Identity)]`, and
`[Column("GUID")]` attributes. These changes ensure compatibility
and proper configuration across frameworks.
Updated `EnvelopeDto` to use `EnvelopeTypeDefaultsDto` for the `Defaults` property, decoupling domain entities from external layers.
Refactored `IEnvelopeTypeRepository`, `IEnvelopeTypeService`, and `EnvelopeTypeService` to use `EnvelopeType` as the identifier type instead of `int`, improving domain specificity and consistency.
Introduced caching in `EnvelopeTypeService` with a static `CacheKey` and `IMemoryCache` dependency for performance optimization.
Aligned `EnvelopeTypeRepository` with the updated identifier type and repository interface.
Updated ReplacePlaceholderExtensionsTests to include new
properties `EnvelopeUuid`, `Origin`, and `ReceiverSignature`
to enhance functionality. Removed the unused `LinkToDocument`
property. Adjusted `NamePortal` formatting for consistency.
Replaced all instances of `EnvelopeTypeId` (int/int?) with `Type`
(EnvelopeType/EnvelopeType?) across the codebase to improve type
safety and readability. Updated affected properties, methods, and
logic in DTOs, commands, handlers, and Razor components.
Introduced conditional compilation to handle differences between
.NET and .NET Framework where necessary. Removed obsolete helper
methods for `EnvelopeTypeId`. This refactor ensures consistent use
of the strongly-typed `EnvelopeType` enum, reducing the risk of
invalid values and aligning with best practices.
Removed the `ContractType` and `CertificationType` properties
from the `EnvelopeClientDto` class in `EnvelopeReceiverDto.cs`
as they are no longer needed. Updated the `Extensions` class
in `Fake.cs` to remove references to these properties,
including their initialization logic.
Removed `CertificationType` and `ContractType` properties and logic across the codebase as they were redundant. Updated `EnvelopeType` to include a validation extension method for improved data integrity. Refactored `CreateEnvelopeWizardPopup.razor` and other UI components to simplify handling of `EnvelopeType`.
Conditionally included `CertificationType` and `ContractType` for `NETFRAMEWORK` targets using `#if NETFRAMEWORK` directives to ensure compatibility. Removed unused enums, imports, and methods. Updated `CreateEnvelopeCommandHandler` and related classes to reflect these changes.
Introduced new extension methods for the `IEnvelope` interface:
- Added `Type` method to retrieve and validate `EnvelopeTypeId`, throwing a `DataIntegrityException` for invalid values.
- Added `SetType` method to set the `EnvelopeTypeId` based on a given `EnvelopeType`.
- Added `WithType` method to enable setting `EnvelopeTypeId` with method chaining.
Included conditional compilation for .NET Framework compatibility and added necessary `using` directives for constants and exceptions.
A new namespace `EnvelopeGenerator.Domain.Constants` was added, containing the `EnvelopeType` enumeration. This enum introduces three values: `SimpleSignature` (1), `ReadAndConfirm` (2), and `AdvancedSignature` (3), to represent different envelope types.
Updated the `EnvelopeDto` class to rename the `EnvelopeType` property to `Defaults` for better clarity. Updated all references to `EnvelopeType` in `SenderEditorPage.razor` to use the new `Defaults` property. This includes updates to properties such as `_sendReminderEmails`, `_firstReminderDays`, `_reminderIntervalDays`, `_expiresWhenDays`, and `_expiresWarningWhenDays`. Ensured consistent usage of the renamed property across the application.
Replaced all references to `Envelope.Type` with `Envelope.Defaults` across the application for consistency and clarity.
- Updated `MappingProfile` to map `Defaults.Title` instead of `Type.Title` for `EnvelopeTypeTitle`.
- Modified `ReadEnvelopeQueryHandler` to use `Defaults` in place of `Type` and updated query includes.
- Renamed `Type` to `Defaults` in the `Envelope` entity while preserving its foreign key relationship.
- Updated `EnvelopeModel` to retrieve `Defaults` using `EnvelopeTypeModel.GetById`.
- Refactored `frmEnvelopeMainData` to replace all `Type` references with `Defaults` and adjusted logic for `ContractType` and `EnvelopeType`.
These changes ensure consistent naming and improve code readability.
Renamed `EnvelopeTypeDto` to `EnvelopeTypeDefaultsDto` to better reflect its purpose as a DTO for default envelope type configurations.
Updated all references to `EnvelopeTypeDto` across the application, including:
- Service interfaces (`IEnvelopeTypeService`) and implementations.
- AutoMapper mappings in `MappingProfile.cs`.
- Query handlers (`ReadEnvelopeTypesQuery` and `ReadEnvelopeTypesQueryHandler`).
- Razor components (`CreateEnvelopeWizardPopup.razor`, `SenderEditorPage.razor`, `SenderPage.razor`).
- Client-side services (`EnvelopeTypeService`).
- Controller (`TestEnvelopeTypeController`).
These changes ensure consistency and clarity in naming conventions while maintaining functionality.
Replaced the `EnvelopeType` class with `EnvelopeTypeDefaults` across the codebase to standardize the data model. Updated DTOs, repositories, services, mappings, and database contexts to reflect this change.
Key updates include:
- Updated `EnvelopeDto` to use `EnvelopeTypeDefaults`.
- Modified `IEnvelopeTypeRepository` and `IEnvelopeTypeService` interfaces.
- Adjusted mappings in `MappingProfile.cs` for `EnvelopeTypeDefaults`.
- Updated `ReadEnvelopeTypesQueryHandler` and `CreateEnvelopeCommandHandler` to use `EnvelopeTypeDefaults`.
- Replaced `EnvelopeType` with `EnvelopeTypeDefaults` in `EnvelopeTypeModel.vb`, `frmEnvelopeMainData.vb`, and `EGDbContextBase`.
- Introduced the `EnvelopeTypeDefaults` class with updated schema mappings.
- Updated `EnvelopeTypeRepository` and `TestEnvelopeTypeController` to use `EnvelopeTypeDefaults`.
These changes ensure consistency and improve maintainability across the application.
The "Certification Type" field, including its label, tooltip, and dropdown options, has been removed from the form grid in `CreateEnvelopeWizardPopup.razor`. The associated `OnCertificationTypeChanged` method, which handled changes to this field, was also removed. The form layout was adjusted to reflect the removal of this field, simplifying the structure.