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

💻 Class overview redesign #5610

Merged
merged 33 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f9c8e0b
refactor initialize highlighting
jpelay Jun 3, 2024
ae7f56f
Update htmx-integration.ts
jpelay Jun 3, 2024
b3ff385
add graph to page
jpelay Jun 3, 2024
5432824
html files
jpelay Jun 3, 2024
6ffa44a
update chartjs version
jpelay Jun 3, 2024
dd24ede
refactor server
jpelay Jun 3, 2024
84ffb52
page fails when there are no students
jpelay Jun 3, 2024
cf59ca2
fix programs that were not running
jpelay Jun 3, 2024
8f317b7
add remove student button and fix cypress test
jpelay Jun 3, 2024
67bc2b0
add some padding around invate table
jpelay Jun 3, 2024
a1fd574
fix create accounts tests
jpelay Jun 3, 2024
1a34fc8
automatically generated files
jpelay Jun 3, 2024
6052c68
add wait to fix test
jpelay Jun 3, 2024
771e402
merge main
jpelay Jun 12, 2024
dadab55
Merge branch 'main' into class-overview-redesign
jpelay Jun 12, 2024
6b38577
fixes tests
jpelay Jun 12, 2024
48d0425
🤖 Automatically update generated files
jpelay Jun 12, 2024
703a606
translations
jpelay Jun 12, 2024
b994977
Merge branch 'class-overview-redesign' of https://github.com/hedyorg/…
jpelay Jun 12, 2024
a21ffcc
🤖 Automatically update generated files
jpelay Jun 12, 2024
e2aa971
oops
jpelay Jun 12, 2024
96cf36e
Merge branch 'class-overview-redesign' of https://github.com/hedyorg/…
jpelay Jun 12, 2024
31a2dae
populate string translations again
jpelay Jun 12, 2024
eba8c75
🤖 Automatically update generated files
jpelay Jun 12, 2024
a14ee11
Merge branch 'main' into class-overview-redesign
jpelay Jun 12, 2024
61d44bb
🤖 Automatically update generated files
jpelay Jun 12, 2024
533f823
Merge branch 'main' into class-overview-redesign
jpelay Jun 19, 2024
2d46676
🤖 Automatically update generated files
jpelay Jun 19, 2024
b07c714
Merge branch 'main' into class-overview-redesign
Felienne Jun 19, 2024
5636734
fix tests
jpelay Jun 19, 2024
7be4a46
Merge branch 'class-overview-redesign' of https://github.com/hedyorg/…
jpelay Jun 19, 2024
3ecd127
🤖 Automatically update generated files
jpelay Jun 19, 2024
d4549c0
Merge branch 'main' into class-overview-redesign
jpelay Jun 19, 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
7 changes: 3 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_locale():
ACHIEVEMENTS = achievements.Achievements(DATABASE, ACHIEVEMENTS_TRANSLATIONS)
SURVEYS = surveys.SurveysModule(DATABASE)
STATISTICS = statistics.StatisticsModule(DATABASE)

FOR_TEACHERS = for_teachers.ForTeachersModule(DATABASE, ACHIEVEMENTS)
TAGS = collections.defaultdict(hedy_content.NoSuchAdventure)
for lang in ALL_LANGUAGES.keys():
TAGS[lang] = hedy_content.Tags(lang)
Expand Down Expand Up @@ -635,7 +635,7 @@ def parse():
# Save this program (if the user is logged in)
if username and body.get('save_name'):
try:
program_logic = programs.ProgramsLogic(DATABASE, ACHIEVEMENTS, STATISTICS)
program_logic = programs.ProgramsLogic(DATABASE, ACHIEVEMENTS, FOR_TEACHERS)
program = program_logic.store_user_program(
user=current_user(),
level=level,
Expand Down Expand Up @@ -2797,7 +2797,7 @@ def current_user_allowed_to_see_program(program):

app.register_blueprint(auth_pages.AuthModule(DATABASE))
app.register_blueprint(profile.ProfileModule(DATABASE))
app.register_blueprint(programs.ProgramsModule(DATABASE, ACHIEVEMENTS, STATISTICS))
app.register_blueprint(programs.ProgramsModule(DATABASE, ACHIEVEMENTS, FOR_TEACHERS))
app.register_blueprint(for_teachers.ForTeachersModule(DATABASE, ACHIEVEMENTS))
app.register_blueprint(classes.ClassModule(DATABASE, ACHIEVEMENTS))
app.register_blueprint(classes.MiscClassPages(DATABASE, ACHIEVEMENTS))
Expand All @@ -2807,7 +2807,6 @@ def current_user_allowed_to_see_program(program):
app.register_blueprint(quiz.QuizModule(DATABASE, ACHIEVEMENTS, QUIZZES))
app.register_blueprint(parsons.ParsonsModule(PARSONS))
app.register_blueprint(statistics.StatisticsModule(DATABASE))
app.register_blueprint(statistics.LiveStatisticsModule(DATABASE))
app.register_blueprint(user_activity.UserActivityModule(DATABASE))
app.register_blueprint(tags.TagsModule(DATABASE, ACHIEVEMENTS))
app.register_blueprint(public_adventures.PublicAdventuresModule(DATABASE, ACHIEVEMENTS))
Expand Down
8 changes: 7 additions & 1 deletion build-tools/heroku/generate-client-messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
'disabled',
'adventures_restored',
'multiple_keywords_warning',
'selected'
'selected',
'adventures_tried',
'graph_title',
'errors',
'adventures_completed',
'number_of_errors',
'successful_runs'
]


Expand Down
8 changes: 7 additions & 1 deletion content/client-messages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ gettext('directly_available')
gettext('disabled')
gettext('adventures_restored')
gettext('multiple_keywords_warning')
gettext('selected')
gettext('selected')
gettext('adventures_tried')
gettext('graph_title')
gettext('errors')
gettext('adventures_completed')
gettext('number_of_errors')
gettext('successful_runs')
43 changes: 23 additions & 20 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ msgstr ""
msgid "add_students"
msgstr ""

msgid "add_students_options"
msgstr ""

msgid "add_your_language"
msgstr ""

Expand Down Expand Up @@ -236,12 +233,18 @@ msgstr ""
msgid "adventures"
msgstr ""

msgid "adventures_completed"
msgstr ""

msgid "adventures_info"
msgstr ""

msgid "adventures_restored"
msgstr ""

msgid "adventures_tried"
msgstr ""

msgid "ago"
msgstr ""

Expand Down Expand Up @@ -326,7 +329,7 @@ msgstr ""
msgid "class_customize_success"
msgstr ""

msgid "class_live"
msgid "class_graph_explanation"
msgstr ""

msgid "class_name_duplicate"
Expand All @@ -341,7 +344,7 @@ msgstr ""
msgid "class_name_prompt"
msgstr ""

msgid "class_overview"
msgid "class_performance_graph"
msgstr ""

msgid "class_survey_description"
Expand Down Expand Up @@ -614,6 +617,9 @@ msgstr ""
msgid "error_logo_alt"
msgstr ""

msgid "errors"
msgstr ""

msgid "exclamation mark"
msgstr ""

Expand Down Expand Up @@ -740,6 +746,9 @@ msgstr ""
msgid "goto_profile"
msgstr ""

msgid "graph_title"
msgstr ""

msgid "grid_overview"
msgstr ""

Expand Down Expand Up @@ -908,9 +917,6 @@ msgstr ""
msgid "last_error"
msgstr ""

msgid "last_login"
msgstr ""

msgid "last_program"
msgstr ""

Expand Down Expand Up @@ -1166,6 +1172,9 @@ msgstr ""
msgid "number_lines"
msgstr ""

msgid "number_of_errors"
msgstr ""

msgid "number_programs"
msgstr ""

Expand Down Expand Up @@ -1211,9 +1220,6 @@ msgstr ""
msgid "owner"
msgstr ""

msgid "page"
msgstr ""

msgid "page_not_found"
msgstr ""

Expand Down Expand Up @@ -1637,9 +1643,6 @@ msgstr ""
msgid "student_details"
msgstr ""

msgid "student_list"
msgstr ""

msgid "student_not_allowed_in_class"
msgstr ""

Expand Down Expand Up @@ -1676,6 +1679,9 @@ msgstr ""
msgid "subscribe_newsletter"
msgstr ""

msgid "successful_runs"
msgstr ""

msgid "suggestion_color"
msgstr ""

Expand Down Expand Up @@ -1757,12 +1763,6 @@ msgstr ""
msgid "title_admin"
msgstr ""

msgid "title_class grid_overview"
msgstr ""

msgid "title_class live_statistics"
msgstr ""

msgid "title_class-overview"
msgstr ""

Expand Down Expand Up @@ -1934,6 +1934,9 @@ msgstr ""
msgid "view_slides"
msgstr ""

msgid "waiting_for_submit"
msgstr ""

msgid "walker_variable_role"
msgstr ""

Expand Down
45 changes: 38 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/jqueryui": "^1.12.16",
"autoprefixer": "^10.4.2",
"chai-colors": "^1.0.1",
"chart.js": "^3.6.2",
"chart.js": "^4.4.2",
"codemirror": "^6.0.1",
"cypress-real-events": "^1.12.0",
"dompurify": "^2.3.5",
Expand Down
Loading
Loading