* feat: add data for preview to challengeMeta
* feat: allow creation of project preview frames
* feat: make project preview data available for frame
* refactor: simplify reducer
* feat: show project preview for first challenge
* feat: show project preview on MultiFile challenges
* test: check for presence/absence of preview modal
* fix: simplify previewProject saga
* test: uncomment project preview test
* fix: increase modal size + change modal title
* modal-footer
* feat: adjust preview size
* fix: remove margin, padding, and line-height for preview of finished projects
* Revert "fix: remove margin, padding, and line-height for preview of finished projects"
This reverts commit 0db11a0819.
* fix: remove margin on all previews
* refactor: use closeModal('projectPreview') for clarity
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* fix: get started -> start coding!
* fix: update closeModal type
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* chore: rename Test-Suite.js to test-suite.tsx
* feat: migrate test-suite to ts
* feat: use type guard to narrow down tests prop
* revert: text prop from Test type I added when rebasing
* remove optionality from props
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* chore: rename files
* chore: update codebase
* chore: proper title case
* chore: block name
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* chore: use constants for superblocks
* add prettier ts dec to challenge-helper-scripts
* config/ to ts. broken
* typescripterise tools/ and config/
* create global tsconfig, remove alternate configs
* delete temp ts->js, add to gitignore
* fix gitignore
* re-import SuperBlocks in super-block-intro.tsx
* remove renamed files added again
* fix config
* remove accidental files
* remove snap
* delete built files
* adjust eslintrc for enums
* add node types to root
* ignore build files in lint and prettier
* fix tools/ in tsconfig
* ignore annoying ts warnings
* prettierise Map/index.tsx
* fix enum to match lint rule
* rejig Map to render RWD superblock
* 'pretty minor' - implicitly tsc within root
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix client/package.json for Gitpod
* broken: migrate @types to root
* fix: use typeRoots to prevent duplication
* fix show.tsx, try typeroots in root
* silly fix for duplicate node_modules types
* remove typeRoots from root
* fix: tsconfig or not tsconfig, that is the...
* fix: ...question: Whether 'tis nobler in the mind
to suffer the slings and arrows of outrageous configs...
* fix: Or to take Arms against a Sea of lint errors
And by opposing end them
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* chore: rename the file EditorTabs.js to tsx
* refactor: refactor the file EditorTabs to tsx
refactor: refactor the file EditorTabs to tsx
refactor: refactor the file EditorTabs to tsx
* Update client/src/templates/Challenges/classic/desktop-layout.tsx
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: IsmailTlemcani <ismail.tlemcani@gmail.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* chore: rename the file MobileLayout.js to tsx
* refactor: refactor the file MobileLayout to TS
Co-authored-by: IsmailTlemcani <ismail.tlemcani@gmail.com>
* feat: give editable region own background
* refactor: remove unused prop
* fix: remove debugging log
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* feat: Allow display username with uppercase characters
* fix: ensure user can change username to uppercased version
* fix: ensure that same username in a different case does not require validation
* fix: only reset hints and test button on restart
Previously it would be triggered by any change to the editor contents
* refactor: move output node reset into own function
* refactor: reorganise init/update editable region args
* fix: control when line decorations update
* refactor: clean up updateEditableRegion
* The Solutionviewer .js file has been migrated into the .tsx file.
* Apply suggestions from code review
I have added the suggestions and before adding them to the commit, I have checked it once locally and it doesn't throw any new error.
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* Update the SolutionViewer.tsx
Added the "null" and "undefined" type to "solution" property.
* Update SolutionViewer.tsx
* Update ProjectModal.tsx
* Update ProjectModal.tsx
* Update SolutionViewer.tsx
* Update ProjectModal.tsx
* Apply suggestions from code review
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Update client/src/components/SolutionViewer/ProjectModal.tsx
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Apply suggestions from code review
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* Apply suggestions from code review
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
* type of solution prop has been changed into "solution?:string;"
* assert solution is not `null` for modal
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>