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

feat: OPTIC-757: Label Studio App Redesign #5892

Merged
merged 46 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
34f7ad2
app redesign color updates in editor and datamanager
carly-bartel May 16, 2024
2d55153
ci: Build frontend
robot-ci-heartex May 16, 2024
5f71e25
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel May 21, 2024
225aaf0
ci: Build frontend
robot-ci-heartex May 21, 2024
e9befd3
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel May 22, 2024
81c1d86
ci: Build frontend
robot-ci-heartex May 22, 2024
ff617c8
button fix
carly-bartel May 23, 2024
453a01a
style fixes
carly-bartel May 23, 2024
82f6b8d
button fix
carly-bartel May 23, 2024
502e091
data manager style edits
carly-bartel May 23, 2024
c9647e0
Merge branch 'fb-optic-757/app-redesign' of github.com:HumanSignal/la…
bmartel May 29, 2024
962daf3
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel May 29, 2024
ebd6c97
ci: Build frontend
robot-ci-heartex May 29, 2024
90722ac
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel Jun 3, 2024
f09ef0a
ci: Build frontend
robot-ci-heartex Jun 3, 2024
beee620
qa fixes
carly-bartel Jun 3, 2024
5ecc99c
ci: Build frontend
robot-ci-heartex Jun 3, 2024
cd91e43
data manager style updates
carly-bartel Jun 4, 2024
38dc403
ci: Build frontend
robot-ci-heartex Jun 4, 2024
56ddfbb
update favicon
carly-bartel Jun 5, 2024
aba903b
style fix
carly-bartel Jun 5, 2024
83cbce5
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel Jun 6, 2024
c729fde
ci: Build frontend
robot-ci-heartex Jun 6, 2024
d983ba5
remove roboto
carly-bartel Jun 6, 2024
f7316c8
ci: Build frontend
robot-ci-heartex Jun 6, 2024
ab359b0
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel Jun 13, 2024
50fabd7
ci: Build frontend
robot-ci-heartex Jun 13, 2024
0a27510
setting up oss locally
carly-bartel Jun 13, 2024
b797cab
ci: Build frontend
robot-ci-heartex Jun 13, 2024
8f9efa8
style fixes
carly-bartel Jun 13, 2024
4f660c5
bug bash fixes
carly-bartel Jun 13, 2024
62d4b0c
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel Jun 14, 2024
ffcac4b
ci: Build frontend
robot-ci-heartex Jun 14, 2024
1f2d5ae
style fixes
carly-bartel Jun 17, 2024
702d42a
style edits
carly-bartel Jun 17, 2024
1a8c3a7
importing fonts
carly-bartel Jun 17, 2024
3dfecb6
login screens
carly-bartel Jun 18, 2024
459e66d
style fixes
carly-bartel Jun 18, 2024
46133d0
style edits
carly-bartel Jun 18, 2024
f819dba
style changes
carly-bartel Jun 19, 2024
249db4a
style changes
carly-bartel Jun 19, 2024
00d85ad
style changes
carly-bartel Jun 20, 2024
403b537
style edits
carly-bartel Jun 20, 2024
18b4337
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel Jun 21, 2024
b404bd6
Merge remote-tracking branch 'origin/develop' into fb-optic-757/app-r…
bmartel Jun 24, 2024
ed8e662
linting
bmartel Jun 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
login screens
  • Loading branch information
carly-bartel committed Jun 18, 2024
commit 3dfecb62b7622fce4c6f0f8cc7263cc43b03cf72
302 changes: 144 additions & 158 deletions label_studio/core/static/css/login.css

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions label_studio/users/templates/users/new-ui/user_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
{% block content %}
<div class="login_page_new_ui">
<div class="left">
<h2>Welcome</h2>
<img src="{{ settings.HOSTNAME }}{% static 'images/label_studio_logo.svg' %}" height="93" alt="Label Studio Logo"/>
<h3>A full-fledged open source solution for data labeling test</h3>
<img src="{{ settings.HOSTNAME }}{% static 'icons/logo-black.svg' %}" height="64" alt="Label Studio Logo"/>
<h3>A full-fledged open source solution for data labeling</h3>

{% include 'users/new-ui/user_tips.html' %}

Expand All @@ -32,12 +31,6 @@ <h3>A full-fledged open source solution for data labeling test</h3>
</div>
</div>
<div class="right">
<div class="toggle">
{% if not settings.DISABLE_SIGNUP_WITHOUT_LINK %}
<a href="{{ settings.HOSTNAME }}/user/signup" class="{% if 'signup' in request.path %}active{% endif %}">Sign up</a>
<a href="{{ settings.HOSTNAME }}/user/login" class="{% if 'login' in request.path %}active{% endif %}">Log in</a>
{% endif %}
</div>
{% block user_content %}
</div>
</div>
Expand Down
48 changes: 30 additions & 18 deletions label_studio/users/templates/users/new-ui/user_login.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
{% extends 'users/new-ui/user_base.html' %}

{% block user_content %}
<form id="login-form" action="{% url 'user-login' %}{% if next %}?next={{ next }}{% endif %}" method="post">
{% csrf_token %}
<p><input type="text" class="ls-input" name="email" id="email" placeholder="Email" value="{{ form.data.email }}"></p>
<p><input type="password" class="ls-input" name="password" id="password" placeholder="Password"></p>
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<p class="error">
{{ error }}
</p>
{% endfor %}
{% endif %}
<p>
<input type="checkbox" id="persist_session" name="persist_session" class="ls-checkbox" checked="checked" style="width: auto;" />
<label for="persist_session">Keep me logged in this browser</label>
</p>
<p><button type="submit" aria-label="Log In" class="ls-button ls-button_look_primary">Log in</button></p>
</form>

<div class="form-wrapper">
<h2>Log in</h2>
<form id="login-form" action="{% url 'user-login' %}{% if next %}?next={{ next }}{% endif %}" method="post">
{% csrf_token %}
<div class="input-wrapper">
<label>Email Address</label>
<input type="text" class="ls-input" name="email" id="email" value="{{ form.data.email }}">
</div>
<div class="input-wrapper">
<label>Password</label>
<input type="password" class="ls-input" name="password" id="password">
</div>
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<p class="error">
{{ error }}
</p>
{% endfor %}
{% endif %}
<div class="form-group">
<input type="checkbox" id="persist_session" name="persist_session" class="ls-checkbox" checked="checked" style="width: auto;" />
<label for="persist_session">Keep me logged in this browser</label>
</div>
<button type="submit" aria-label="Log In" class="ls-button ls-button_look_primary">Log in</button>
</form>
</div>
<div class="text-wrapper">
<p class="">Don't have an account?</p>
<a href="{{ settings.HOSTNAME }}/user/signup">Sign up</a>
</div>
{% endblock %}
93 changes: 49 additions & 44 deletions label_studio/users/templates/users/new-ui/user_signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,60 @@
{% load static %}

{% block user_content %}

<form id="signup-form"
<div class="form-wrapper">
<h2>Sign Up</h2>
<form id="signup-form"
action="{% url 'user-signup' %}?{% if next %}&next={{ next }}{% endif %}{% if token %}&token={{ token }}{% endif %}"
method="post"
>
>
{% csrf_token %}
<div>
<input type="text" class="ls-input" name="email" id="email" placeholder="Email" value="{{ form.data.email }}">
{% if user_form.errors.email %}
<ul class="field_errors">
{% for error in user_form.errors.email %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="input-wrapper">
<label>Email Address</label>
<input type="text" class="ls-input" name="email" id="email" value="{{ form.data.email }}">
{% if user_form.errors.email %}
<ul class="field_errors">
{% for error in user_form.errors.email %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
<div class="input-wrapper">
<label>Password</label>
<input type="password" class="ls-input" name="password" id="password">
{% if user_form.errors.password %}
<ul class="field_errors">
{% for error in user_form.errors.password %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
<div>
<input type="password" class="ls-input" name="password" id="password" placeholder="Password">
{% if user_form.errors.password %}
<ul class="field_errors">
{% for error in user_form.errors.password %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="form-group">
<input name="allow_newsletters" id="allow_newsletters" type="hidden" value="true">
<input name="allow_newsletters_visual" id="allow_newsletters_visual" class="ls-checkbox"
type="checkbox" style="width: auto" checked="true"
onchange="document.getElementById('allow_newsletters').value=document.getElementById('allow_newsletters_visual').checked">
<label for="allow_newsletters_visual" style="display: inline-block; cursor: pointer;">
Get the latest news from Heidi
<img src="{{ settings.HOSTNAME }}{% static 'images/heidi.png' %}" alt="Heidi"
width="25" style="position: absolute; right: -2.5em; top: -.25rem;">
</label>
</div>

<div>
<input name="allow_newsletters" id="allow_newsletters" type="hidden" value="true">
<label for="allow_newsletters_visual" style="display: inline-block; cursor: pointer;">

<input name="allow_newsletters_visual" id="allow_newsletters_visual"
type="checkbox" style="width: auto" checked="true"
onchange="document.getElementById('allow_newsletters').value=document.getElementById('allow_newsletters_visual').checked">
Get the latest news from Heidi
<img src="{{ settings.HOSTNAME }}{% static 'images/heidi.png' %}" alt="Heidi"
width="25" style="display: inline; margin: 0; position: relative; top: 5px; left: 0px">

</label>
</div>

{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<p class="error">
{{ error }}
</p>
{% endfor %}
{% endif %}
<p><button type="submit" aria-label="Create Account" class="ls-button ls-button_look_primary">Create Account</button></p>
</form>
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<p class="error">
{{ error }}
</p>
{% endfor %}
{% endif %}
<p><button type="submit" aria-label="Create Account" class="ls-button ls-button_look_primary">Create Account</button></p>
</form>
</div>
<div class="text-wrapper">
<p class="">Already have an account?</p>
<a href="{{ settings.HOSTNAME }}/user/login">Log in</a>
</div>

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.textarea
height 40px
min-height 40px
background #FAFAFA
background var(--sand_0)
font-size 16px
line-height 22px
border 1px solid var(--sand_300)
Expand Down
2 changes: 1 addition & 1 deletion web/dist/apps/labelstudio/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/apps/labelstudio/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/libs/datamanager/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/libs/datamanager/main.css.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@
align-items center
font-size 16px
text-align center
color rgba(#000, 0.6)
color var(--sand_600)

.button
color rgba(9, 109, 217, 1)
color var(--primary_link)
padding 8px 16px
border 1px solid rgba(9, 109, 217, 0.16)
border 1px solid var(--primary_link)
border-radius 4px
box-shadow none
font-size 16px
font-size 1rem
font-weight 500
line-height 24px
letter-spacing 0.15px
&__text
margin-bottom 1em
Loading