[stable32] Continue PR #7342: mobile signature placement flow#7415
Merged
vitormattos merged 69 commits intostable32from Apr 5, 2026
Merged
[stable32] Continue PR #7342: mobile signature placement flow#7415vitormattos merged 69 commits intostable32from
vitormattos merged 69 commits intostable32from
Conversation
Signed-off-by: Phillip <phillipxh@gmail.com>
Signed-off-by: Phillip <phillipxh@gmail.com>
Signed-off-by: Phillip <phillipxh@gmail.com>
Signed-off-by: Phillip <phillipxh@gmail.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- allow self worker-src on authenticated and public sign pages - normalize mailpit sign links to app-relative paths - add regression coverage for sign link extraction and sign-page CSP - configure native signing without TSA in the affected public-sign E2E flows - stabilize unauthenticated sign flows by clearing browser cookies before opening public links Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Updates to v1.2.0 which includes: - first-class pdf-elements:adding-ended event for interactive placement - event payload types (placed/cancelled) exported from package API - full test coverage for both event flows This aligns LibreSign to use the new stable event contract from pdf-elements, complementing the mobile signature placement flow refactorings in this PR. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
The PdfEditor component was still using setTimeout-based polling to detect
when pdf-elements placement completed. With pdf-elements v1.2.0, this event
is now exposed directly via 'pdf-elements:adding-ended' event with a complete
event contract including the placement reason ('placed' or 'cancelled').
Changes:
- Remove pendingAddedObjectCount and pendingAddCheckTimer state
- Remove polling functions: clearPendingAddCheck, finishPendingAddCheck,
checkSignerAdded, scheduleSignerAddedCheck
- Remove document event listener registration (mouseup, touchend, keyup)
- Add handleAddingEnded(event: Event) to relay pdf-elements:adding-ended
directly to pdf-editor:adding-ended with the reason payload
- Update emit type definition to include payload with reason field
This completes the v1.2.0 migration from polling-based to event-driven
completion detection.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Replace obsolete polling-based tests with new tests for the event relay pattern: - Remove: 'schedules a deferred completion check after a placement interaction' - Remove: 'emits adding-ended when object count increases after adding mode starts' - Remove: 'emits adding-ended when adding mode finishes without object delta' - Remove: 'keeps waiting while adding mode is active and count has not changed' - Remove: 'ignores completion checks when no add session is pending' - Remove: 'RULE: document listener lifecycle' test suite Add: 'RULE: pdf-elements event relay' test suite with: - 'relays pdf-elements:adding-ended event to pdf-editor:adding-ended' - 'relays cancelled event with reason' Update type definition PdfEditorVm: - Remove: checkSignerAdded, scheduleSignerAddedCheck - Add: handleAddingEnded(event: Event) All 60 PdfEditor tests now pass with event-driven model. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
dfa5839 to
a1ab4af
Compare
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #7408
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.