Repository navigation
feat(esign): list signed files, show them in OneDrive and delete them - #218
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Signatures › Signed files (/dashboard/esign/files) lists every completed request's signed PDF: title, where it was saved (drive › folder/file), whether it was saved (Saved, Saving…, Not saved, Email failed, Deleted, Dashboard only), who signed and when. Search by title, file or signer; filter by when everyone signed (any time, last 30 days, this year) and by drive; Mine or Everyone for managers, as on Requests. A row opens its request. Actions: - Download PDF: the request's current version, for everyone who sees it. - Show in folder and Open in OneDrive (managers allowed on the drive): the folder's and the file's webUrl, read from the drive at the click, so a file moved or renamed inside the shared folder is still found. The tab opens in the click and follows once the drive answered, so popup blockers allow it. SharePoint documents no address that opens a folder with one file selected, so Show in folder opens the folder. - Delete… says what it deletes: the copy in OneDrive or SharePoint (to the recycle bin, restorable for 93 days; the request stays), the request in the dashboard (for good; the copy stays), or both. Why a section rather than Requests' Signed filter: Requests is about who still has to sign; this list is about the files, their place in OneDrive and what happens to them there, with its own columns, filters and actions. The request page says when the copy was deleted from OneDrive, and its activity names who did it. Server functions getEsignSignedFiles, getEsignSignedPdf (esignReadMiddleware), locateEsignFile and deleteEsignFile (esignRequestsManageMiddleware), each with an MCP operation (esign.files.list, .content, .locate, .delete). Needs the @polinetwork/backend release with esign.requests.locateFile and deleteFile (PoliNetworkOrg/backend feat/esign-signed-files): until then typecheck fails on the missing procedures.
lorenzocorallo
force-pushed
the
feat/esign-signed-files
branch
from
December 5, 2026 19:46
34f2f6a to
3cdbd66
Compare
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.
What
Signatures › Signed files (
/dashboard/esign/files) shows every completed request's signed PDF and where it was saved, with actions on the file in OneDrive or SharePoint.Drive › folder/file.pdf, or "Kept in the dashboard only"), Saved (Saved · Saving… · Not saved · Email failed · Deleted · Dashboard only, with the delivery error as a tooltip), Signed by, Signed on. A row opens its request.?scope=&period=&drive=). Pagination from 20 rows.webUrl, read from the drive at the click (esign.requests.locateFile), so a file moved or renamed inside the shared folder is still found. A file no longer there gets a toast instead. The tab opens during the click, so popup blockers allow it, then goes to the address once the drive answers.Why a section of its own, not Requests' "Signed" filter
Requests is about who still has to sign, with a status, turn and progress column. This list is about the outputs: where each PDF is in OneDrive, whether it got there, and what to do with it there. It needs its own columns, filters (drive, signing date) and row actions. Requests' "Signed" filter is unchanged.
"Show in folder" and file highlighting
The folder's Graph
webUrlopens the folder in OneDrive for Business or SharePoint. Microsoft documents no URL parameter that opens a folder view with one file selected. The community-knownForms/AllItems.aspx?id=<file path>&parent=<folder path>opens the file's preview over the folder instead, needs the library's view URL and isn't documented, so it isn't used. "Open in OneDrive" opens the file itself.Conventions
nav.ts(esign-files). New server functions:getEsignSignedFilesandgetEsignSignedPdf(esignReadMiddleware),locateEsignFileanddeleteEsignFile(esignRequestsManageMiddleware). Each has an MCP operation (esign.files.list,.content,.locate,.delete).tests/server-security.test.mjslistsfiles-page.tsxwithesign:requests:manageand its mutations (deleteEsignFile,deleteEsignRequest).signed-files.ts) are covered bytests/esign-signed-files.test.mjs.docs/esign/contracts.mdandTRACKER.mdare updated.Verification
pnpm check,pnpm typecheck,pnpm testandpnpm buildpass locally against the backend branch's types, linked intonode_modules, which is not committed.AGENT_BACKEND_TOKENagainst a local backend from the backend branch, with its mock drive and seeded completed requests), at desktop and phone widths:Merge order
@polinetwork/backendand deploy the backend.@polinetwork/backendhere to that release. Until then CI typecheck fails onesign.requests.locateFile,deleteFile,delivery.fileDeletedandoutputDriveLabel. Then merge this PR.