Skip to content

Add the folder invite popup at /folder-invite/:inviteId - #462

Open
ksm0712 wants to merge 2 commits into
karan-shared-folders-share-menufrom
karan-shared-folders-join-page
Open

ksm0712 wants to merge 2 commits into
karan-shared-folders-share-menufrom
karan-shared-folders-join-page

Conversation

@ksm0712

@ksm0712 ksm0712 commented Nov 13, 2026

Copy link
Copy Markdown

Summary

Where the OPEN FOLDER button in the invite email goes. It opens the home page with the invite popup from the Figma: "___ invited you to join ___" with ACCEPT and DECLINE, then "You have joined ___" with VIEW FOLDER. Declining closes the popup and stays on the home page.

Part 6 of 7 of this week's Shared Folders work, stacked on #461. Merge order: #440, #452, #453, then:

  1. Collaborators backend (Add collaborator list, leaving, resending, and the 10-person limit for shared folders #457)
  2. User search (Add user search by NetID or name for the invite box #458)
  3. Sharing UI pieces (Add shared UI pieces and API helpers for folder sharing #459)
  4. Invite modal (Add the Invite collaborators modal and Share folder in Create Folder #460)
  5. Share menu (Add the Share menu to the folder page and Leave in Bookmarks #461)
  6. Invite page (this PR)
  7. Real-time sync

Changes

  • components/Folder/FolderInviteModal.tsx (new): accept/decline, joined, sign in, and unavailable versions of the popup
  • App.tsx: /folder-invite/:inviteId route showing HomePage with the popup on top
  • utils/firebase.ts: onUserChange, so the popup waits for Firebase to restore the session before asking anyone to sign in
  • utils/folderSharing.ts: calls to get an invite and accept or decline it

Design decisions

  • Signed out: "Sign in to see your invite" with SIGN IN, since only the invited Cornell account can open it.
  • Wrong account, cancelled invite, or already declined: "This invite can’t be opened" with the reason and CLOSE.
  • Already accepted: shows "You have joined" with VIEW FOLDER, so clicking the email twice still works.
  • Closing the popup without answering goes back to the home page and leaves the invite pending.

Screenshots

All from localhost, on the invited test account.

Signed out: asks to sign in first:
E-01-sign-in-prompt

The invite popup:
E-02-invite-popup-accept-decline

After accepting:
E-03-joined-confirmation

VIEW FOLDER opens the shared folder:
E-04-member-opens-shared-folder

Test Plan

  • Prettier, ESLint (0 errors), and tsc pass
  • Opened the invite link signed out: it asks to sign in first
  • Signed in as the invited account: the popup shows who invited them and the folder name
  • ACCEPT shows "You have joined", and VIEW FOLDER opens the shared folder
  • DECLINE closes the popup and stays on the home page (not tested yet)

Notes

The email links to https://www.cuapts.org/folder-invite/<id>, so this needs to be live before invite emails go out for real. For local testing, swap the start of the link for http://localhost:3000.

Breaking Changes

None.

The OPEN FOLDER link in the invite email opens the home page with the invite popup. Accepting shows You have joined with VIEW FOLDER, and declining closes the popup and stays on the home page. People who aren't signed in are asked to sign in first.
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: ae76aa0d-1b37-44f1-9c19-4566616e0dad

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

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.

Share

@dti-github-bot

Copy link
Copy Markdown
Member

[diff-counting] Significant lines: 291.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants