Repository navigation
feat(esign): create folders and jump along the path in the drive browser - #216
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 27 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. |
Choosing where to save the signed PDF (New request's save row) now offers "New folder" in the browser's bar: a name field at the top of the list, checked on Enter against OneDrive's rules (empty, " * : < > ? / \ |, a trailing dot, reserved names) and the names already in the folder, whatever their case. The backend creates it (esign.drive.createFolder, through the new createEsignDriveFolder server function and MCP operation esign.drives.createFolder) and the browser opens it with the focus on "Save here"; the backend's refusal (a name taken by a file the browser doesn't list) shows at the field. The bar's path is now a breadcrumb from the drive's root, built from the listing's new `ancestors`: every folder above opens with a click, nothing above the root exists, and deep paths keep the root and the open folder with the ones between in a "…" menu. The first listing shows skeleton rows, a folder being opened dims the list, and a folder that won't list shows its error with "Try again". Needs the @polinetwork/backend release with esign.drive.createFolder and listing ancestors (PoliNetworkOrg/backend feat/esign-drive-folders): until then typecheck fails on the missing procedure and field.
lorenzocorallo
force-pushed
the
feat/esign-drive-folders
branch
from
December 5, 2026 19:45
06b354f to
78a1adf
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
New request › save row › folder browser (
src/features/esign/drive-browser.tsx, also used by the document picker):FolderPlusbutton in the browser's bar, and in an empty folder's message, opens a name field at the top of the list. Enter creates (plain Enter never reaches the composer; ⌘/Ctrl+Enter still sends), Escape or ✕ closes. Checked on Enter, then again on blur once it failed, never while typing: empty," * : < > ? / \ |, a trailing dot, OneDrive's reserved names, over 250 characters, and a name already in the folder whatever its case (folder-name.ts, unit-tested). The backend's own refusal (e.g. a name taken by a non-PDF file the browser doesn't list) shows at the field word for word. On success the browser opens the new folder and puts the focus on "Save here"; a live region says "Folder … created.".ancestors: each folder above the open one is a button; nothing above the root. The root is the drive's name, or a house when the drive picker already names it; deeper than three levels, the folders between the root and the open one are in a "…" menu, so the open folder keeps its room in the narrow column. Up one folder stays.aria-busy) and the spinner shows; a folder that won't list shows its error with "Try again" (Up and the breadcrumb still work), and "Save here" is disabled meanwhile.createEsignDriveFolder(esignRequestsManageMiddleware, POST) →esign.drive.createFolder; listed intests/server-security.test.mjswith its consumer, and MCP operationesign.drives.createFolder. It doesn'trouter.invalidate: no loader reads drive contents, and the composer's loader syncs the profile, like the PDF import.docs/design.md(New request),docs/esign/contracts.md,docs/esign/TRACKER.md.Verified in agent mode against the backend branch (mock drive): invalid and duplicate names, creating nested folders, the "…" menu, jumping back along the breadcrumb.
Merge order
esign.drive.createFolderandancestors.@polinetwork/backendhere to that release (pnpm add @polinetwork/backend@^<version>, 13.2.0 if nothing else is released first; main is on 11.1.0 and the dashboard typechecks against 13.1.0 + this change) and merge.Until the bump, CI's typecheck fails on the missing procedure and field.
pnpm check,typecheck,testandbuildpass locally against a package built from the backend branch.