Skip to content

Commit

Permalink
feat: add star icon set
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 1, 2023
1 parent 9e25dcc commit a2793b8
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 7 deletions.
9 changes: 6 additions & 3 deletions feedback/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@
DEFAULT_SCALETEXT = ["Excellent", "Good", "Average", "Fair", "Poor"]

# Unicode alt faces are cute, but we do nulls instead for a11y.
ICON_SETS = {'face': [""]*5, # u"😁😊😐😞😭",
'num': "12345",
'midface': [""]*5} # u"😞😐😊😐😞"}
ICON_SETS = {
'face': [""]*5, # u"😁😊😐😞😭",
'num': "12345",
'midface': [""]*5, # u"😞😐😊😐😞"
'star': [""]*5, # u "☆☆☆☆☆"
}


def _(text):
Expand Down
Binary file added feedback/public/default_icons/astar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/astar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/astar3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/astar4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/astar5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/istar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/istar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/istar3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/istar4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/istar5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/sstar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/sstart2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/sstart3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/sstart4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added feedback/public/default_icons/sstart5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions feedback/templates/html/scale_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<label title="{{scale_text}}" class="feedback_likert_label">
<input data-id="radio_{{idx}}" name="feedback_scale" class="feedback_radio" type="radio" {{active}}/>
<span class="feedback_icon feedback_icon_inactive">
<img src="{{ina_icon}}" alt="{{unicode_icon}}"/>
<img src="{{ina_icon}}" width="54px" alt="{{unicode_icon}}"/>
</span>
<span class="feedback_icon feedback_icon_active">
<img src="{{act_icon}}" alt="{{unicode_icon}}"/>
<img src="{{act_icon}}" width="54px" alt="{{unicode_icon}}"/>
</span>
<br/>
<span>{{scale_text}}</span>
Expand Down
4 changes: 2 additions & 2 deletions feedback/templates/html/staff_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<label title="{{scale_text}}" class="feedback_likert_label">
<input data-id="radio_{{idx}}" name="feedback_scale" class="feedback_radio" type="radio" {{active}}/>
<span class="feedback_icon feedback_icon_inactive">
<img src="{{ina_icon}}" alt="{{unicode_icon}}"/>
<img src="{{ina_icon}}" width="54px" alt="{{unicode_icon}}"/>
</span>
<span class="feedback_icon feedback_icon_active">
<img src="{{act_icon}}" alt="{{unicode_icon}}"/>
<img src="{{act_icon}}" width="54px" alt="{{unicode_icon}}"/>
</span>
<br/>
<span>{{scale_text}}</span>
Expand Down
1 change: 1 addition & 0 deletions feedback/templates/html/studio_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<option value="face">{% trans "Faces (happy to sad)" %}</option>
<option value="midface">{% trans "Faces (sad to happy to sad)" %}</option>
<option value="num">{% trans "Numeric" %}</option>
<option value="star">{% trans "Stars" %}</option>
</select>
</label>
</div>
Expand Down

0 comments on commit a2793b8

Please sign in to comment.