Change sitel flow after Registration
Currently, after a user registered, he sees the home page. Can we change that to the following flow:
- User registred
- User Profile Edit Page
- User Profile
- Home Page
It would be what users expect and help us get more user data :)
Comments (22)
-
-
@enricosoft I imagine, if the username is returned after registering, we can call $location.path('/user/myusername') at the relevant points where closeModal(...) is called. The only issue would be having $location within scope in those particular areas of the code (inside udemi.js).
I think I started working on this problem area ages ago on branch feature/ModalAngular, intending to have the Views updated by Angular rather than JQuery, but realised it was going to be a chunky bit of work, and maybe not the highest priority for a prototype. I see (looking at the commit on that branch anyway) that ng-click is already in place, so maybe it would just involve adding a callback containing a call to $location.path(...) inside the relevant Angular controllers, which is passed over to the functions in udemi.js
Is it worth me picking up that refactoring again? It might take me a while in drips and drabs, but I'm happy to do it. I don't think it is something that we should hold up releasing the prototype for though. Also, we don't want to do it in a rush and risk breaking the facebook login code which is/recently was still being tweaked.
Alternatively, a hackier faster way (for now) might be to set window.location.hash inside udemi.js.
-
reporter @enricosoft I will discuss this today with Mario and we then decide what to do about it :)
-
Hi @dwmarrs , don't consider "feature/ModalAngular" cause it's too old now. About the change I proposed to Rob, yeah, after the subscription we need to advice to the user to complete his profile with a modal similar to the "tour" one. If the answer is YES, we need to redirect the user to the "user profile edit" page (/user/edit)
I don't think you need Mario for this, but if he have good advices, it's ok
-
-
assigned issue to
-
assigned issue to
-
@dwmarrs Hi Dave, did you already started working on this? If not please wait cause maybe we need to change this flow again
-
Hi @enricosoft , yeah, I already started this. I think the main thing is to set up the callbacks in which $location.path can be called. After they're in place I think we'll be fine to either set a different path or open/close different modals etc.
-
@dwmarrs Ok, complete this and then maybe we will change it in the next website updates :)
-
@enricosoft I created a pull request for this at https://bitbucket.org/udemi/udemi-ui/pull-requests/4/feature-edituseraftersignup/diff
Can you review it please? Hopefully it makes sense/still works.
-
@dwmarrs ok,I'll review this
-
@dwmarrs I merged your code. And added some facebook test account on a comment on your last commit. The code is already deployed to dev.udemi.org so now you can test it. Pay attention because the changes affects the subscription\login so we need to test it carefully
-
hi @dwmarrs , after the merge I have some problems with facebook login... did you find the time to test it?
Update: I had some problems also after the standard subscription... for some reason I was redirected to 404
-
@enricosoft oh no! I'll test it this morning, sorry...
-
@enricosoft When I try to 'Sign Up' to Udemi with Facebook, after providing the login details for 'TestUser One' I get a message (in the Facebook pop-up) that 'User is not allowed to see the application.: The user is not allowed to see this application per the developer set configuration.' The login details must be ok, because if I go to facebook.com in another tab then I can see I am logged in as 'TestUser One'.
I have registered as an administrator of the udemi facebook app, and (I think) created a newer user 'Dick Amgi' and it is having the same problem.
Is this the issue you're experiencing? Or is it because I am trying to connect from a Udemi running on http://localhost:8000/ ? Is the facebook app only set up to work with the dev.udemi.org app?
Sorry, this is the first bit of development I've done with Facebook and I'm just extrapolating from some Vimeo API work I did recently :-)
-
@enricosoft Ok, I tried logging in on http://dev.udemi.org/ and yes, I now get further than I did on localhost and can see an error with my new JavaScript in the console. Grr... This might be tricky to fix (the scope of the callback is not as I expected)
-
@dwmarrs Yes, maybe the fb test account I created are for dev.udemi.org and not localhost.... so check out the facebook signup error on dev to understand where is the problem
-
@enricosoft I have added a possible fix on the commit at https://bitbucket.org/udemi/udemi-ui/commits/69ba47d710ff3fef1d4ffce69cd9109e69504660 Can you please deploy that to dev.udemi.org and we can see if it works?
It's a bit hackier than I would have liked, but we can fix that later.
-
Hi Dave, I'm out for work but you can deploy it through jenkins.udemi.org... You will see a list of task and you need to launch the "udemi ui dev" (I don't remember the exact name). To login on jenkins.udemi.org you need credentials that you can find on our password online repository... Let me know if you need help
Enrico
-
@dwmarrs I deployed :) Now you can test it
-
@enricosoft I've pushed another small fix up for the login modal (for logging in with facebook without setting a 'Remember Me' cookie). Can you deploy it please? When we're both on Skype you'll have to talk me through logging into Jenkins. Thanks.
Everything else seems ok
-
Hi @dwmarrs , I deployed on dev... try it and if it's ok, close this issue :)
-
- changed status to resolved
Now the fb login seems to work so I can close this issue
- Log in to comment
We cannot prevent the user to navigate the site. I already thinked about this some times ago and opened a task on trello: my suggestion is after the registration to show a message to the user to invite him to complete his profile for a better use of Udemi. @Brotrob What do you think?