-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
ftux: refactor + restructure + url rename #1281
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1281 +/- ##
==========================================
- Coverage 31.26% 31.22% -0.04%
==========================================
Files 120 120
Lines 8397 8397
Branches 1100 1100
==========================================
- Hits 2625 2622 -3
- Misses 5663 5666 +3
Partials 109 109
Continue to review full report at Codecov.
|
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.
Generally, lgtm so far. Just a few random comments.
</script> | ||
<script> | ||
var steps = []; | ||
var flow = "{{flow}}" |
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.
rabble rabble 😁
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.
It helps with the URL redirection :P
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.
haha - I know. I wasn't talking about the flow and step args exactly xD {{flow}}
😁
return TemplateResponse(request, 'onboard.html', params) | ||
params = { | ||
'title': _('Onboarding Flow'), | ||
'steps': ['github', 'metamask', 'avatar', 'skills'], |
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.
Pretty much what I was thinking. Ideally, we'd take this a step ( 😁) further to allow us to provide the series of steps defined somewhere on the BE based on the user type or other criteria... Thoughts?
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.
Pretty much what I was thinking.
Sauron is pleased :P
Couldn't we just add that logic in here ?
profile.getUserType()
--> based on that we specify flow !
Any benefits your approach would offer over the one you laid out there ? (I probably didn't get this 😅 )
@mbeacom good for merge ? |
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.
lgtm
Description
One step closer to achieving modularity
onboard.html
views
-> and accordingly the flow will be builtftux
folder making it easier to maintain@mbeacom Is this something along the lines of what you had in mind ?
Checklist
Affected core subsystem(s)
Refers/Fixes