Oliver Eyton-Williams
ad83a2e3f4
feat: show one hint at a time
2020-09-16 11:54:09 +05:30
Oliver Eyton-Williams
68b223322f
feat: make editable code available in tests
2020-09-16 11:54:09 +05:30
Oliver Eyton-Williams
6e091a7cdb
test: update parser tests and snapshots
2020-09-16 11:54:08 +05:30
Oliver Eyton-Williams
0f3f27287d
fix: unify single and multifile testing
2020-09-16 11:54:08 +05:30
Oliver Eyton-Williams
d7dc1acb4a
chore: update lang tags on code blocks
2020-09-16 11:54:08 +05:30
Oliver Eyton-Williams
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
Oliver Eyton-Williams
e34bdded7d
fix: region expansion
...
Now the top region can expand up and the bottom region down.
2020-09-16 11:54:08 +05:30
Oliver Eyton-Williams
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
Oliver Eyton-Williams
52cb6adf02
refactor: sortFiles -> toSortedArray
2020-09-16 11:54:07 +05:30
Oliver Eyton-Williams
1ee5e24d0f
feat(multi): insert description into editor
2020-09-16 11:54:07 +05:30
Oliver Eyton-Williams
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
Oliver Eyton-Williams
dfbf1ae9ae
refactor(multi): DRY out view state changes
2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
1e1a0939ab
feat: highlight currently selected editor tab
2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
ad059dc49c
fix(a11y): improve tab navigation for Editor
2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
301212e194
feat: handle multi-file solutions
2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
54630cbfca
fix: update editor on code reset
2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
3783ef118e
fix(multi): validate challenges correctly
2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
754a33970e
refactor(multi) move preparation into curriculum
2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
88de5bc602
refactor: sort-files -> common utils
2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
063145fe90
feat(parser): handle multi-file solutions
2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
a959d462e9
fix(client): update editor when code is reset
2020-09-16 11:54:05 +05:30
Oliver Eyton-Williams
10d2559fee
feat(client): handle jsx in multi-file editor
2020-09-16 11:54:04 +05:30
Oliver Eyton-Williams
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
Oliver Eyton-Williams
f82886148c
feat: add simple challengeFile sorter
2020-09-16 11:54:04 +05:30
Oliver Eyton-Williams
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
Oliver Eyton-Williams
4de5c5fde3
fix: concat sources so that 'code' has them all
2020-09-16 11:54:03 +05:30
Oliver Eyton-Williams
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
Oliver Eyton-Williams
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
Oliver Eyton-Williams
a0f43c93ba
chore: update react-monaco-editor
2020-09-16 11:54:03 +05:30
moT01
7bd6e77b0f
feat: add multi file capabillity
2020-09-16 11:54:03 +05:30
Oliver Eyton-Williams
b25089d7c8
fix: relax challenge validation for multiple seeds
2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams
5fe16ada3d
fix: parse certificates separately ( #39182 )
2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams
0e1dca5924
feat(client): parse test 'text' as markdown ( #39176 )
2020-09-16 11:54:02 +05:30
Oliver Eyton-Williams
f77005cc43
fix: accept numbers for boundaries ( #39181 )
2020-09-16 11:54:02 +05:30
Randell Dawson
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
Oliver Eyton-Williams
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
Kris Koishigawa
4f1be63055
feat(learn): sync master and next-curriculum branches
2020-09-16 11:54:01 +05:30
Kristofer Koishigawa
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
lmilliken
9ba1f1f6d0
feat: tests for calorie counter
...
split up calorie counter lesson
2020-09-16 11:54:00 +05:30
Kris Koishigawa
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
lmilliken
39b0afd5f0
feat: tests for calorie counter
2020-09-16 11:54:00 +05:30
Kristofer Koishigawa
d3d5147c1f
fix: renamed files and titles in the frontmatter for consitency ( #37792 )
2020-09-16 11:53:59 +05:30
Kristofer Koishigawa
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
SomeDer
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
Kristofer Koishigawa
529f2596d9
feat: JS RPG game tests ( #37678 )
...
* feat: Add JavaScript RPG Game for testing
2020-09-16 11:53:58 +05:30
Bjorn van de Peut
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
Randell Dawson
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