Skip to content

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

Open
adamaziz15 wants to merge 18 commits into
maestrano:2.0from
adamaziz15:feature/497-move-rails-pages
Open

[MNOE-497] [WIP] Move rails pages to SPA#236
adamaziz15 wants to merge 18 commits into
maestrano:2.0from
adamaziz15:feature/497-move-rails-pages

Conversation

@adamaziz15

@adamaziz15 adamaziz15 commented Jun 27, 2017

Copy link
Copy Markdown
Contributor

@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

@alexnoox alexnoox left a comment

Copy link
Copy Markdown
Contributor

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! 😄

Comment thread src/app/index.config.coffee Outdated
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
Copy Markdown
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)

}
}

input.fluroblue[type=radio] {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove empty lines

)
# Configure auth routes
.config((AuthProvider, AuthInterceptProvider) ->
AuthProvider.loginPath('/mnoe/auth/users/sign_in')

Copy link
Copy Markdown
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