Tom
3978c6be28
feat: i18n user interface ( #40306 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2021-01-31 12:15:32 +05:30
Eric Leung
fc17a816cb
fix(tool-panel): unify help option casing ( #40608 )
2021-01-05 12:08:10 +05:30
Ikko Ashimine
cc19b6743b
fix(client): comment typo fixed ( #40535 )
...
occured -> occurred
2020-12-28 15:51:53 +09:00
Paulson J Paul
decb879694
fix(client): better contrast for code sections when selected ( #40461 )
...
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com >
2020-12-21 21:16:33 +05:30
Oliver Eyton-Williams
0bd52f8bd1
Feat: add new Markdown parser ( #39800 )
...
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00
rolland patrice
f06b825a1c
Bug(learn) - List item's font size larger than surrounding text ( #40224 )
...
* #40220 Bug(learn) - List item's font size larger than surrounding text
* #40220 move description css in challenge-description.css
* Update client/src/templates/Challenges/components/challenge-description.css
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com >
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com >
2020-11-13 13:56:36 -06:00
Oliver Eyton-Williams
b0e3d7369b
fix(learn): reload when challenge tests change ( #39832 )
2020-11-02 11:22:01 -06:00
Oliver Eyton-Williams
e4a9b2988c
feat: update Ask for help ( #40114 )
...
* feat: get helpCategory from frontmatter
* DEBUG: sets all the projects to JavaScript
This is just so the tests pass, it'll need to go.
* fix: updated helpCategoryMap categories
* fix: added Python to helpCategory frontmatter key
Co-authored-by: Randell Dawson <rdawson@onepathtech.com >
2020-10-30 14:10:34 -05:00
Oliver Eyton-Williams
a39235be83
feat(learn): allow word breaks in tool panel ( #39986 )
...
This is motivated by a desire to remove <wbr>s from the test texts
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com >
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com >
2020-10-16 16:20:50 +05:30
Oliver Eyton-Williams
a71150074d
fix(learn): preserve whitespace in the tool panel ( #39973 )
2020-10-14 21:40:15 +05:30
Oliver Eyton-Williams
b9db30f7a1
refactor(client): move jest-dom into setup file
2020-10-12 14:11:52 +02:00
Mrugesh Mohapatra
e666419a8f
fix(client): address new warnings from linter
2020-10-12 15:10:42 +05:30
Oliver Eyton-Williams
ed2840cb1c
refactor: use dashedName over dasherize(title)
2020-10-06 23:10:08 +05:30
Oliver Eyton-Williams
0a4316b0ae
fix(client): update eslint and fix issues
...
The eslint config now includes rules that have been added to Gatsby.
This uncovered some problems with missing labels that have been fixed.
2020-09-24 16:29:55 +05:30
Oliver Eyton-Williams
dd7fba4558
fix(learn): ignore missing editable regions
...
They should never be missing, so that bug should be squashed. However,
for now, this gracefully deals with their absence.
2020-09-22 14:15:00 +05:30
Lasse Jørgensen
45520cd7c5
fix(editor): disable suggestion actions squiggly-hint ( #39596 )
2020-09-17 16:18:04 +05:30
Ahmad Abdolsaheb
9d647ee90c
fix: load editor tabs conditionally on mobile
2020-09-16 11:54:14 +05:30
Oliver Eyton-Williams
1ce354a179
fix(client): show editor for React challenges
2020-09-16 11:54:14 +05:30
Ahmad Abdolsaheb
a500279036
fix: editor resize ( #39542 )
2020-09-16 11:54:13 +05:30
Ahmad Abdolsaheb
9b1077acf5
fix: render editor tabs if SHOW_UPCOMING_CHANGES is 'true' ( #39513 )
2020-09-16 11:54:13 +05:30
Oliver Eyton-Williams
3cfd80a806
fix: handle editable region covering editor's top
2020-09-16 11:54:12 +05:30
Oliver Eyton-Williams
9df098953d
Feat: editable dom element ( #39341 )
...
* feat: __testEditable allows editable region tests
It's not entirely isolated, but it makes it possible to select only the
element with id 'editable-only' which is built solely from code inside
the editable region.
* fix(client): missing editableContents -> ''
Previously it was added as the string 'undefined'
* fix: more informative error messages
* fix: DRY, correct and test getLines
2020-09-16 11:54:11 +05:30
Ahmad Abdolsaheb
a1a051bd3a
feat: add action row for challenges with ERMs on desktop ( #39377 )
2020-09-16 11:54:11 +05:30
Oliver Eyton-Williams
9a137573a7
fix: only show description in target editor
2020-09-16 11:54:11 +05:30
Oliver Eyton-Williams
2abefc27a2
fix: handle missing ERB
2020-09-16 11:54:11 +05:30
Oliver Eyton-Williams
78c3b42770
fix: scroll to editable region on mount
2020-09-16 11:54:10 +05:30
Oliver Eyton-Williams
a4c836c6d4
feat: open target editor on mount
2020-09-16 11:54:10 +05:30
Oliver Eyton-Williams
02aff4d400
feat: multiple concurrent editors
2020-09-16 11:54:10 +05:30
Oliver Eyton-Williams
2e7a2424c1
refactor: DRY out DesktopLayout
2020-09-16 11:54:10 +05:30
Oliver Eyton-Williams
3ea251383f
fix: use loadable MonacoEditor
2020-09-16 11:54:10 +05:30
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
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
54630cbfca
fix: update editor on code reset
2020-09-16 11:54:06 +05:30
Oliver Eyton-Williams
88de5bc602
refactor: sort-files -> common utils
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