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: Update styles of the game pt. 1 #1356

Merged
merged 6 commits into from
Jul 13, 2022
Merged

Conversation

faucomte97
Copy link
Contributor

@faucomte97 faucomte97 commented Jul 13, 2022

This change is Reviewable

@faucomte97 faucomte97 self-assigned this Jul 13, 2022
Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewed 18 of 18 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @faucomte97)


game/templates/game/base.html line 14 at r1 (raw file):

{% block css %}
{{block.super}}

Missing indentation 😞


game/templates/game/level_selection.html line 79 at r1 (raw file):

        {% for episode in blocklyEpisodes %}
        <div class="panel">
            {% if episode.id == 5 or episode.id == 6 %}

Minor, probably a nicer way of doing this would be to store these classes/difficulties in the DB (or model property?), then we could just have something like: <div class="panel-header bg--{{episode.difficulty}}" id="episode-{{episode.id}}"> 🙂

Copy link
Contributor Author

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 15 of 20 files reviewed, 1 unresolved discussion (waiting on @faucomte97 and @razvan-pro)


game/templates/game/base.html line 14 at r1 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

Missing indentation 😞

Done.


game/templates/game/level_selection.html line 79 at r1 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

Minor, probably a nicer way of doing this would be to store these classes/difficulties in the DB (or model property?), then we could just have something like: <div class="panel-header bg--{{episode.difficulty}}" id="episode-{{episode.id}}"> 🙂

Done :)

Copy link
Collaborator

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2, 3 of 4 files at r3, 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @faucomte97)

@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #1356 (c32392b) into master (2352c94) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1356   +/-   ##
=======================================
  Coverage   92.16%   92.17%           
=======================================
  Files          99       99           
  Lines        5311     5317    +6     
=======================================
+ Hits         4895     4901    +6     
  Misses        416      416           
Impacted Files Coverage Δ
game/csp_config.py 100.00% <ø> (ø)
game/admin.py 100.00% <100.00%> (ø)
game/models.py 94.95% <100.00%> (+0.22%) ⬆️
game/views/level_selection.py 89.13% <100.00%> (ø)

@faucomte97 faucomte97 merged commit 604dbdb into master Jul 13, 2022
@faucomte97 faucomte97 deleted the update_later_levels_pt1 branch July 13, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants