-
Notifications
You must be signed in to change notification settings - Fork 33
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
Company registration and login #63
Conversation
.error_list { | ||
border: 1px solid #B94A48; | ||
color: #B94A48; | ||
background-color: #F2DEDE; |
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.
Color literals like #F2DEDE
should only be used in variable declarations; they should be referred to via variable everywhere else.
.error_list { | ||
border: 1px solid #B94A48; | ||
color: #B94A48; | ||
background-color: #F2DEDE; |
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.
Color #F2DEDE
should be written as #f2dede
|
||
.error_list { | ||
border: 1px solid #B94A48; | ||
color: #B94A48; |
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.
Color literals like #B94A48
should only be used in variable declarations; they should be referred to via variable everywhere else.
|
||
.error_list { | ||
border: 1px solid #B94A48; | ||
color: #B94A48; |
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.
Color #B94A48
should be written as #b94a48
@@ -215,3 +216,9 @@ body { | |||
margin-top: 0; | |||
} | |||
} | |||
|
|||
.error_list { | |||
border: 1px solid #B94A48; |
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.
Color literals like #B94A48
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
background-color: $primary-color; | ||
border: none; | ||
-webkit-box-shadow: 0 5px 0 $dark-primary-color; | ||
-moz-box-shadow: 0 5px 0 $dark-primary-color; |
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.
Avoid vendor prefixes.
app/assets/stylesheets/_login.scss
Outdated
color: white; | ||
background-color: $primary-color; | ||
border: none; | ||
-webkit-box-shadow: 0 5px 0 $dark-primary-color; |
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.
Avoid vendor prefixes.
app/assets/stylesheets/_login.scss
Outdated
margin: 30px auto 30px; | ||
color: white; | ||
background-color: $primary-color; | ||
border: none; |
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.
border: 0
is preferred over border: none
app/assets/stylesheets/_login.scss
Outdated
height: 50px; | ||
display: block; | ||
margin: 30px auto 30px; | ||
color: white; |
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.
Color white
should be written in hexadecimal form as #ffffff
app/assets/stylesheets/_login.scss
Outdated
height: 50px; | ||
display: block; | ||
margin: 30px auto 30px; | ||
color: white; |
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.
Color literals like white
should only be used in variable declarations; they should be referred to via variable everywhere else.
f514fca
to
e68d1d9
Compare
app/assets/stylesheets/_login.scss
Outdated
width: 85%; | ||
height: 50px; | ||
display: block; | ||
margin: 30px auto 30px; |
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.
Shorthand form for property margin
should be written more concisely as 30px auto
instead of 30px auto 30px
app/assets/stylesheets/_login.scss
Outdated
} | ||
|
||
.btn-sign { | ||
position: relative; |
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.
Properties should be ordered background-color, border, -moz-box-shadow, -webkit-box-shadow, box-shadow, color, display, height, margin, position, width
app/assets/stylesheets/_login.scss
Outdated
-webkit-box-shadow: 0 0 0 1000px white inset; | ||
} | ||
|
||
.btn-sign { |
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.
Rule set contains (11/10) properties
app/assets/stylesheets/_login.scss
Outdated
} | ||
|
||
.field:-webkit-autofill { | ||
-webkit-box-shadow: 0 0 0 1000px white inset; |
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.
Color literals like white
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
} | ||
|
||
.field:-webkit-autofill { | ||
-webkit-box-shadow: 0 0 0 1000px white inset; |
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.
Color white
should be written in hexadecimal form as #ffffff
app/assets/stylesheets/_login.scss
Outdated
font-weight: 300; | ||
} | ||
|
||
h1, input { |
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.
Each selector in a comma sequence should be on its own single line
app/assets/stylesheets/_login.scss
Outdated
h1 { | ||
text-align: center; | ||
font-size: 175%; | ||
color: #757575; |
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.
Color literals like #757575
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
} | ||
|
||
h1 { | ||
text-align: center; |
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.
Properties should be ordered color, font-size, font-weight, text-align
app/assets/stylesheets/_login.scss
Outdated
} | ||
|
||
::-moz-selection { | ||
background-color: #8ac7d8; |
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.
Color literals like #8ac7d8
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
background-color: #b5e2e7; | ||
} | ||
|
||
::-moz-selection { |
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.
Avoid vendor prefixes.
e68d1d9
to
560d561
Compare
app/assets/stylesheets/_login.scss
Outdated
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); | ||
|
||
::selection { | ||
background-color: #b5e2e7; |
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.
Color literals like #b5e2e7
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
background-color: #fff; | ||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); | ||
-moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); | ||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); |
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.
Color literals like rgba(0, 0, 0, 0.25)
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
width: 340px; | ||
background-color: #fff; | ||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); | ||
-moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); |
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.
Color literals like rgba(0, 0, 0, 0.25)
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
width: 340px; | ||
background-color: #fff; | ||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); | ||
-moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); |
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.
Avoid vendor prefixes.
app/assets/stylesheets/_login.scss
Outdated
margin: 50px auto; | ||
width: 340px; | ||
background-color: #fff; | ||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); |
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.
Color literals like rgba(0, 0, 0, 0.25)
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
margin: 50px auto; | ||
width: 340px; | ||
background-color: #fff; | ||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25); |
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.
Avoid vendor prefixes.
app/assets/stylesheets/_login.scss
Outdated
padding: 10px; | ||
margin: 50px auto; | ||
width: 340px; | ||
background-color: #fff; |
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.
Color literals like #fff
should only be used in variable declarations; they should be referred to via variable everywhere else.
app/assets/stylesheets/_login.scss
Outdated
} | ||
|
||
.sign-box { | ||
padding: 10px; |
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.
Properties should be ordered background-color, -moz-box-shadow, -webkit-box-shadow, box-shadow, margin, padding, width
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.
life's to short for this :(
@@ -1,6 +1,8 @@ | |||
# frozen_string_literal: true | |||
|
|||
class VacanciesController < ApplicationController | |||
before_action :require_login, except: [:index, :show] |
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.
Use %i
or %I
for an array of symbols.
560d561
to
22ea341
Compare
@@ -215,3 +218,9 @@ body { | |||
margin-top: 0; | |||
} | |||
} | |||
|
|||
.error-list { | |||
border: 1px solid $error-color; |
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.
Properties should be ordered background-color, border, color
22ea341
to
356523e
Compare
356523e
to
fad3d43
Compare
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/opensanca/opensanca_jobs/pulls/63. |
@@ -1,6 +1,8 @@ | |||
# frozen_string_literal: true | |||
|
|||
class VacanciesController < ApplicationController | |||
before_action :require_login, except: %i[index show] |
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.
its funny how i like the old way more, like: except: [:index, :show]
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.
I prefer using %i. I can omit the :
. And this is the styleguide
app/workers/setup_user_worker.rb
Outdated
@@ -0,0 +1,11 @@ | |||
# frozen_string_literal: true | |||
|
|||
class SetupUserWorker |
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.
Why not WelcomeUserWorker
?
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.
👍
fad3d43
to
b7f9537
Compare
b7f9537
to
bd4cf54
Compare
bd4cf54
to
4fbe737
Compare
426fb32
to
b00bbb7
Compare
b00bbb7
to
07611be
Compare
07611be
to
7f84bb7
Compare
7f84bb7
to
fd00c4b
Compare
75a4a6e
to
f696052
Compare
f696052
to
1434e84
Compare
This is the very beginning part of the company dashboard. This commit adds the company registration and login and requires login to register a new job.
1434e84
to
4ff73a0
Compare
After #63, we don't need this fields anymore, since they are saved on the Company model
After #63, we don't need this fields anymore, since they are saved on the Company model
This is the very beginning part of the company dashboard.
This commit adds the company registration and login and requires login to
register a new job.
Closes #64
How to test
Visit the root page
Click on
Anunciar Vaga
button.It should redirect to the login page
Click on
Registrar
link, and set a new account.It should create your account and login for you.
Crate a new Job.
It should create a new job, redirect to the job page. The page should contain the company information (from the Registration page)
Click on Logout
It should log out with success.
You should visit the job show page without login.