-
Notifications
You must be signed in to change notification settings - Fork 81
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
Initial front-end setup and user authentication flows #3
Conversation
Extends djoser functionality to implement custom functionality for email verification
Redirects to login page when user accesses a page that requires login. Redirects to dashboard, when user is logged in and access landing page
Removes boilerplate code from actions by wrapping fetch API calls into request library
Refactored the registration form into a dedicated component that is imported in both the landing page and the registration page
It wraps XMLHttpRequest in a Promise. The Promise is resolved upon successful requests (HTTP code 200 - 299) and rejected otherwise. Use: ``` return Request.get('/') .then( (success => handleSuccess(success), (error => handleError(error)) ) ```
Removing redirects from actions improves action testability and separation of concerns
- Adds node and npm installations
@oliverroick Should we just merge this now? You've ticked all the tickboxes! |
@ian-ross I wanted to fix the imports before merging. We're importing the complete libraries at the moment, which results in massive bundles. I'm going to change it so we import what we actually need. |
@oliverroick OK! That makes sense. I just had a feeling that I ought to have merged this, since you'd done so much work on it. We'll merge it as soon as you're happy with it though. |
Initial front-end setup and user authentication flows
Do not merge yet, using this for review and discussions.
This is a huge PR that adds a front-end to Cadasta platform.
It introduces:
Open issues that will be addressed be merging:
PUT /account/me/
, otherwise we end up having two requests to update a user profile.