Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.33k stars 2.76k forks source link

[$250] Workspace - Role changed to admin member can't access compose box in workspace chat #47919

Open lanitochka17 opened 3 weeks ago

lanitochka17 commented 3 weeks ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.24-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): biruknew45+171@gmail.com Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to [https://staging.new.expensify.com/]
  2. As User A, create a workspace and add User B
  3. Navigate to the workspace chat
  4. Click on the header and then "Settings."
  5. Click on the "Who Can Post" settings
  6. Change it to "Admin Only."
  7. Go to the workspace settings
  8. Change User B's role to admin
  9. Observe the behavior as User B
  10. Go to the workspace settings
  11. Change User B's role to "Member."
  12. Observe the behavior as User B

Expected Result:

After changing the member's role to admin, the member should be able to post immediately. The compose box and permission message should update consistently based on role and "Who Can Post" settings. after reverting the member's role to "Member," the compose box should be hidden again, preventing the member from attempting to send messages

Actual Result:

After changing the member's role to admin, the member cannot post. the compose box and permission message disappear and reappear inconsistently then the compose box remains visible even after reverting the member's role to "Member," but sending a message results in an error

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/30438e8b-9992-4d7e-a8a0-529295cf4592

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c1f02627a154bb67
  • Upwork Job ID: 1828876093361855716
  • Last Price Increase: 2024-08-28
  • Automatic offers:
    • allgandalf | Contributor | 103786652
Issue OwnerCurrent Issue Owner: @daledah
melvin-bot[bot] commented 3 weeks ago

Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

lanitochka17 commented 3 weeks ago

@abekkala FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

lanitochka17 commented 3 weeks ago

We think that this bug might be related to #wave-collect - Release 1

daledah commented 3 weeks ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

What is the root cause of that problem?

What changes do you think we should make in order to solve the problem?

melvin-bot[bot] commented 2 weeks ago

@abekkala Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] commented 2 weeks ago

@abekkala Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] commented 2 weeks ago

Job added to Upwork: https://www.upwork.com/jobs/~01c1f02627a154bb67

melvin-bot[bot] commented 2 weeks ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (External)

allgandalf commented 2 weeks ago

@daledah's proposed solution makes sense to me, we do not re-render the footer chat component when we update the roles of the user

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed

melvin-bot[bot] commented 2 weeks ago

Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

melvin-bot[bot] commented 1 week ago

@abekkala, @aldo-expensify, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] commented 1 week ago

πŸ“£ @daledah You have been assigned to this job! Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs! Keep in mind: Code of Conduct | Contributing πŸ“–

melvin-bot[bot] commented 1 week ago

πŸ“£ @allgandalf πŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

aldo-expensify commented 1 week ago

Oops, I messed up and removed and added again @allgandalf , not sure what happened with the upwork job when I did that 😬

allgandalf commented 1 week ago

Happens on best of our days πŸ˜… No worries @aldo-expensify