Commit Graph

3 Commits

Author SHA1 Message Date
58a162b84a Add phone number validation for advanced envelopes
Enforced phone number validation for `AdvancedSignature` envelopes:
- Introduced `CreateEnvelopeCommandValidator` to ensure receivers have non-empty phone numbers for advanced signatures.
- Updated `CreateEnvelopeWizardPopup.razor` to dynamically adjust phone number placeholder text and validate input.
- Added `ValidatePhoneNumber` method and integrated validation into the wizard's state management.
- Introduced `IsAdvancedSignatureSelected` helper property for conditional logic.
- Enhanced UI to reflect phone number requirements for advanced signatures.

Added a test case in `CreateEnvelopeCommandTests.cs` to verify that creating an advanced signature envelope without a phone number throws a `BadRequestException`.
2026-11-30 16:52:29 +01:00
402100a526 Add support for phone numbers in receiver workflow
Enhanced the envelope creation workflow to handle phone numbers:
- Added `PhoneNumber` property to `RecentReceiverSuggestionDto`.
- Updated `MappingProfile` to map `PhoneNumber`.
- Modified LINQ queries to include `PhoneNumber` in selection/grouping.
- Enhanced `CreateEnvelopeWizardPopup.razor` to display and manage phone numbers.
- Updated `CreateEnvelopeWizardReceiver` to include `PhoneNumber`.
- Enhanced `ReceiverFilterCriteria` and `ReceiverSuggestionFilterHandler` to filter by `PhoneNumber`.
- Adjusted CSS layout to accommodate the new phone number field.
- Added a unit test to ensure `PhoneNumber` persistence.

These changes allow users to input, display, and manage phone numbers alongside existing receiver details like name and email.
2026-11-30 16:34:14 +01:00
7b5cf30baf Generate access codes for envelope receivers
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.
2026-11-24 10:07:53 +01:00