Repository navigation
feat(identity): reject identification documents with reason and replacement - #9434
Draft
vitormattos wants to merge 7 commits into
Draft
vitormattos wants to merge 7 commits into
vitormattos wants to merge 7 commits into
Conversation
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>
…ntract Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Contributor
Code Metrics ReportNote: Metrics describe the revision analyzed by the successful PHPUnit run. Newer commits with pending, canceled or failed checks may not yet be represented in this report.
Details | | main (b02d0b8) | #9434 (d02a7cc) | +/- |
|---------------------|----------------|-----------------|--------|
- | Coverage | 76.1% | 75.9% | -0.3% |
| Files | 500 | 502 | +2 |
| Lines | 28578 | 28735 | +157 |
+ | Covered | 21776 | 21827 | +51 |
- | Test Execution Time | 1s | 3m12s | +3m11s |Code coverage of files in pull request scope (59.5% → 56.1%, patch 32.5%)
Reported by octocov |
This branch has not been deployed
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.
Summary
Implements #9370 on top of the merged approval UX from #9360.
Reviewers can now reject an identification document with a required reason, rather than treating Delete as a rejection. The recorded decision retains the reviewer and date for auditing, allows the signer to upload a replacement, and does not cancel the original signing request.
Changes
Real UI screenshots — before vs after
These are captures from a real LibreSign UI running in an isolated Nextcloud 36 instance at 1440 × 900. The demonstration uses a synthetic signer and file (
Example Signer,synthetic-id.pdf). To exercise each UI state reproducibly without sharing any personal documents, the screenshots use an instrumented Playwright API-response fixture, including a simulated rejection response. They demonstrate the actual rendered frontend, not an independently completed backend end-to-end signing test.main)Sequential reviewer walkthrough
Verification performed
npm run ts:checknpm run dev(after installing viewer dependencies)Review guidance: Please focus on the authorization boundary for rejection; reviewer concurrency and persistence; ability to replace a rejected upload without unblocking signature prematurely; recipient privacy; notification retry/idempotency; and consistency between account/guest signers. The PR is intentionally a draft until integration verification and CI are complete.
Scope: No merge or production deployment is requested.