Repository navigation
Add protected agreement folders - #267
Open
fortytwode wants to merge 2 commits into
Open
fortytwode wants to merge 2 commits into
fortytwode wants to merge 2 commits into
Conversation
|
@fortytwode is attempting to deploy a commit to the Basic Intelligence Team on Vercel. A member of the Team first needs to authorize it. |
[Critical impact] The PR appears safe to merge; the expiry-event issue is fixed and no new blocking issues were found. SummaryAdds protected agreement folders with admin-managed membership, folder-aware envelope access, and folder selection during uploads and template use.
Reviews (2) · Last reviewed commit: "Record a passed deadline even when the s..." · Reviewed by Greptile |
The daily job skipped an expired envelope whose sender could no longer open its folder, so the expiry was never noted: folder members saw no expired entry and integrations got no envelope.expired. The expiry is now always noted, and the folder check only decides whether the sender is emailed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
The migration creates no folders and moves no existing envelopes.
Verification
npm run typecheck,npm run lint, andnpm run format:checkNote
Add protected agreement folders for envelope access and organization
is_folder. A new migration adds the flag, a nullableenvelopes.folder_idforeign key, and an index on filed envelopes (agreement folders migration).canAccessEnvelopeFolderCondition, and the newhandleApiEnvelopeandrequireEnvelopeOwnerSessionguards only allow envelope owners; other viewers get a 404 (route-session.ts, route.ts).POST /api/envelopes/[id]/folderendpoint, audited asenvelope_folder_changed("Agreement moved").is_folder.Macroscope summarized 54dc1c9.