Repository navigation
Conversation
- GET /api/folders/:folderId/collaborators returns the owner and members with names and emails, plus pending invites for the owner - Members can leave a folder by removing themselves - Re-inviting someone with a pending invite emails it again instead of failing - Folders are capped at 10 collaborators (members plus pending invites) - DELETE /api/folder-invites/:inviteId lets the owner cancel a pending invite - The invite email now matches the Figma design
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Member
|
[diff-counting] Significant lines: 425. |
This was referenced Nov 13, 2026
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
Backend for the collaborator management screens in the Shared Folders Figma. The Share menu needs names and emails for everyone in a folder, members need a way to leave, and owners need to resend or cancel invites. Also caps folders at 10 collaborators and redesigns the invite email to match the Figma.
Part 1 of 7 of this week's Shared Folders work, stacked on #453. Merge order: #440, #452, #453, then:
Changes
GET /api/folders/:folderId/collaborators: owner and members with names and emails, plus pending invites (owner only) and the limitDELETE /api/folders/:folderId/members/:memberId: a member can now pass their own ID to leavePOST /api/folders/:folderId/invites: re-inviting someone with a pending invite emails it again (200,resent: true) instead of returning 409. This also covers Bryan's note on Add folder invites by NetID with invite emails and rate limiting #452 that pending invites couldn't be resent.DELETE /api/folder-invites/:inviteId: owner cancels a pending invitegetPeoplehelper infolderInvites.ts(oneauth.getUserscall for the whole list),lastSentAtonFolderInviteDesign decisions
Screenshots
The invite email as received:
Backend tests passing:
Test Plan
Automated (Firebase and nodemailer mocked). From
backend/:npx jest src/folderInvites.test.ts src/folderAccess.test.ts --forceExitlastSentAt; a declined invite can be sent againAll backend suites: 102 passed (
server.test.tsneeds the emulator). Prettier, ESLint (0 errors), and tsc pass.Manual (localhost):
GET /collaborators) shows my real name and email as owner, and the invited test user's after they acceptedNotes
Breaking Changes
POST /api/folders/:folderId/invitesreturns 200 withresent: truefor a pending invite instead of 409. Nothing in the frontend used the old 409 yet.buildInviteEmailandsendFolderInviteEmailnow take one details object.