-
Notifications
You must be signed in to change notification settings - Fork 195
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
feat: include account ID in permissions #2002
Conversation
🚀 Thanks for the pull request! Here are the current build files for testing: Download and unzip the file for your browser. Refer to the readme for detailed install instructions. This build is brought to you by: Want to sponsor the next build? send some sats to ⚡️builds@getalby.com (don't forget to provide your name) Don't forget: keep earning sats! |
src/extension/background-script/actions/permissions/__tests__/add.test.ts
Show resolved
Hide resolved
src/extension/background-script/actions/allowances/__tests__/delete.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully tested 👌 the migration also worked as expected! 👍
src/extension/background-script/actions/allowances/__tests__/delete.test.ts
Show resolved
Hide resolved
Just did a final round of testing and noticed one thing that I think we should fix. Steps to reproduce: I have 2 accounts (account A, account B)
The edit dialogue now still shows the permissions from account A. (reloading fixes the problem) @im-adithya Can we somehow fix that? That being said, I think we really need to move the permissions somewhere else in another iteration, they don't fit into this "edit allowance" window very well. Also the allowance is now extension wide, while the permissions are not. (which I think is quite hard to understand) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again today, left some feedback and merged master
.
Let's see if we can somehow fix the bug when switching accounts and get this merged! 🚀
I tested a bit. The bug is in AllowanceMenu line 77 |
d25b180
to
1f1a3ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @im-adithya! 🚀
tACK
Describe the changes you have made in this PR
Adds
accountId
to the DbPermission fields to link permissions to accounts. (Doesn't include a migration;we handle the permissions without an accountId separately everywhere).Link this PR to an issue [optional]
Fixes #1953
Type of change
(Remove other not matching type)
feat
: New feature (non-breaking change which adds functionality)Screenshots of the changes [optional]
How has this been tested?
Tested manually at various websites.
Checklist