-
Notifications
You must be signed in to change notification settings - Fork 96
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
Custom user permissions UI #451
Conversation
- Grid container - Date picker input - Full page overlay form - Text helpers
88f136d
to
396235b
Compare
One future thing that could be helpful is to create a common component library as a node package for us to consume in both terminal and lit. This way we could avoid duplicated code, and maybe create a storybook for @dstrukt to view what's being used in the codebase |
Should |
Design/product decision to just have those live in custom as well. Want to see if people use them or not. Will populate the dropdown with the most popular options based on feedback. Still unsure how popular those two will be, but it's our first stab at it. |
I can imagine the terminal lift will be significant for some of these custom permissions -- would those changes happen before the merge? Just curious |
The code looks very clean and can confirm the feature works very well 👍 Will do a more thorough pass when it's ready for review! |
Initial run through looks great @itsrachelfish awesome work .. could definitely be code-reviewed at this stage! Will type up more notes and nits. |
This is interesting .. ACK for the shared library, and storybook if we keep it low effort for time being. |
37c5229
to
8629c38
Compare
8629c38
to
85ce006
Compare
85ce006
to
1d8faef
Compare
Design Review:
|
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.
See above.
@dstrukt The calendar icon for the date picker is added automatically by chrome, and the click behavior is controlled by the browser as well. When you test in firefox there is no date picker icon and the entire input field is clickable. I was able to change the color of the date picker icon but not much else |
1b5bb29
to
54dc1f3
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.
tACK 🔥 Tested many different permission configurations and didn't run into any issues.
Overall, the code looks great. I commented with a bunch of nits which aren't blocking this from being merged. Just some minor improvements to make it easy to grasp what's happening in the code.
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.
Changes LGTM!
Excellent work!
Only other thing I noticed .. shouldn't we generate a generic label "My Custom Session" or whatever? Or am I missing something? |
…ded for different permission levels
@dstrukt I added some code to automatically generate labels when none are defined. Users can still specify their own label when first viewing the add session option. However if no label is specified, the custom permissions page will automatically generate a label based on the permission type selected. "My read-only session", "My liquidity session", "My loop session", etc. |
f40bcc4
to
c87fd62
Compare
Thanks for the updates. The latest commit LGTM 🚀 |
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.
All LGTM, great work!
c87fd62
to
e64c2e3
Compare
needs a rebase :) |
863f5b0
to
4665cf3
Compare
@levmi @ellemouton updated with the latest from master 👍 |
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.
tACK 🔥
@itsrachelfish do you want to rebase to get a clean commit history (all authored and committed by you) or should we just merge? |
797689c
to
3bc24b5
Compare
@itsrachelfish, remember to re-request review from reviewers when ready |
This PR updates the Lightning Node Connect page to include a new overlay which allows users to create macaroons with customized permissions for specific URIs as well as expiration dates.
New option added to permissions dropdown
Custom permissions overlay
Custom session with an expiration date
Related to: #438
Depends on #450 & #457