Commit Graph

26495 Commits

Author SHA1 Message Date
6e091a7cdb test: update parser tests and snapshots 2020-09-16 11:54:08 +05:30
0f3f27287d fix: unify single and multifile testing 2020-09-16 11:54:08 +05:30
d7dc1acb4a chore: update lang tags on code blocks 2020-09-16 11:54:08 +05:30
120bb342e8 fix: keep the zones in the right places
The description zone needs fixing, but the hint zone should behave correctly.
2020-09-16 11:54:08 +05:30
e34bdded7d fix: region expansion
Now the top region can expand up and the bottom region down.
2020-09-16 11:54:08 +05:30
f7ce54a154 fix: prevent deletion of editable region at bottom
If the first line of the greyed out region is deleted it now springs
back. As does the second line - which needs fixing
2020-09-16 11:54:07 +05:30
52cb6adf02 refactor: sortFiles -> toSortedArray 2020-09-16 11:54:07 +05:30
1ee5e24d0f feat(multi): insert description into editor 2020-09-16 11:54:07 +05:30
59c838e8ca feat(multi): add editor decoration
The warning region does not grow at the edges This makes it harder for
the user to get into an odd state.  It might be better to have let the
user expand the second region at the trailing edge.  I'm not sure, and
that's harder to implement.
2020-09-16 11:54:07 +05:30
dfbf1ae9ae refactor(multi): DRY out view state changes 2020-09-16 11:54:06 +05:30
1e1a0939ab feat: highlight currently selected editor tab 2020-09-16 11:54:06 +05:30
ad059dc49c fix(a11y): improve tab navigation for Editor 2020-09-16 11:54:06 +05:30
301212e194 feat: handle multi-file solutions 2020-09-16 11:54:06 +05:30
54630cbfca fix: update editor on code reset 2020-09-16 11:54:06 +05:30
3783ef118e fix(multi): validate challenges correctly 2020-09-16 11:54:05 +05:30
754a33970e refactor(multi) move preparation into curriculum 2020-09-16 11:54:05 +05:30
88de5bc602 refactor: sort-files -> common utils 2020-09-16 11:54:05 +05:30
063145fe90 feat(parser): handle multi-file solutions 2020-09-16 11:54:05 +05:30
a959d462e9 fix(client): update editor when code is reset 2020-09-16 11:54:05 +05:30
10d2559fee feat(client): handle jsx in multi-file editor 2020-09-16 11:54:04 +05:30
1a985f95f5 feat: initialise editor with 'first' file
Since sort-files exists, the challengeFiles have an order. The editor
now displays the first file on mount.
2020-09-16 11:54:04 +05:30
f82886148c feat: add simple challengeFile sorter 2020-09-16 11:54:04 +05:30
b0f18cacc7 fix: prevent unnecessary re-renders
The editor should handle its own rendering.  By including a key that
changes as the users changes tabs forces the editor to re-render.  This
gets triggered as the user types, resetting the cursor to the start of
the editor.

Now the key only changes if the theme changes.
2020-09-16 11:54:04 +05:30
4de5c5fde3 fix: concat sources so that 'code' has them all 2020-09-16 11:54:03 +05:30
dea30c1397 feat: simple prototype for dynamic tabs
While this works for html challenges, it should dynamically generate the
tabs in a predetermined order from the available files.
2020-09-16 11:54:03 +05:30
631c2671b6 feat: support multiple editor tabs
Generates models to handle multiple groups of code (html, js or css) and
tracks the editor state as user moves between tabs. The current model
is connected to the redux store via a key associated with the file in
the editor.
2020-09-16 11:54:03 +05:30
a0f43c93ba chore: update react-monaco-editor 2020-09-16 11:54:03 +05:30
7bd6e77b0f feat: add multi file capabillity 2020-09-16 11:54:03 +05:30
b25089d7c8 fix: relax challenge validation for multiple seeds 2020-09-16 11:54:02 +05:30
5fe16ada3d fix: parse certificates separately (#39182) 2020-09-16 11:54:02 +05:30
0e1dca5924 feat(client): parse test 'text' as markdown (#39176) 2020-09-16 11:54:02 +05:30
f77005cc43 fix: accept numbers for boundaries (#39181) 2020-09-16 11:54:02 +05:30
8478e021bf feat (learn): Remove editable regions from seed code before displaying user's code (#39153)
* feat: pull editable region from markdown

* test: update seed tests to reflect new schema

* feat(curriculum): validate multi-file solutions

* test: add editableRegionBoundaries to schema

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-09-16 11:54:02 +05:30
fd7a8c0d5e feat: allow next challenge's seed to be a solution (#39145)
* feat: allow next challenge's seed to be a solution
2020-09-16 11:54:01 +05:30
4f1be63055 feat(learn): sync master and next-curriculum branches 2020-09-16 11:54:01 +05:30
c648a595df fix: intermediate js calorie counter challengeType (#38270) 2020-09-16 11:54:01 +05:30
Tom
977701937b Feat: add d3 dashboard project to next curriculum (#38028)
* feat: add d3 dashboard project to next curriculum
2020-09-16 11:54:01 +05:30
Tom
dae411d408 fix: failing test (#38253) 2020-09-16 11:54:00 +05:30
9ba1f1f6d0 feat: tests for calorie counter
split up calorie counter lesson
2020-09-16 11:54:00 +05:30
b99d78858b fix: basic js rpg spacing and tests
Replaced tabs with spaces so spacing is consistent in the monaco editor. Also adjust some tests to account for the new loop protection.
2020-09-16 11:54:00 +05:30
39b0afd5f0 feat: tests for calorie counter 2020-09-16 11:54:00 +05:30
d3d5147c1f fix: renamed files and titles in the frontmatter for consitency (#37792) 2020-09-16 11:53:59 +05:30
869b4f479e fix(client): modified test suite to not throw errors (#37894)
modified challenge test suite so it does not throw an error if two steps for the project based curriculum have the same title
2020-09-16 11:53:59 +05:30
2fbafda167 feat: functional programming spreadsheet (#36873)
* Add meta.json for spreadsheet

* Add spreadsheet files

* Close code tags for tests in 2 files

* Add solution section

* Add index file

* Add javascript-spreadsheet to stringifier

* Move index to step

* Rename steps in meta.json

* Rename step numbers in files

* Add index file to proper location

* Remove inappropriate files from spreadsheet dir

* Fix typo in first step

* Fix test sections

* Rename files to correct step

* Fix broken tests

* Add newline between sections

* Change challengeType from 1 to 0

* Add missng ) in step-079.md

* test -> tests in step-079

* Simplify test in step-103

* Fix step-137 test

* Remove last step

* Added solutions and adjusted some tests

* Fix some challenges

* Remove wrong spaces

* Fix more tests

* Add missing semicolon

* Fix more tests

* Fix type: lastttwo

* Fix all remaining tests
2020-09-16 11:53:59 +05:30
Tom
89e18e3a81 feat: add challenges for skyline project (#36854) 2020-09-16 11:53:59 +05:30
529f2596d9 feat: JS RPG game tests (#37678)
* feat: Add JavaScript RPG Game for testing
2020-09-16 11:53:58 +05:30
1770ea07a6 docs: add guidelines for responding to posts about health (#39566)
* Added new section

Added new section: Dealing with (mental) health inquires. This was done on request from Quincy.

* Update docs/flight-manuals/moderator-handbook.md

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2020-09-16 11:49:08 +05:30
876d9f3994 fix(learn): Consolidated comments for Coding Interview Prep challenges - part 2 of 2 (#39576)
* fix: consolidate comments for use with the translation dictionary

* fix: added blank line between comments

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

* fix: removed unneeded comment

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2020-09-16 01:01:21 +05:30
8788ad946b fix: remove Good luck! comment from challenge seed code (#39575) 2020-09-15 22:27:40 +05:30
a2f4c8d0e1 fix: consolidated comments for use with translation dictionary (#39578) 2020-09-15 22:23:25 +05:30