mumuki-laboratory 9.0.4 → 9.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/mumuki_laboratory/application/codemirror.js +10 -2
  3. data/app/assets/javascripts/mumuki_laboratory/application/discussions.js +49 -8
  4. data/app/assets/javascripts/mumuki_laboratory/application/gamification.js +3 -3
  5. data/app/assets/javascripts/mumuki_laboratory/application/kids.js +11 -7
  6. data/app/assets/javascripts/mumuki_laboratory/application/kindergarten.js +3 -3
  7. data/app/assets/javascripts/mumuki_laboratory/application/messages.js +3 -3
  8. data/app/assets/javascripts/mumuki_laboratory/application/mu-modal-carrousel.js +4 -4
  9. data/app/assets/javascripts/mumuki_laboratory/application/multiple-files.js +18 -5
  10. data/app/assets/javascripts/mumuki_laboratory/application/multiple-scenarios.js +1 -1
  11. data/app/assets/javascripts/mumuki_laboratory/application/primary.js +4 -4
  12. data/app/assets/javascripts/mumuki_laboratory/application/profile.js +0 -6
  13. data/app/assets/javascripts/mumuki_laboratory/application/progress.js +1 -1
  14. data/app/assets/javascripts/mumuki_laboratory/application/speech-bubble-renderer.js +1 -1
  15. data/app/assets/javascripts/mumuki_laboratory/application/submission.js +4 -3
  16. data/app/assets/javascripts/mumuki_laboratory/application/toast.js +3 -0
  17. data/app/assets/javascripts/mumuki_laboratory/application/tooltip.js +1 -1
  18. data/app/assets/javascripts/mumuki_laboratory/application/upload.js +2 -2
  19. data/app/assets/javascripts/mumuki_laboratory/application/user.js +1 -1
  20. data/app/assets/stylesheets/mumuki_laboratory/application.scss +0 -1
  21. data/app/assets/stylesheets/mumuki_laboratory/application/_errors.scss +1 -1
  22. data/app/assets/stylesheets/mumuki_laboratory/application/_layout.scss +1 -27
  23. data/app/assets/stylesheets/mumuki_laboratory/application/_modules.scss +1 -2
  24. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_activity.scss +14 -0
  25. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_avatar.scss +5 -0
  26. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_breadcrumb.scss +2 -2
  27. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_datepicker.scss +0 -4
  28. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_discussion.scss +49 -59
  29. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_editor.scss +16 -18
  30. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_assignment.scss +2 -11
  31. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_exercise_results.scss +1 -7
  32. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_faqs.scss +3 -3
  33. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_flash.scss +7 -46
  34. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids.scss +19 -4
  35. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kids_results.scss +18 -23
  36. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_kindergarten.scss +1 -9
  37. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_overlap.scss +1 -1
  38. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_progress_bar.scss +5 -5
  39. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_terms.scss +3 -2
  40. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_timer.scss +1 -3
  41. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_menu.scss +14 -7
  42. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_user_profile.scss +1 -2
  43. data/app/controllers/application_controller.rb +4 -2
  44. data/app/controllers/discussions_messages_controller.rb +9 -3
  45. data/app/controllers/users_controller.rb +13 -0
  46. data/app/helpers/application_helper.rb +5 -5
  47. data/app/helpers/assignment_result_helper.rb +3 -2
  48. data/app/helpers/assistance_box_helper.rb +1 -1
  49. data/app/helpers/concerns/with_student_path_navigation.rb +8 -3
  50. data/app/helpers/concerns/with_student_path_navigation/continue_navigation.rb +1 -1
  51. data/app/helpers/concerns/with_student_path_navigation/finish_navigation.rb +1 -1
  52. data/app/helpers/concerns/with_student_path_navigation/next_parent_navigation.rb +7 -0
  53. data/app/helpers/concerns/with_student_path_navigation/revisit_navigation.rb +1 -1
  54. data/app/helpers/discussions_helper.rb +64 -23
  55. data/app/helpers/editor_tabs_helper.rb +10 -6
  56. data/app/helpers/email_helper.rb +2 -2
  57. data/app/helpers/exercise_input_helper.rb +2 -3
  58. data/app/helpers/links_helper.rb +12 -9
  59. data/app/helpers/menu_bar_helper.rb +1 -1
  60. data/app/helpers/messages_helper.rb +1 -1
  61. data/app/helpers/multiple_file_editor_helper.rb +2 -1
  62. data/app/helpers/overlapped_buttons_helper.rb +22 -12
  63. data/app/helpers/profile_helper.rb +3 -3
  64. data/app/helpers/toast_helper.rb +27 -0
  65. data/app/helpers/user_activity_helper.rb +48 -0
  66. data/app/helpers/user_menu_helper.rb +4 -0
  67. data/app/views/book/show.html.erb +2 -2
  68. data/app/views/certificates/verify.html.erb +1 -1
  69. data/app/views/chapters/show.html.erb +2 -2
  70. data/app/views/discussions/_description_message.html.erb +1 -1
  71. data/app/views/discussions/_message.html.erb +32 -7
  72. data/app/views/discussions/_new_message.html.erb +13 -2
  73. data/app/views/discussions/index.html.erb +8 -10
  74. data/app/views/discussions/new.html.erb +2 -2
  75. data/app/views/discussions/show.html.erb +20 -12
  76. data/app/views/exam_registrations/show.html.erb +10 -11
  77. data/app/views/exercise_solutions/_assistant_rules_box.html.erb +1 -1
  78. data/app/views/exercise_solutions/_contextualization_results_body.html.erb +1 -1
  79. data/app/views/exercise_solutions/_contextualization_results_container.html.erb +1 -1
  80. data/app/views/exercise_solutions/_kids_results_button.html.erb +2 -2
  81. data/app/views/exercise_solutions/_results.html.erb +1 -1
  82. data/app/views/exercises/_exercise_assignment.html.erb +2 -2
  83. data/app/views/exercises/_exercise_skipped.html.erb +1 -1
  84. data/app/views/exercises/_read_only.html.erb +108 -105
  85. data/app/views/exercises/show.html.erb +7 -7
  86. data/app/views/guides/_guide.html.erb +1 -1
  87. data/app/views/guides/_guide_container.html.erb +4 -4
  88. data/app/views/invitations/_invitation_form.html.erb +5 -4
  89. data/app/views/layouts/_authoring.html.erb +1 -1
  90. data/app/views/layouts/_discussions.html.erb +7 -7
  91. data/app/views/layouts/_kids.html.erb +5 -5
  92. data/app/views/layouts/_kindergarten.html.erb +10 -6
  93. data/app/views/layouts/_main.html.erb +6 -10
  94. data/app/views/layouts/_organizations_listing.html.erb +2 -2
  95. data/app/views/layouts/_progress_bar.html.erb +2 -0
  96. data/app/views/layouts/_submission_result_error.html.erb +1 -1
  97. data/app/views/layouts/_test_results.html.erb +1 -1
  98. data/app/views/layouts/_timer.html.erb +1 -1
  99. data/app/views/layouts/_user_menu.html.erb +4 -4
  100. data/app/views/layouts/application.html.erb +39 -42
  101. data/app/views/layouts/exercise_inputs/editors/_code.html.erb +4 -4
  102. data/app/views/layouts/exercise_inputs/editors/_free_form.html.erb +1 -1
  103. data/app/views/layouts/exercise_inputs/editors/_multiple_choice.html.erb +7 -9
  104. data/app/views/layouts/exercise_inputs/editors/_multiple_files.html.erb +10 -10
  105. data/app/views/layouts/exercise_inputs/editors/_single_choice.html.erb +6 -8
  106. data/app/views/layouts/exercise_inputs/editors/_text.html.erb +2 -3
  107. data/app/views/layouts/exercise_inputs/editors/_upload.html.erb +5 -5
  108. data/app/views/layouts/exercise_inputs/forms/_form.html.erb +1 -1
  109. data/app/views/layouts/exercise_inputs/forms/_interactive_form.html.erb +2 -2
  110. data/app/views/layouts/exercise_inputs/forms/_kids_form.html.erb +1 -1
  111. data/app/views/layouts/exercise_inputs/forms/_playground_form.html.erb +2 -2
  112. data/app/views/layouts/exercise_inputs/forms/_problem_form.html.erb +13 -9
  113. data/app/views/layouts/exercise_inputs/layouts/_input_primary.html.erb +2 -2
  114. data/app/views/layouts/exercise_inputs/layouts/_input_right.html.erb +2 -2
  115. data/app/views/layouts/exercise_inputs/read_only_editors/_code.html.erb +1 -1
  116. data/app/views/layouts/exercise_inputs/read_only_editors/_free_form.html.erb +1 -1
  117. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_choice.html.erb +4 -4
  118. data/app/views/layouts/exercise_inputs/read_only_editors/_multiple_files.html.erb +2 -2
  119. data/app/views/layouts/exercise_inputs/read_only_editors/_single_choice.html.erb +4 -4
  120. data/app/views/layouts/exercise_inputs/read_only_editors/_text.erb +1 -1
  121. data/app/views/layouts/modals/_avatar_picker.html.erb +2 -5
  122. data/app/views/layouts/modals/_guide_corollary.html.erb +4 -8
  123. data/app/views/layouts/modals/_kids_context.html.erb +7 -5
  124. data/app/views/layouts/modals/_kids_results.html.erb +2 -2
  125. data/app/views/layouts/modals/_kids_results_aborted.html.erb +2 -2
  126. data/app/views/layouts/modals/_kindergarten_context.html.erb +3 -3
  127. data/app/views/layouts/modals/_kindergarten_results.html.erb +3 -3
  128. data/app/views/layouts/modals/_kindergarten_results_aborted.html.erb +2 -2
  129. data/app/views/layouts/modals/_level_up.html.erb +2 -5
  130. data/app/views/layouts/modals/_new_message.html.erb +5 -5
  131. data/app/views/notifications/_dropdown.html.erb +3 -3
  132. data/app/views/users/_activity_indicator.html.erb +17 -0
  133. data/app/views/users/_edit_user_form.html.erb +6 -6
  134. data/app/views/users/_profile_fields.html.erb +6 -6
  135. data/app/views/users/_user_form.html.erb +2 -2
  136. data/app/views/users/activity.html.erb +37 -0
  137. data/app/views/users/certificates.html.erb +26 -24
  138. data/app/views/users/discussions.html.erb +23 -21
  139. data/app/views/users/messages.html.erb +22 -20
  140. data/app/views/users/show.html.erb +5 -3
  141. data/app/views/users/terms.html.erb +4 -2
  142. data/config/initializers/inflections.rb +3 -0
  143. data/config/routes.rb +3 -0
  144. data/lib/mumuki/laboratory.rb +1 -1
  145. data/lib/mumuki/laboratory/extensions.rb +1 -0
  146. data/lib/mumuki/laboratory/extensions/date_and_time.rb +11 -0
  147. data/lib/mumuki/laboratory/locales/en.yml +28 -2
  148. data/lib/mumuki/laboratory/locales/es-CL.yml +33 -4
  149. data/lib/mumuki/laboratory/locales/es.yml +33 -4
  150. data/lib/mumuki/laboratory/locales/pt.yml +34 -3
  151. data/lib/mumuki/laboratory/version.rb +1 -1
  152. data/spec/capybara_helper.rb +1 -0
  153. data/spec/controllers/discussions_messages_controller_spec.rb +84 -3
  154. data/spec/dummy/db/schema.rb +23 -3
  155. data/spec/features/discussion_flow_spec.rb +22 -2
  156. data/spec/features/exercise_flow_spec.rb +1 -1
  157. data/spec/features/guide_reset_spec.rb +1 -1
  158. data/spec/features/terms_flow_spec.rb +1 -2
  159. data/spec/features/user_activity_flow_spec.rb +65 -0
  160. data/spec/helpers/breadcrumbs_helper_spec.rb +2 -2
  161. data/spec/helpers/user_activity_helper_spec.rb +32 -0
  162. data/spec/helpers/with_navigation_spec.rb +36 -13
  163. data/spec/javascripts/editors-spec.js +3 -3
  164. data/spec/javascripts/kids-button-spec.js +2 -2
  165. data/spec/javascripts/upload-spec.js +8 -8
  166. metadata +132 -123
  167. data/app/assets/stylesheets/mumuki_laboratory/application/hovers.scss +0 -12
  168. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_checkboxes.scss +0 -34
  169. data/app/assets/stylesheets/mumuki_laboratory/application/modules/_guide_corollary.scss +0 -9
@@ -1,12 +0,0 @@
1
- a.text-info:hover {
2
- color: $brand-info;
3
- }
4
- a.text-warning:hover {
5
- color: $brand-warning;
6
- }
7
- a.text-danger:hover {
8
- color: $brand-danger;
9
- }
10
- a.text-success:hover {
11
- color: $brand-success;
12
- }
@@ -1,34 +0,0 @@
1
- .complementary label::after {
2
- background-color: $brand-complementary;
3
- color: white;
4
- top: 6px;
5
- }
6
-
7
- .complementary label::before {
8
- top: 6px;
9
- }
10
-
11
- .complementary-checkbox {
12
- label::after {
13
- width: 17px;
14
- height: 17px;
15
- line-height: 14px;
16
- border-radius: 3px;
17
- border: 1px solid $brand-complementary;
18
- }
19
- input[type="checkbox"]:disabled.mu-read-only + label {
20
- opacity: 1;
21
- cursor: unset;
22
- }
23
- }
24
-
25
- .complementary-radio{
26
- label::after {
27
- top: 9px;
28
- }
29
- input[type="radio"]:disabled.mu-read-only + label {
30
- opacity: 1;
31
- cursor: unset;
32
- }
33
- }
34
-
@@ -1,9 +0,0 @@
1
- .guide-corollary {
2
- .guide-corollary-title {
3
- padding: 0 20px;
4
- }
5
- .modal-body {
6
- padding: 0 20px 20px 20px;
7
- }
8
- }
9
-