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

[$250] Handle blocked copilot and Expensify card flows gracefully #50796

Open
6 tasks done
Julesssss opened this issue Oct 15, 2024 · 50 comments
Open
6 tasks done

[$250] Handle blocked copilot and Expensify card flows gracefully #50796

Julesssss opened this issue Oct 15, 2024 · 50 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Design Engineering External Added to denote the issue can be worked on by a contributor

Comments

@Julesssss
Copy link
Contributor

Julesssss commented Oct 15, 2024

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


Similar to this issue, we need to prevent co-pilots from issuing new Expensify cards.

We should implement exact same solution for issue new Expensify card flow, additionally we need to check for company cards as well.

{ "code": 666, "jsonCode": 666, "type": "Expensify\\Libs\\Error\\ExpError", "UUID": "7D862FFF-854D-4AE0-B50B-6C8C96D37AB9", "message": "You must be a domain admin to create the virtual card.", "title": "", "data": [], "htmlMessage": "", "onyxData": [], "requestID": "8d2f62629dff8531-BOM" }

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

N/A

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021846678596552098944
  • Upwork Job ID: 1846678596552098944
  • Last Price Increase: 2024-10-16
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @ChavdaSachin
@Julesssss Julesssss added Engineering Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 15, 2024
@Julesssss Julesssss self-assigned this Oct 15, 2024
Copy link

melvin-bot bot commented Oct 15, 2024

Triggered auto assignment to @jliexpensify (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.

@Julesssss
Copy link
Contributor Author

Hey @jliexpensify we're going to hire @c3024 and @ChavdaSachin as discussed here.

@ChavdaSachin
Copy link
Contributor

coming from here

@c3024
Copy link
Contributor

c3024 commented Oct 15, 2024

Please assign me. Thanks!

@jliexpensify
Copy link
Contributor

@Julesssss - just checking: are we paying $250 in this issue, or is Anu handling in the other one? Thanks!

@Julesssss
Copy link
Contributor Author

Lets keep them seperate

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label Oct 16, 2024
@melvin-bot melvin-bot bot changed the title Error when copilot adds a new Expensify card [$250] Error when copilot adds a new Expensify card Oct 16, 2024
Copy link

melvin-bot bot commented Oct 16, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 16, 2024
Copy link

melvin-bot bot commented Oct 16, 2024

Current assignee @c3024 is eligible for the External assigner, not assigning anyone new.

@jliexpensify jliexpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 16, 2024
@jliexpensify
Copy link
Contributor

@ChavdaSachin @c3024 I think I hired the right people? 😅 Let me know if you didn't get an offer

@c3024
Copy link
Contributor

c3024 commented Oct 17, 2024

I got the offer on Upwork!

@ChavdaSachin
Copy link
Contributor

Got the offer ✅

@jliexpensify
Copy link
Contributor

@Julesssss are we following the timeline in the other GH? If so, that's set to pay on the 24th.

@Julesssss
Copy link
Contributor Author

@Julesssss are we following the timeline in the other GH? If so, that's set to pay on the 24th.

Yeah 👍

@Julesssss Julesssss changed the title [$250] Error when copilot adds a new Expensify card [HOLD FOR PAYMENT - 24th] [$250] Error when copilot adds a new Expensify card Oct 17, 2024
@Julesssss
Copy link
Contributor Author

Wait, I have lost track of the PR now.

So could you raise an issue with same c+ here and I will raise a quick PR.
also could you please add my accounts to copilot beta

@ChavdaSachin I can't find the PR, can you share a link please?

@ChavdaSachin
Copy link
Contributor

@Julesssss I haven't raised PR here yet, coz I am testing other scenarios where we might need same implementation.
Like - copilot is able to close owner's account.
So let me prepare a complete list so we can solve this issue for once and all.

@ChavdaSachin
Copy link
Contributor

Will send you a list in a couple hrs, and after your confirmation will raise PR.

@Julesssss
Copy link
Contributor Author

No worries, thanks for confirming. I'll remove the payment date

@ChavdaSachin
Copy link
Contributor

PR is nearly 80% done, but since it would be large PR - I am spending more time on testing and am focusing on making more scalable changes. Should be delivered within a day or two.

@melvin-bot melvin-bot bot removed the Overdue label Oct 29, 2024
Copy link

melvin-bot bot commented Nov 4, 2024

@Julesssss, @jliexpensify, @ChavdaSachin, @c3024 Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Nov 4, 2024
@jliexpensify
Copy link
Contributor

Not overdue, PR being worked on

@Julesssss
Copy link
Contributor Author

Hey @ChavdaSachin, just checking in on this task. Let me know if you need help with anything!

@ChavdaSachin
Copy link
Contributor

hi @Julesssss changes for noDelegateAccessWrapper, and subscription page are yet to be implemented, but I am raising a draft pr for rest of the work already done so you could review those changes in mean time.

Copy link

melvin-bot bot commented Nov 6, 2024

Triggered auto assignment to @dubielzyk-expensify (Design), see these Stack Overflow questions for more details.

@Julesssss
Copy link
Contributor Author

Thanks @ChavdaSachin

Hey @dubielzyk-expensify, @ChavdaSachin is trying to prevent users from performing actions as a copilot and has a good question about blocked actions that are accessed via the three-dot menu. Here's a link to the comment that has screenshots.

Quick question -
On security page in delegates section, both menu items are restricted actions, should we hide three dot menu there?

@dubielzyk-expensify
Copy link
Contributor

If you can't do any of the actions in the three dot menu, then yes, I think it makes sense to remove the icon altogether. @Expensify/design team for gut check

@shawnborton
Copy link
Contributor

Yup, that makes sense to me as well.

@dannymcclain
Copy link
Contributor

I'm fine with hiding it, though elsewhere don't we just allow you to click on an action and then surface the "You can't do that" modal?

@shawnborton
Copy link
Contributor

Oh that's a totally fair point, I forgot about that pattern here.

@dubielzyk-expensify
Copy link
Contributor

Just for my education, where do we do that? I remember buttons like this, but not overflows. FWIW I think that's the right pattern if we have a button

@shawnborton
Copy link
Contributor

Yeah that's a fair point too... when you tap a button, you are told that the action of the button can't be taken:
CleanShot 2024-11-08 at 10 19 22@2x

For the overflow icon... it might feel weird if we throw a big modal in your face after simply tapping a small icon. So I could see where just hiding it is better, or don't hide the three dots and then throw the modal once one of the options from the menu is taken?

@dannymcclain
Copy link
Contributor

don't hide the three dots and then throw the modal once one of the options from the menu is taken?

This is what I was imagining. Definitely don't want to throw the modal after tapping the overflow icon. But the menu items within don't really seem that different from a button to me.

Happy to defer to what you all think is best—just wanted to point out that pattern because I remember us using it elsewhere!

@melvin-bot melvin-bot bot added the Overdue label Nov 8, 2024
@shawnborton
Copy link
Contributor

But the menu items within don't really seem that different from a button to me.

Yup, totally agree there - that would be my vote.

@dubielzyk-expensify
Copy link
Contributor

SGTM 👍

Copy link

melvin-bot bot commented Nov 11, 2024

@Julesssss, @jliexpensify, @ChavdaSachin, @c3024, @dubielzyk-expensify Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Nov 12, 2024

@Julesssss @jliexpensify @ChavdaSachin @c3024 @dubielzyk-expensify this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

Copy link

melvin-bot bot commented Nov 12, 2024

@Julesssss, @jliexpensify, @ChavdaSachin, @c3024, @dubielzyk-expensify Huh... This is 4 days overdue. Who can take care of this?

@Julesssss
Copy link
Contributor Author

In progress

Copy link

melvin-bot bot commented Nov 14, 2024

@Julesssss, @jliexpensify, @ChavdaSachin, @c3024, @dubielzyk-expensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@ChavdaSachin
Copy link
Contributor

Hey @dubielzyk-expensify I am here trying to block delegates from performing certain actions, and I need your view here.
please take a look at #52103 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Design Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants