Skip to content

feat(FR-740): Create modal for accepting/rejecting invitations#3465

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feat_FR-740_/invitation-response-modal
May 27, 2025
Merged

feat(FR-740): Create modal for accepting/rejecting invitations#3465
graphite-app[bot] merged 1 commit into
mainfrom
feat_FR-740_/invitation-response-modal

Conversation

@agatha197
Copy link
Copy Markdown
Contributor

@agatha197 agatha197 commented Apr 7, 2025

Resolves #3535 (FR-740)

Add Folder Invitation Response Modal

This PR adds a new modal component that allows users to respond to folder invitations. When users click on the "Invited Folders" section in the Storage Status Panel, they can now see a list of pending invitations with options to accept or decline each invitation.

The implementation includes:

  • New FolderInvitationResponseModal component that displays invitation details
  • Integration with the existing useVFolderInvitations hook
  • Enhanced VFolderPermissionCell to support both fragment and direct permission props
  • Added "From" translation key across all language files
  • Updated the Storage Status Panel to make the invitation count clickable

image.png

Checklist:

  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions Bot added the size:L 100~500 LoC label Apr 7, 2025
Copy link
Copy Markdown
Contributor Author

agatha197 commented Apr 7, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from fca0bfd to f357591 Compare April 10, 2025 03:59
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from f9a6362 to 3eb690e Compare April 10, 2025 03:59
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from f357591 to 10643d7 Compare April 10, 2025 04:00
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 3eb690e to 55ffd55 Compare April 10, 2025 04:00
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from 10643d7 to e78f39b Compare April 10, 2025 06:33
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch 2 times, most recently from 4320752 to 8fa6111 Compare April 10, 2025 07:34
@ironAiken2 ironAiken2 force-pushed the feat_FR-738_/invitation-badge branch from e78f39b to eb2fb03 Compare April 18, 2025 03:30
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from eb2fb03 to 53f59da Compare April 21, 2025 01:56
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 8fa6111 to 018d945 Compare April 21, 2025 01:56
@github-actions github-actions Bot added area:ux UI / UX issue. area:i18n Localization labels Apr 21, 2025
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 018d945 to 85526cc Compare April 21, 2025 03:07
@agatha197 agatha197 marked this pull request as ready for review April 21, 2025 03:08
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 85526cc to 4aaac5c Compare April 21, 2025 03:09
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from 53f59da to ce64713 Compare April 21, 2025 03:09
Comment thread react/src/components/FolderInvitationResponseModal.tsx Outdated
Comment thread react/src/components/VFolderPermissionCell.tsx Outdated
Comment thread react/src/components/VFolderPermissionCell.tsx Outdated
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 4aaac5c to 701524f Compare April 21, 2025 10:24
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from ce64713 to 193e25f Compare April 21, 2025 10:24
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 701524f to 540b74c Compare April 21, 2025 10:42
Copy link
Copy Markdown
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are minor requests for modal popup.

  1. How about leave the invitation modal When It comes to have multiple invitations from users, It may distracts every time user clicks add on each invitation from modal. Maybe we can leave the modal as is after clicking add/decline in modal popup.

Screenshot 2025-05-23 at 4.38.03 PM.png

  1. How about adding Accept all / Decline all options?
    it would be great to have accept all/decline all button when user got multiple invitations from user(s). Let's handle this issue as a new feature.

@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from a4e708f to 4de227f Compare May 26, 2025 04:01
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from 3e9eecd to 3e532cf Compare May 26, 2025 04:01
@agatha197 agatha197 requested review from lizable and ragingwind May 26, 2025 04:01
Copy link
Copy Markdown
Contributor Author

I'll add second one after mutation is added.

Copy link
Copy Markdown
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR has merge conflicts. Can you check them?

@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from 3e532cf to 513539a Compare May 26, 2025 08:23
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 4de227f to 2c66ded Compare May 26, 2025 08:23
@agatha197 agatha197 requested a review from ironAiken2 May 27, 2025 01:20
Copy link
Copy Markdown
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's reasonable to keep showing invited folder list modal when some invitations are left, but after accept/rejecting all of invitation, I don't think we need to show the modal. For now, It keeps blinking.

Screenshot 2025-05-27 at 11.39.39 AM.png

Screenshot 2025-05-27 at 11.39.49 AM.png

Screenshot 2025-05-27 at 11.40.04 AM.png

@lizable lizable force-pushed the feat_FR-738_/invitation-badge branch from 513539a to 3a64999 Compare May 27, 2025 02:42
@lizable lizable force-pushed the feat_FR-740_/invitation-response-modal branch from 2c66ded to 765e203 Compare May 27, 2025 02:42
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 765e203 to 2f37a13 Compare May 27, 2025 03:27
@agatha197 agatha197 force-pushed the feat_FR-738_/invitation-badge branch from 3a64999 to 513539a Compare May 27, 2025 03:27
@agatha197 agatha197 requested a review from lizable May 27, 2025 03:28
@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 2f37a13 to d1b1201 Compare May 27, 2025 03:36
Copy link
Copy Markdown
Contributor Author

Resolved.

@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from d1b1201 to 70edc5a Compare May 27, 2025 06:51
Copy link
Copy Markdown
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. LGTM.

Copy link
Copy Markdown
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@agatha197 agatha197 force-pushed the feat_FR-740_/invitation-response-modal branch from 70edc5a to cb18cb4 Compare May 27, 2025 07:05
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented May 27, 2025

Merge activity

Resolves #3535 ([FR-740](https://lablup.atlassian.net/browse/FR-740))

# Add Folder Invitation Response Modal

This PR adds a new modal component that allows users to respond to folder invitations. When users click on the "Invited Folders" section in the Storage Status Panel, they can now see a list of pending invitations with options to accept or decline each invitation.

The implementation includes:
- New `FolderInvitationResponseModal` component that displays invitation details
- Integration with the existing `useVFolderInvitations` hook
- Enhanced `VFolderPermissionCell` to support both fragment and direct permission props
- Added "From" translation key across all language files
- Updated the Storage Status Panel to make the invitation count clickable

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/93e5999e-a32f-4507-a836-8d935f9b3893.png)

**Checklist:**
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review (eg., KB link, endpoint or how to setup)
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after

[FR-740]: https://lablup.atlassian.net/browse/FR-740?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@graphite-app graphite-app Bot force-pushed the feat_FR-738_/invitation-badge branch from 513539a to 2bd604d Compare May 27, 2025 07:12
@graphite-app graphite-app Bot force-pushed the feat_FR-740_/invitation-response-modal branch from cb18cb4 to e010cfd Compare May 27, 2025 07:12
Base automatically changed from feat_FR-738_/invitation-badge to main May 27, 2025 07:14
@graphite-app graphite-app Bot merged commit e010cfd into main May 27, 2025
4 checks passed
@graphite-app graphite-app Bot deleted the feat_FR-740_/invitation-response-modal branch May 27, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:i18n Localization area:ux UI / UX issue. size:XL 500~ LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create modal for accepting/rejecting invitations

4 participants