-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
UI/gate wizard #6094
UI/gate wizard #6094
Conversation
68e575d
to
daa16c8
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.
Hey Noelle!
Got a chance to try this out, looks good to me!
I left a couple of notes, both suggestions. Check see what Matthew and Madalyn think of course but 👍
fa08741
to
991e291
Compare
@@ -108,33 +108,53 @@ export default Service.extend({ | |||
} | |||
}, | |||
|
|||
hasPermission(pathName) { | |||
hasPermission(pathName, capabilities = [null]) { |
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.
Why [null]
instead of []
?
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.
setting capabilities as []
caused the tests to fail & incorrectly show items because calling .every
on an empty array returned true
. javascript! 🤷♀️
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.
huh guess I haven't used every
/some
enough to realize that - thanks!
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.
A couple of questions, but looks great👌. I think you can delete some things, but just going to pre-approve in anticipation of that.
991e291
to
d85c709
Compare
Only display onboarding wizard sections that the user has access to
Testing
If a user has full capabilities but has not selected anything, all sections should be enabled but the start button should be disabled.
Once they select something, the start button should be enabled.
If a user has no capabilities, all sections should be disabled with a tooltip on hover.