Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FR-366): remove unnecessary panel disabling via querySelector at vfolder invitation panel in summary view page #3029

Conversation

lizable
Copy link
Contributor

@lizable lizable commented Jan 14, 2025

resolves #3023 (FR-366)

Removes unnecessary UI element disabling when accepting or declining vfolder invitations. Previously, the code would disable the entire panel and all buttons when processing these actions, which was redundant since the operations are quick and the panel gets removed upon completion anyway.

Also fixes a typo in the method documentation ("vfloder" -> "vfolder").

How to test

Prerequisites: You need two user account to test this.

  1. Login with user A.
  2. Create at least two vfolders if there's no vfolder created.
  3. Invite user B with vfolders created in step 2 or that alreay exists.
  4. Logout user A and Login with user B.
  5. Go to Summary page.
  6. See the Invitation panel.
  7. Click Accept/Decline inside the panel.
  8. Click another one in the panel.

Checklist:

  • Documentation
  • Minium required manager version
  • Specific setting for review
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions bot added the size:S 10~30 LoC label Jan 14, 2025
Copy link
Contributor Author

lizable commented Jan 14, 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.

@lizable lizable requested review from agatha197, leksikov, nowgnuesLee and yomybaby and removed request for leksikov January 14, 2025 10:07
@lizable lizable marked this pull request as ready for review January 14, 2025 10:07
@yomybaby yomybaby changed the title fix: remove unnecessary panel disabling via querySelector at vfolder invitation panel in summary view page fix(FR-366): remove unnecessary panel disabling via querySelector at vfolder invitation panel in summary view page Jan 15, 2025
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM. However, I suggest adding a link for the "Open Folder" feature.

Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

I agree with Jongeun's suggestion and checked it works well.

@github-actions github-actions bot added size:M 30~100 LoC and removed size:S 10~30 LoC labels Jan 15, 2025
Copy link
Contributor Author

lizable commented Jan 15, 2025

I applied it. It would be look like this. After clicking See Details link It will redirects to vfolder explorer panel that we just accepted.

Screenshot 2025-01-15 at 5.40.32 PM.png

@lizable lizable requested a review from yomybaby January 15, 2025 08:42
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

graphite-app bot commented Jan 15, 2025

Merge activity

…vfolder invitation panel in summary view page (#3029)

resolves #3023 (FR-366)

Removes unnecessary UI element disabling when accepting or declining vfolder invitations. Previously, the code would disable the entire panel and all buttons when processing these actions, which was redundant since the operations are quick and the panel gets removed upon completion anyway.

Also fixes a typo in the method documentation ("vfloder" -> "vfolder").

### How to test
> Prerequisites: You need two user account to test this.

1. Login with user A.
2. Create at least two vfolders if there's no vfolder created.
3. Invite user B with vfolders created in step 2 or that alreay exists.
4. Logout user A and Login with user B.
5. Go to `Summary` page.
6. See the Invitation panel.
7. Click Accept/Decline inside the panel.
8. Click another one in the panel.

**Checklist:**
- [ ] Documentation
- [ ] Minium required manager version
- [ ] Specific setting for review
- [ ] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@yomybaby yomybaby force-pushed the hotfix/invitation-panel-disabled-when-clicked-accept-or-decline branch from d9f89a1 to c04f7c9 Compare January 15, 2025 09:00
@graphite-app graphite-app bot merged commit c04f7c9 into main Jan 15, 2025
5 checks passed
@graphite-app graphite-app bot deleted the hotfix/invitation-panel-disabled-when-clicked-accept-or-decline branch January 15, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After whether accept/reject invitation of vfolder from another user(s), remaining invitation card disabled
3 participants