Commit Graph

1934 Commits

Author SHA1 Message Date
Oliver Eyton-Williams
1d87c3c4f2 fix: handle missing sound saga payloads (#45645) 2022-04-08 18:57:57 +01:00
Ahmad Abdolsaheb
4034c59ba2 feat(client): add secure donation border to donation form (#45637)
* feat: add secure donation border to donation form

* feat: add string to translations

* Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* feat: cleanup and reorder logic

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-04-07 13:24:42 +01:00
Naomi Carrigan
0c35edb4d6 feat: change monaco shortcut (#45627)
* feat: change monaco shortcut

* fix: oops I lost the eslint-enable comment

* feat(tests): add cypress tests
2022-04-07 14:10:34 +05:30
Tiffanie Alcaide
5b0250241a chore(client): migrate i18n/configForTest.js to TS (#45624) 2022-04-04 19:44:17 +00:00
Bruce B
31cbbc3501 fix: update light theme code example color contrast ratios (#45603) 2022-04-04 16:27:38 +03:00
Tom
3d242179b2 fix: make crtl+s save to appropriate location (#45406)
* fix: crtl+s for multifile cert projects

* fix: remove unused code

* feat: add limit on save frequency
2022-04-04 15:32:43 +03:00
sjkadali
ca33332a38 chore(challenges-utils): Typescript migration of Challenges util postUpdate$.js (#45601)
* Rename to .ts

* Typescript migration of Challenges/utils/postUpdate$.js
2022-04-02 11:58:11 +02:00
Tom
9f753a5662 feat: let users save cert project code to db (#44700)
* feat: let users save cert project code to db

fix: move getChallenges call out of request function so it only runs once

fix: use FlashMessages enum

fix: transform challengeFiles earlier

test: make tribute page use multifile editor

stuff I was playing with - revert this to get it to a working state

refactor: allow undefined editableRegionBoundaries

fix: save history

history is not necessarily ["name.ext"] and using the incorrect history
could cause weird bugs

fix: replace files -> challengeFiles on the client

refactor: DRY out ajax

fix: use file -> challengefile map

refactor: rename ajax types

fix: alphatize flash-messages.ts

revert: tribute page project

fix: remove logs

fix: prettier

fix: cypress

fix: prettier

fix: remove submitComplete action

fix: block UI for new projects

fix: handle code size

* fix: catch undefined files

* fix: don't default to undefined when it's already the default

* fix: only update savedChallenges if applicable

* fix: dehumidify backend + fine tune nearby stuff

* fix: prop-types

* fix: dehumidify sagas

* fix: variable name

* fix: types

* Apply suggestions from code review

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: typo

* fix: prettier

* fix: props types

* fix: flash messages

* Update client/src/utils/challenge-request-helpers.ts

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* chore: rename function uniformize -> standardize

* fix: flash message

* fix: add link to forum on flash messages

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-03-31 10:34:40 -05:00
Mrugesh Mohapatra
111a402378 fix(client): add loader for email sign up (#45560)
Add a loader for the buttons.

Co-authored-by: Oliver Eyton-Williams ojeytonwilliams@gmail.com
2022-03-29 15:42:28 +05:30
Mrugesh Mohapatra
b2a96e0a09 fix(client): sign up for email list directly (#45508)
* fix(client): sign up for email list directly

* fix: remove extraneous code
2022-03-28 19:51:58 +05:30
renovate[bot]
6fc99192f4 fix(deps): update font awesome (#45479)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-03-25 18:23:45 +05:30
Naomi Carrigan
6d56b777d8 fix: disable code folding when editable regions present (#45525) 2022-03-25 16:15:19 +05:30
Ahmad Abdolsaheb
94650964c4 feat: a/b test lock icon (#45499)
* feat: a/b test

* Update client/i18n/locales/english/translations.json

* Apply suggestions from code review
2022-03-22 16:28:41 +00:00
Bruce B
3490a3a956 fix(a11y): hotkeys for toggle-aria-roledescription (#45498) 2022-03-22 13:22:26 +01:00
Tom
a428284804 feat: release rdbms as beta (#45428) 2022-03-22 11:35:38 +05:30
Ahmad Abdolsaheb
54fb32f007 feat: add dark theme editor highlight color (#45450) 2022-03-17 13:28:25 +01:00
Kai Wei Mo
6a7d2e5cbe feat: visual distinction between instructions and code (#45354)
* Add border-left to description-container

* Add description-container use primary-background

* Jaw border to quaternary bg

* Select editor line to highlight bg

* Update client/src/templates/Challenges/classic/editor.tsx

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-03-17 14:07:18 +03:00
Triumph Joshua Odemudia
adcce7fb6d Chore: Typescript Migration for Index.js file (#45447) 2022-03-17 15:34:19 +05:30
Ahmad Abdolsaheb
7b9bc8bb99 fix: clean up donate-saga error (#45435)
* fix: clean donate-saga error

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-03-15 15:11:31 -07:00
Naomi Carrigan
10efb79643 fix: resolve lint error in paypal-button (#45440) 2022-03-15 18:54:08 +00:00
Ahmad Abdolsaheb
193973f7ec feat: add database cert alert (#45346)
* feat: add database cert alert

* fix: change link to forum post

* fix: alert text

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2022-03-15 10:31:20 +01:00
Tom
daaa2b38cf feat: encode user tokens (#45429) 2022-03-15 14:11:43 +05:30
Tom
9e5f9b2a7c fix: webhook process (#45385)
* fix: token rework functional

fix: clean up

fix: more clean up

fix: more clean up

fix: add widget back to settings

fix:

fix:

fix: cypress

Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

fix: use flash enum

* chore: rename webhookToken -> userToken

fix: add translations I forgot to save

* fix: add missing tones for flash messages

* fix: node test
2022-03-11 13:58:23 -08:00
Ahmad Abdolsaheb
2e9b37a02b feat: A/B test firing a confetti on block donation modal (#45393) 2022-03-10 09:13:10 +00:00
Shaun Hamilton
8b3f3251b4 feat(client): match .freecodecamp.org for submissions (#45386) 2022-03-09 09:56:09 +01:00
Tom
e24c8abc7f revert: release rdbms to production (#45347) 2022-03-04 15:15:20 +01:00
Tom
84c305ab08 feat: release rdbms to production (#45169)
* fix: add cert to email for when all certs are earned

* fix: unhide rdbms from production

* fix: cert project input field

* feat: add cypress tests

* fix: message on project pages to lower expectations

* fix: update instructions

* fix: add quincy's suggestions

* fix: add beta label and reorder

* fix: utils test

* fix: move rdbms to bottom of settings

* fix: cypress tests

* Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: only drop seeded users webhook tokens

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-03-04 15:38:09 +05:30
Bruce B
cef8e8f739 fix(a11y): remove unnecessary link on course heading (#44794)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-03-03 19:26:10 +05:30
Oliver Eyton-Williams
c11bd163b2 feat: display multifile projects (#45220)
* refactor: DRY up certification and ProjectModal

* fix: use sensible keys for SolutionViewer

* refactor: handle legacy solutions like new ones

* refactor: correct CompletedChallenge type

* fix: store challengeType for multifile projects

* fix: use challengeType to set display type

* feat: use dropdown to display project + code

* refactor: isOpen -> showCode to avoid a clash

We need to be able both show the code and show the completed project

* refactor: remove redundant parts of projectPreview

* refactor: fix project preview types

* feat: wip, using existing modal to show project

* feat: show projects on timeline

* feat: display projects on time-line

* chore: use consistent case for GitHub

* fix(a11y): translate show solution/view

* refactor: rename showFilesSolution

* refactor: use self-closing tag

* fix: remove hardcoding (certification + timeline)

* fix: remove hardcoding (settings)

* test: supply store and mock ga

* fix: include challengeType for projects

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

* refactor: remove space

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

* fix: key -> filekey on challenge submission

* fix: handle submissions without files

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2022-03-02 19:49:54 -06:00
renovate[bot]
bec2deb3c0 chore(deps): update typescript-eslint monorepo to v5.13.0 (#45294)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-03-02 11:00:55 +01:00
Naomi Carrigan
d37fc114a7 feat: update font-awesome (#45258) 2022-02-28 11:49:32 +01:00
renovate[bot]
b420b508b1 fix(deps): update font awesome (#44957)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-02-25 12:17:21 +00:00
Ismail Tlemcani
2846df2b66 fix: fix util import statement (#45104)
Co-authored-by: IsmailTlemcani <ismail.tlemcani@gmail.com>
2022-02-24 08:16:47 -08:00
sidemt
c681c33587 fix(a11y): use appropriate aria-label for fCC logo depending on its use (#45201) 2022-02-23 13:52:44 +05:30
Ahmad Abdolsaheb
64efa96d30 feat(client): add badge benefit to progress modal copy (#45142)
* feat: add badge benefit to progress modal copy

* Update client/src/redux/index.js
2022-02-22 12:38:35 +00:00
Oliver Eyton-Williams
87f3d320ce refactor(client): explain transform's signature (#45166)
It's important to not pass frame to transform when using
transformWithFrame. Instead we need to pass either frame.contentDocument
or frame.contentDocument.documentElement
2022-02-18 23:02:40 +00:00
Tom
fd14608492 feat: release rdbms on staging (#44576)
fix: unhide cert from settings page

fix: add cert variables where missing

fix: show token on settings page

feat: add challenges to certified user data

fix: stylize settings page a little bit

fix: only show rdbms when upcomingChanges = true

fix: relational databases -> relational database
2022-02-18 17:29:30 +01:00
Mrugesh Mohapatra
d8bb9611dc chore: [CodeFactor] Apply fixes (#45163)
Co-authored-by: codefactor-io <support@codefactor.io>
2022-02-18 04:43:18 -08:00
Shaun Hamilton
c620077a7b fix(client): use iframe document element for transform (#45155) 2022-02-18 10:52:15 +01:00
Naomi Carrigan
1681cf262a fix: translatable "code saved" message (#45130) 2022-02-17 21:33:02 +05:30
Oliver Eyton-Williams
b223cdd255 refactor: display solutions (#45139)
* refactor: re-organise show-project-links

* refactor: update ChallengeFile's declared shape

* fix: handle missing challenge solution

* refactor: use display function for Certification

* refactor: use display function for TimeLine

* refactor: use common component for timeline + cert

* fix: handle legacy solutions

* refactor: use widget for certifications

* refactor: reorganise ShowDisplayWidget

* refactor: remove unused ids

* test: pass dataCy, not projectTitle, to widget

* chore: kebabify

* revert: add id back for dropdown

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* revert: add the ids back

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-02-16 13:48:22 -08:00
Bruce B
7abb89326b fix(a11y): make breadcrumb nav more accessible (#45021)
* fix: make breadcrumb nav more accessible

* refactor: cypress test and jest snapshot

* slight adjustment to left breadcrumb focus outline

* feat: translate aria for nav

* chore(tools): update snapshot

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2022-02-15 21:44:18 +03:00
Oliver Eyton-Williams
cde1407f58 feat(client): make all sources available in tests (#44725)
* feat: make all sources available in tests

The original contents of all files (index.html, script.js etc.) will be
accessible in tests.  For example __sources['index.html'] gets the
original html file and nothing else.

* feat: use __file to get user code
2022-02-15 23:29:31 +05:30
Ahmad Abdolsaheb
fa5c697d2a feat: clean ga (#45107) 2022-02-14 10:26:56 +01:00
Krzysztof G
f644c239c1 chore(client): tsmigrate getTargetEditor.js (#45090) 2022-02-14 06:12:04 +07:00
Bruce B
a5e4596db7 fix(a11y): remove tab role from buttons in beta rwd challenges (#45032)
* fix: remove tab role from buttons in beta rwd challenges

* remove sr-only text

* remove whitespace
2022-02-11 16:00:36 -08:00
Oliver Eyton-Williams
7fe4695794 refactor: ignore eslint less (#45082)
* refactor: remove and fix some eslint disables

* refactor: drop max-line disables
2022-02-11 10:28:13 -08:00
Tom
57cf47dad4 feat: split rdbms into individual blocks and two challengeTypes (#44978)
* feat: split english rdbms into individual blocks

fix: stuff

fix: remove from partiallyComplete array on submit

fix: add suggestion

Update client/i18n/locales/english/translations.json

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/i18n/locales/english/intro.json

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/i18n/locales/english/intro.json

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/i18n/locales/english/intro.json

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Update client/src/templates/Challenges/codeally/show.tsx

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: prettier

* fix: style suggestion

* Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-02-11 15:39:27 +00:00
Bruce B
361e7fc2e5 fix(a11y): FCC logo link (#45039)
* fix: fcc logo link

* fix: fcc svg label

* feat: use translated aria for logo

* clean up

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-02-10 17:02:26 -08:00
Huyen Nguyen
8711fbad8e chore: remove unused file (#45073) 2022-02-10 20:07:42 +01:00