diff --git a/docs/esign/contracts.md b/docs/esign/contracts.md index f4cfb83..f1eff8e 100644 --- a/docs/esign/contracts.md +++ b/docs/esign/contracts.md @@ -71,7 +71,7 @@ Permissions: `esign:sign` (see own inbox, sign when it is your turn), `esign:req browse OneDrive). Requests are visible to their signers and creator. - `esign.profile.sync({name, email})` → upserts the caller's signer profile (BFF passes ID-token claims). -- `esign.signers.list()` → signer profiles (manage). +- `esign.signers.list()` → registered IdP users with `esign:sign`, including those who have not opened Signatures; each includes eligible drives (manage). - `esign.config()` → `{drives: [{id, label}], canManage, maxPdfBytes}`; `drives` is empty without OneDrive. - `esign.drive.list({driveId, folderId?})` → `{folder, path, items: [{id, name, kind: folder|pdf, size, modifiedAt}]}`. Item IDs are only unique within their drive, so every drive call names one. diff --git a/src/features/esign/new-request-page.tsx b/src/features/esign/new-request-page.tsx index 749697f..077448e 100644 --- a/src/features/esign/new-request-page.tsx +++ b/src/features/esign/new-request-page.tsx @@ -621,11 +621,13 @@ export function NewEsignRequestPage({
  • {search.trim() !== "" ? "Nobody matches." - : eligible.length === 0 + : eligible.length === 0 && usedDrives.length > 0 ? `Nobody can sign documents of ${usedDrives.map(driveLabel).join(" and ")}. Who can is set in Signatures › Drives.` - : usedDrives.length > 0 - ? "Everyone allowed to sign these documents is added." - : "Everyone who can sign is added. People appear here after they open Signatures once."} + : eligible.length === 0 + ? "No registered people currently have permission to sign." + : usedDrives.length > 0 + ? "Everyone allowed to sign these documents is added." + : "Everyone who can sign is added."}
  • )}