Skip to content

[stable31] feat: cancel signature request notification#6182

Merged
vitormattos merged 16 commits intostable31from
backport/6181/stable31
Dec 14, 2025
Merged

[stable31] feat: cancel signature request notification#6182
vitormattos merged 16 commits intostable31from
backport/6181/stable31

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6181

This event is dispatched when a signature request is canceled,
allowing listeners to send notifications to the affected user.

Signed-off-by: Vitor Mattos <[email protected]>
…celed

When a signature request with status ABLE_TO_SIGN is deleted,
dispatch the SignRequestCanceledEvent for each identify method.
This allows notification and email listeners to inform users
about the cancellation.

Signed-off-by: Vitor Mattos <[email protected]>
…lation

Creates the Activity components for the cancellation notification:
- SignRequestCanceled settings class
- SignRequestCanceled provider for activity stream

Signed-off-by: Vitor Mattos <[email protected]>
Implements the notification handler for canceled signature requests.
Sends in-app notifications to users when their signature request
is canceled, respecting user activity settings preferences.

Signed-off-by: Vitor Mattos <[email protected]>
Implements the notification message formatting in Notifier
to display cancellation notifications with proper subject
and message text.

Signed-off-by: Vitor Mattos <[email protected]>
Implements email notification for canceled signature requests.
Sends email to users informing them that their signature
request has been canceled.

Signed-off-by: Vitor Mattos <[email protected]>
Registers the cancellation event in the activity stream,
allowing users to see signature request cancellations
in their activity history.

Signed-off-by: Vitor Mattos <[email protected]>
Registers all three listeners (Notification, Mail, and Activity)
for the SignRequestCanceledEvent in the application bootstrap.

Signed-off-by: Vitor Mattos <[email protected]>
Adds the SignRequestCanceled setting and provider to the
activity section of info.xml, making it available in the
Nextcloud activity system.

Signed-off-by: Vitor Mattos <[email protected]>
Adds Behat tests covering three scenarios:
1. Deleting pending request sends cancellation notification
2. Deleting draft request does not send notification
3. Deletion removes signer from file list

Signed-off-by: Vitor Mattos <[email protected]>
Changes default values for email and push notifications to false
in LibresignActivitySettings, ensuring all LibreSign activity types
follow the same pattern and respect user opt-in preference.

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
Extracts the SignRequestCanceledEvent dispatching logic from
unassociateToUser into a dedicated dispatchCancellationEventIfNeeded
method for better code organization and single responsibility.

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
…ceTest

The RequestSignatureService constructor was updated to require 18 parameters
including IEventDispatcher, but the test was only passing 17 parameters.
This commit adds the missing mock dependency to fix all failing tests.

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 14, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (31) milestone Dec 14, 2025
@vitormattos vitormattos merged commit 823a85b into stable31 Dec 14, 2025
62 checks passed
@vitormattos vitormattos deleted the backport/6181/stable31 branch December 14, 2025 16:12
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant