Commit Graph

190 Commits

Author SHA1 Message Date
Muhammed Mustafa
49b728d31b
refactor: disable naming-convenction rule (#51685) 2023-09-30 20:23:39 +07:00
Tom
0f49460547
feat(api/client): use server response as flash msg for c# (#51551)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-09-25 15:24:53 +02:00
Riya Dhawan
c12f4bfd45
feat: store sound settings in local storage (#51374)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-09-19 09:17:51 -07:00
Oliver Eyton-Williams
391fc2e34d
refactor: create shared workspace (#51454) 2023-09-07 23:06:01 +05:30
Tom
9a1895d2e3
feat(client/api): validate ms users (#51372)
Co-authored-by: Muhammed Mustafa <MuhammedElruby@gmail.com>
2023-08-26 07:57:02 -05:00
Oliver Eyton-Williams
a622414ae5
chore: remove sentry from the client (#51284) 2023-08-16 02:34:01 +05:30
Tom
97f33a9d9c
fix(client): exam solution widget (#51195)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-08-14 09:45:55 -07:00
Tom
2eef45a209
fix(client): make exam client work with new endpoints (#51125)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-08-09 10:29:49 +02:00
Muhammed Mustafa
e9df549bc9
feat(client): add the missing MSTrophyMissing sound (#51161) 2023-08-07 13:58:26 +07:00
Oliver Eyton-Williams
984208f2a5
feat(api): check ms trophy urls exist (#51016)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2023-08-02 14:10:25 -05:00
Oliver Eyton-Williams
dc8dd9c1f7
refactor: move client-only utils inside client (#51120) 2023-08-02 15:51:10 +03:00
Oliver Eyton-Williams
f91b5841d3
feat(client): remove gitHash from api requests (#51083) 2023-07-28 20:35:41 +02:00
Naomi Carrigan
19faa09c9b
feat: remove legacy RWD projects (#50960) 2023-07-26 13:38:44 -05:00
Oliver Eyton-Williams
9441f781fd
refactor: move challenge types to config (#51027) 2023-07-24 13:12:47 -07:00
Oliver Eyton-Williams
6e787d3336
feat(api): add /user/get-session-user (#50557)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-07-11 16:28:56 +00:00
Hillary Nyakundi
c4b33cf533
feat: enable Swahili language (#50824) 2023-07-03 09:45:21 -07:00
Tom
167a8e7638
refactor: remove dasherize (#50620) 2023-06-07 23:28:56 -07:00
Jacques Metevier
1f9c1e9d21
chore(deps): upgrade eslint (#50614)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-06-06 17:58:27 +02:00
Tom
373e808938
refactor(config): superblocks and map (#50435) 2023-06-01 14:51:57 +02:00
Oliver Eyton-Williams
62dd14a454
refactor: stop storing sessionMeta in redux (#50481) 2023-05-24 23:35:53 +03:00
Muhammed Mustafa
0d98f28b9e
feat(client): delete generic success message in the alert (#49780)
* change the flash message in profileui endpoint

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-05-08 16:58:06 +02:00
Bruce Blaser
0dd8282cf8
feat(client): adjustable scrollbar width in code editor (#49975) 2023-04-18 15:36:03 +03:00
Oliver Eyton-Williams
e955bccfcf
refactor: replace isChallenge (#50033)
* refactor: replace isChallenge

Determining if a path is a challenge by the number of path segments is
brittle and we ended up writing bizarre things like
isChallenge(nextChallengePath).

This should be a little more robust. i.e. if we need to know if a page
is a challenge, we can check the challengeMeta

* test: update tests with new logic
2023-04-13 15:25:12 +00:00
Oliver Eyton-Williams
5ea1f4fffc
feat: add githash as query param (#49960) 2023-04-05 21:15:51 +05:30
Muhammed Mustafa
b460bc0fba
feat(client): add unique flash messages to the sounds (#49785)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-04-03 14:08:45 +05:30
Sem Bauke
87d9ade1a7
fix(curriculum,client): move the Euler Project to its own superBlock (#49294)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2023-03-23 21:29:13 +05:30
Tom
b950070f80
feat(curriculum): add college algebra cert as upcoming change (#43605)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-10 10:55:50 +00:00
Mrugesh Mohapatra
b13713c33f
chore(client): rename and update analytics (#49626) 2023-03-08 15:01:22 +00:00
Oliver Eyton-Williams
424711fcad
fix(client): provide return types for get-completion-percentage (#49458)
fix: provide return types

I also moved the undefined check closer to the source, so it's clearer
what is missing
2023-02-21 07:40:01 -08:00
Ahmad Abdolsaheb
13aad8ca37
feat(client): move the block donation modal logic to an epic. (#49381)
feat(client): move percent calculation logic to epic
2023-02-19 09:04:04 +02:00
Oliver Eyton-Williams
4ff00922da
refactor: fix hidden eslint errors (#49365)
* refactor: explicit types for validate

* refactor: explicit return types for ui-components

* refactor: use exec instead of match

* refactor: add lots more boundary types

* refactor: more eslint warnings

* refactor: more explicit exports

* refactor: more explicit types

* refactor: even more explicit types

* fix: relax type contrainsts for superblock-order

* refactor: final boundaries

* refactor: avoid using 'object' type

* fix: use named import for captureException

This uses TypeScript (which works) instead of import/namespace
(which doesn't) to check if captureException exists in sentry/gatsby
(it does)
2023-02-13 07:13:50 -08:00
Sem Bauke
928dcbe08c
feat: transfer The Odin Project to its own superblock (#49202)
* feat: the odin-project superblock

* feat: break everything

* fix: correct meta names

* fix: meta again

* fix: tests

* fix: help category and external curriculum test

* fix: file names again

* fix: help category

* fix: remove console log

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-02-08 15:21:03 +01:00
Ahmad Abdolsaheb
8b5838ef23
fix(client): GA to GTM Migration (#48811) 2023-01-07 11:36:45 +05:30
Oliver Eyton-Williams
0a20f8fd73
refactor: remove a lot of unused code (#48935)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-01-07 10:33:35 +05:30
Atir Nayab
9ad2fedf39
fix(client): set fcc-sound value in local storage (#48762) 2023-01-05 12:40:09 +05:30
Ahmad Abdolsaheb
bff61255f9
feat(donation): simplify donation client (#46379)
* feat: unify post payment actions

* feat: handle stripe card error and add donation after auth

* feat: add donation saga stripe test

* feat: add more coverage to stripe tests

* feat: add initial stripe card saga test

* feat: finalize initial stripe card saga test

* feat: add patreon test saga

* feat: test clean up

* feat: do not show processing for Patreon

* feat: normalize donation settings

* feat: turn payment provider/contex to enum

* feat: remove donation-settings.js

* fix: git ignore generated config

* fix: ignore the generate config from everything

* fix: remove types.js

* fix: update linting to include types.js

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-12-20 18:03:06 +05:30
Sem Bauke
57186bf0b6
chore(client): update algolia and conditional tags (#46222) 2022-11-14 21:03:52 +05:30
Tom
5f73773cd4
feat(client): move legacy rwd button to bottom of map (#47596)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/46523
2022-11-08 21:00:46 +05:30
Muhammed Mustafa
b05c99d720
feat(client): link Arabic new articles to freeCodeCamp searchbar (#48129)
* feat(client): link Arabic new articles to freeCodeCamp searchbar

* Point to english articles, instead of arabic articles

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

* link the search bar to Arabic news

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2022-10-21 19:30:49 +09:00
Oliver Eyton-Williams
7d77a202ec
feat(client): use updateMySocials not updateUserFlag (#46380)
* feat: use updateMySocials not updateUserFlag

* fix: replace updateUserFlag with updateMyTheme

* fix: show social icons

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

* fix: delete social booleans from client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-09-30 16:18:23 +03:00
Shaun Hamilton
73c3edb56a
fix: certification to private on private timeline (#45562)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-09-29 00:00:22 +05:30
Sem Bauke
8c83a96e93
feat: volume slider campfire mode (#47259)
* feat: volume slider campire mode

* fix: set a play sound interval

* fix: set volume to 50% if there is no volume key

* fix: add correct colors to progress bar

* fix: remove IE support

* fix: get slide value working in Chrome

* fix: remove space

* fix: actually use volume in the editor

* fix: add aria-label

* fix: set volume if not present in store

* fix: use label instead

* Apply Naomi's review on Toms suggestion

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

* fix: linting

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

Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>

Co-authored-by: root <root@DESKTOP-EMNPVBP.localdomain>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>
2022-09-15 15:42:03 +03:00
Naomi Carrigan
ccad7f02ea
feat: enable german (#47312)
* chore: set up lang config

* chore: migrate the manually translated files

Co-authored-by: Sem Bauke <semboot699@gmail.com>
Co-authored-by: Ilenia <nethleen@gmail.com>
2022-08-22 08:54:55 +02:00
Sem Bauke
2440d3f43f
chore(client): make curriculum helpers external (#46906)
* chore: make curriculum helpers external

* feat: add curriculum helpers as a package

* fix: use right preset?

* fix: update version with babel transpiled files

* fix: re-add fixture

* fix: declare as module

* fix: add declaration files in curriculum helpers

* fix: nothing with version 1.0.4

* fix: missing functions in package

* fix: remove old babel

* fix: linting
2022-07-27 19:00:37 +02:00
sidemt
eea6f5195c
fix(i18n): configure search Japanese publication (#46888) 2022-07-14 14:02:01 +05:30
Radi Totev
e17e57aba5
feat: update keyboard shortcuts client endpoint (#46378)
* feat: update keyboard shortcuts client endpoint

* Update client/src/redux/settings/settings-sagas.js

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

* Update putUpdateMyKeyboardShortcuts return type

* Use new saga in shortcuts-modal

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-07-01 11:38:06 -07:00
Oliver Eyton-Williams
f0f44ca315
feat(client): re-enable failed update re-submission (#46064)
* refactor: return response with data from ajax

Because we still need to manipulate the data coming back from the server
(files -> challengeFiles) and we want to keep ajax.ts as the interface
between client and server we need to return the manipulated data with
the response.

* feat: re-enable failed updates flushing

* test: failed updates get resubmitted and flushed

* fix: convert settings requests to use { data }

* refactor: use preserveSession
2022-06-07 17:52:23 +03:00
Shaun Hamilton
33e0bb79d7
fix(client): add mathjax to intermediate-algorithm-scripting (#46270) 2022-06-01 20:01:22 +05:30
Naomi Carrigan
b9f3345721
feat: update endpoints (#45688) 2022-05-19 21:52:38 +05:30
Tom
b7155694d9
fix(curriculum): interfering style elements (#46000)
* fix: interfering style elements

* fix: node tests

* fix: allow style tags or styles.css
2022-05-17 21:13:36 +05:30