Skip to content
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

[MNOE-497] [WIP] Move rails pages to SPA #236

Open
wants to merge 18 commits into
base: 2.0
Choose a base branch
from

Conversation

adamaziz15
Copy link
Contributor

@adamaziz15 adamaziz15 commented Jun 27, 2017

@alexnoox @ouranos
Sign in page works well and the rest of the application seems to run fine after the changes so far.
Moving on to the other rails pages but need to come back to take care of some functionality on the login page:

  • Remember me checkbox
  • Shared links/oAuth

Copy link
Contributor

@alexnoox alexnoox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @adamaziz15,

I had a quick look at this WIP PR. The structure seems good to me. I wrote a few comments. Let me know when this is ready for a full review. Cheers.

  • For the select LESS styles in auth.less, please make sure that they are used and useful. They seem hacky to me.
  • After a second look a lot of stuff seems not used in the styles. This project has a strong legacy, time to clean it up! 😄

basePath = $windowProvider.$get().location.origin
AuthProvider.loginPath(basePath + '/mnoe/auth/users/sign_in')
AuthProvider.logoutPath(basePath + '/mnoe/auth/users/sign_out')
AuthProvider.registerPath(basePath + '/mnoe/auth/users/')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a constant object to define those paths (eg. URI.login)

@@ -149,3 +149,272 @@
height: 34px;
}
}

input.fluroblue[type=radio] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fluroblue is color specific to maestrano, please use an agnostic selector name and remove those occurences.

$window.location.href = '/'
toastr = $injector.get('toastr')

toastr.error('User is not connected!')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should i18n this toastr





Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty lines

@@ -69,3 +71,22 @@ angular.module 'mnoEnterpriseAngular'
# TODO: Activate in "developer mode" only (spams the console and makes the application lag)
#$translateProvider.useMissingTranslationHandlerLog()
)
# Configure auth routes
.config((AuthProvider, AuthInterceptProvider) ->
AuthProvider.loginPath('/mnoe/auth/users/sign_in')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a constant to define those path strings

@adamaziz15 adamaziz15 force-pushed the feature/497-move-rails-pages branch from 5bbe1e0 to 7d6001e Compare September 20, 2017 21:13
@adamaziz15 adamaziz15 changed the base branch from master to 2.0 September 20, 2017 21:17
@adamaziz15 adamaziz15 force-pushed the feature/497-move-rails-pages branch from 7d6001e to 154e2d1 Compare September 22, 2017 16:56
@adamaziz15 adamaziz15 force-pushed the feature/497-move-rails-pages branch from 154e2d1 to 33f6872 Compare October 2, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants