Closed sidvishnoi closed 1 month ago
Name | Link |
---|---|
Latest commit | faef3adc7ce68f19043cab2cb0d9f2690b9b860d |
Latest job logs | Run #11365623457 |
Download | |
Download |
@sidvishnoi few comments:
the read-only fields (wallet, key, remaining balance) look like they are editable. Maybe a darker grey as background would help?
For the rate of pay, I thought we were getting rid of the slider?
Rate of pay screen, there's a design on Figma ( Let's move the rate on top of the page, continuous payment toggle underneath it, and when it is disabled we show text 'Ongoing payments are now disabled. You can still make one time payments. '
What happens when the user changes the rate of pay or budget amount?
For the rate of pay, I thought we were getting rid of the slider?
Eventually yes, but not in this PR. It'll get too big, and that input isn't as simple if done right.
What happens when the user changes the rate of pay or budget amount?
Rate of pay gets handled immediately, like before. Budget can't be changed at the moment. It's a big change. Those fields are disabled/readonly.
Ok for rate of pay slider. As for the budget, we can't just say something is not going to be done because it's big change. The requirement was never for it to be read-only. In the last call, we agreed that they can change the budget but it will completely override the previous grant and starts immediately. @raducristianpopa keep me honest here
We'd need UI to support edits first then. We need submit buttons somewhere, and a messaging that they'll need to connect wallet again (it'll open new tab to connect that is, so we can't just to do it in input).
Why do they need to connect to the wallet again?
Does that mean that switching between monthly or not will cause the same issues
When they change budget (any part of it - amount or recurring), we need to create a new interactive grant (i.e. ask user for permission), which happens in a new tab. So, it's the same connect wallet process again, but only without the need to add key again. (This is not an extension thing, it's how Open Payments is designed)
Does that mean that switching between monthly or not will cause the same issues
Yes. Same issues. Changing any part of budget/grant.
You mean the part on the browser to accept the grant? or the connect screen on the extension? That also mean that the monthly toggle is the wrong control. A toggle is to make changes not just for visual effects
You mean the part on the browser to accept the grant?
Yes.
That also mean that the monthly toggle is the wrong control. A toggle is to make changes not just for visual effects
Yes, wrong control if it's not meant to be editable. Point #3 in Slack
Ok. Settings should be adjustable. A user should have the ability to change the budget allocated to use with the extension and whether or not they want to renew it monthly. They will have to accept the grant online. That is absolutely fine. We will add a submit changes button that gets enabled if the amount or renew values change. Similar to connect, when they click , they get redirected to the browser.
Please do let me know if anything is not clear or if there are any technical limitations before deciding on requirements on your own.
Will do budget-edit support as a follow-up PR. Keeping this PR limited to tab-UI thing only.
Context
Changes proposed in this pull request