Commit Graph

2143 Commits

Author SHA1 Message Date
Atir Nayab
9ad2fedf39 fix(client): set fcc-sound value in local storage (#48762) 2023-01-05 12:40:09 +05:30
Mrugesh Mohapatra
3cc8e0485c revert(client): improve alert component (#48921)
Revert "fix(client): Improve alert component (#48861)"

This reverts commit 17b880020d.
2023-01-04 17:32:03 +05:30
Ahmad Abdolsaheb
a73996c174 Revert "fix(client): expose donate button on navigation bar" (#48902)
Revert "fix(client): expose donate button on navigation bar (#48820)"

This reverts commit 959d667aeb.
2023-01-03 18:26:15 +05:30
Ahmad Abdolsaheb
959d667aeb fix(client): expose donate button on navigation bar (#48820)
* feat: expose donate nav button

* feat: add the ignores

* fix: adjust tests

* feat: adjust nav button styles
2023-01-03 10:40:47 +01:00
Muhammed Mustafa
1d3786f653 fix: spacing issue in RTL layout (#48824) 2023-01-02 23:08:28 +05:30
Oliver Ullman
17b880020d fix(client): Improve alert component (#48861) 2023-01-02 23:07:50 +05:30
YMatsuda
2a473098b4 chore(i18n): small fixes in translations.json (#48894) 2023-01-02 22:32:52 +05:30
Manabu Matsumoto
95b724a3a2 feat(UI): visualize input clear button (#48702)
* feat: visualize search bar inputs clear button

* chore: remove redundant empty lines

* fix: make search bar input horizontally responsive

* fix: make search bar input width follow suggestion items

* fix: moving clear button to right of the searchbar

* feat: add search bar clear button in LP

* fix: add a bigger spacing between the icons and the text

* fix: make the clear button show visible focus indicator

* chore: refactor the css code to avoid redundancy

* fix: make the buttons in search bar accessible for screen reader

* fix: make the buttons and input in search bar more accessible
2022-12-23 17:00:38 -06:00
Mrugesh Mohapatra
25f0fc5d93 fix(client): add loader to default layouts (#48830) 2022-12-23 13:38:50 -06:00
abe
f3446daaae feat: mark user editable regions in help post (#48512)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: kravmaguy <flex4lease@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/46411
2022-12-22 07:50:25 -08:00
Niraj Nandish
acd74472f8 fix(client): i18n project and certification titles in settings, profile and certification page (#48785)
Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/40998
2022-12-22 10:54:46 +05:30
Muhammed Mustafa
8cc575c9b9 feat: swap to logical properties for spacing (#48769) 2022-12-22 10:51:19 +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
Muhammed Mustafa
38a1204e2b feat(client): remove inline values in GreenPass component (#48513)
feat/remove-inline-values-in-GreenPass-component
2022-12-16 10:59:04 -06:00
Muhammed Mustafa
4291e153f7 feat: add RTL language layout (#48287)
* add the previous layout

* add the import logic

Co-authored-by: Nestor <elnestinatorHD@gmail.com>

* WIP: RTL layout

* WIP: code snippet

* WIP: RTL layout

* WIP: RTL layout

* WIP: add selector that don't work

* WIP: fix code in tables direction

* change the dynamic import to static import

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

* remove redundant imports

* fix the broken splitter and broken code element

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

* revert the wrapper editor layout

* WIP: Timeline RTL layout

* add row reverse to account for splitter direction reverse

* Revert "add row reverse to account for splitter direction reverse"

This reverts commit f67ad002c8.

* add row reverse to account for splitter direction reverse

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

* mirrior the nav bar by placing the logo in the right

* Use notosans as RTL font family

* Remove Arabic from the hiddenLangs

* fix(feedbac): the search and table alignment

Co-authored-by: Zaira <33151350+zairahira@users.noreply.github.com>

* fix(feedback): text alignment, icons rotation

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

* Revert "fix(feedback): text alignment, icons rotation"

This reverts commit 0c6dc4f909.

* fix(feedback): text-alignment, and icon rotation

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

Co-authored-by: Nestor <elnestinatorHD@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Zaira <33151350+zairahira@users.noreply.github.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2022-12-16 18:03:18 +02:00
Endless8
c24755d2b9 fix(a11y): hide spacer span (#48766)
* fix: removed html text and added aria-hidden attribute to span element

* Update client/src/assets/icons/spacer.tsx

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* fix: formatting code

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2022-12-16 09:02:27 -06:00
Bryan Moore
628764f270 feat: use system theme if default (#48568)
* feat: use system theme if default

* feat: add system to theme

* feat: detect if system theme should be used

* fix: remove system from Themes

* fix: change 'system' to 'default'

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* fix: change 'system' to 'default'

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* fix: check if user is logged in for system theme

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
2022-12-14 15:20:10 +01:00
Naomi Carrigan
e4143ec5be feat: certification qr (#47254)
* feat: add qr code to certification

* chore: remove duplicated media ruleset

* fix: reinstall qrcode.react after rebase

* fix: move qr code to bottomish

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2022-12-12 22:34:34 +04:00
Atir Nayab
0a0be525b2 fix(bug): Make table and button consistent in settings and certification page. (#48211)
* fix(bug): Make table and button consistent

Affected page
- certification page
- settings page

* fix(bug): changed certification button text to View

* fix(bug): Timeline table width increased

* Update client/src/client-only-routes/show-project-links.tsx

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* Update client/src/client-only-routes/show-project-links.tsx

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>

* fix(curriculum): remoeve stripe props from certification table

* fix(curriculum): time line table width reverted to original

* fix(client): use buttons.view from translation.json

* fix(client): use normal font weight for project title

* fix(client): certification page table button

* fix(client): remove child anchor tag from menuItem

* fix(client): updated cerification page button width

* feat: relocate the styles

* feat: clean up styles

Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-12-09 12:08:52 +02:00
Bruce Blaser
3763f84fd7 feat: make toggle tab setting permanent in monaco editor (#48529)
* add permanent tab focus toggle to monaco

* convert to addCommand

* chore: clean up function names

* feat: add i18n for aria alerts

* fix: add mac hotkeys

* add platform detection

* add iOS keyboard support


Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-12-09 09:43:49 +01:00
Muhammed Mustafa
b5371f56ce refactor(client): searchbar - remove float values (#48292)
* feat(client): refactor searchbar by removing float values

* polish the style by adding border radius and removing padding

* Polish the style and account for donation text

* WIP: remove float values

* Revert "WIP: remove float values"

This reverts commit c1c32aa9d1.

* adjust magic numbers

* Adjust spacing to account and add position absolute

* revert the deletion of ais hits values

* move the padding value to searchbar file

* Remove RTL Values

* feat: allow for hint expansions

* Remove the left value on submit icon

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

* add display none and remove their values

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2022-12-08 14:31:05 +01:00
Mrugesh Mohapatra
6dba4d3409 chore: bump prettier and lint-staged (#48674)
* chore: bump prettier and lint-staged

* refactor: drop unused eslint disables

Currently we need to fetch trending.json before we can build the site
(i.e. before Cypress tests can run), so we can assume the file exists.

In case the download fails in CI, linting will error first. I've added
a comment to save some debugging time.

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-12-06 23:46:42 +05:30
Bruce Blaser
bfcdcf7788 fix(a11y): enhance accessibility of prismjs code examples (#48639) 2022-12-05 19:49:36 +05:30
YMatsuda
7ff99ea269 fix(UI): make 'Tests' heading translatable (#48654)
* fix(UI): make 'Tests' translatable

* fix(UI): use existing string
2022-12-05 09:23:32 +01:00
Prince Mendiratta
7b860f920f feat: add instructions to import in replit (#48374)
Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/48274
2022-11-24 16:02:07 +05:30
Manabu Matsumoto
6ccbd94eff fix(UI): remove vertical scrollbar from body (#48231)
* fix: remove vertical scrollbar from body

* fix: adjust preview window with/without actionrow

* fix: delete redundant padding argument

* fix: add new props to project preview modal

* fix: adjust code and preview pane height

* fix: add flash message height adjustment for panes

* fix: refactor the code with flexbox

* fix: debug zero height of instruction panel in firefox

* fix: debug zero height of reflex elements and vertical splitter

* fix: make reflex elements vertically flexible in new RWD

* fix: remove unnecessary css properties

* fix: arrange mobile layout css selector

* fix: move styles to its related css files

* fix: refactor the code with pseudo selector and remove important

* fix: remove redundant flexbox settings

* fix: remove unnecessary css properties and revert unnecessary property name change

* fix: remove unnecessary min height zero and refactor flex properties
2022-11-22 11:18:00 +03:00
YMatsuda
df1afaa667 fix(UI): prevent Chinese & Japanese headings in lower jaw getting wrapped (#48530)
fix(UI): prevent Chinese & Japanese headings getting wrapped
2022-11-17 16:00:04 +03:00
Sem Bauke
57186bf0b6 chore(client): update algolia and conditional tags (#46222) 2022-11-14 21:03:52 +05:30
Muhammed Mustafa
f227b60c9e feat(client): change the layout of lowerjaw hint and test to flex (#48322)
* feat(client): change the layout of lowerjaw hint and test description to flex

* remove the align center, and fix the margins

* Revert mistake

* add RTL layout support

* Remove global variables, and add gap for spacing
2022-11-14 12:49:03 +05:30
Muhammed Mustafa
8b158bc314 refactor(client): space between passed icons and their sibling (#48327) 2022-11-11 18:45:40 +05:30
Ahmad Abdolsaheb
22c5533417 feat(client): add university and seasonal alerts (#48350)
* feat: add university and seasonal alerts

* feat: show university camper alerts to non donors

* feat: adjust tests

* feat: update CTA

* Apply suggestions from Oliver's code review

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

* Apply suggestions from code review

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

* feat: changing learn alert to link

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-11-10 13:06:33 +00:00
Sem Bauke
8df880fa61 chore(client): update chinese redirects (#46220) 2022-11-10 01:16:45 +05:30
Naomi Carrigan
c36224b9de feat: update gatsby config for chinese (#46424) 2022-11-09 21:36:05 +02:00
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
Oliver Eyton-Williams
ecfe09c52d fix: confirm modal (#48388)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-11-04 11:06:47 +00:00
Mrugesh Mohapatra
75f4ff10d5 feat(client): add a confirmation modal on signout (#48385)
* feat(client): add a confirmation modal on signout

* test: add and update universal nav

* chore: remove extraneous action

* chore: apply suggestions from code review
2022-11-04 10:31:06 +01:00
Mrugesh Mohapatra
12beeee067 refactor: consistent layout imports (#48378) 2022-11-04 09:40:03 +02:00
Shaun Hamilton
ec3ee856ec feat(tools): ignore no-unused-vars on underscore (#48386) 2022-11-04 10:43:46 +05:30
Muhammed Mustafa
5ef777973a feat(client): refactor the buttons leading to the certifcations intro (#48320) 2022-10-31 18:11:51 -05:00
Prince Mendiratta
deca35257b feat: disable find hotkey in editor (#48241)
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>

Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
2022-10-28 22:45:18 -07:00
Muhammed Mustafa
52953a5b95 feat(client): add rtl direction attribute to html element (#48245)
* feat(client): add rtl direction attribute to html element

* WIP: add LangDirection as base for direction attribute selection

* DRY rtlLanguages for easier future usage

Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>

* Remove urdu, to avoid unknown bugs

* Fix merge conflict, by clearing import values

Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
2022-10-28 08:13:09 +02:00
Muhammed Mustafa
3279ab161e feat(client): refactor universal nav missing types (#48144)
* feat(client): refactor universal nav missing types

* extends link type from gatsby link types


Co-authored-by: auchynnikau <viachaslau_auchynnikau@epam.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-10-27 20:20:59 +05:30
Atir Nayab
f92a851a0a feat(client): add icon in setting page button (#48268) 2022-10-27 20:06:47 +05:30
Jagruti Tiwari
af156fdfe4 feat(client): add "completed x of y" in completion modal (#47022)
* feat: wrote a new function and updated the test case

* fix: lint errors

* fix: Fixed the changes not being reflected in the code. And undid unwanted commits from the last time

* fix: removing unwanted updates to the package-lock.json

* fix: Removing unwanted changes from package-lock.json

* fix: removing unwanted changes from package-lock.json

* fix: updating snapshots to fix the test case

* chore: update snapshot

* Update client/src/templates/Challenges/components/completion-modal.tsx

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

* Update client/src/templates/Challenges/components/completion-modal.tsx

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

* Update client/src/templates/Challenges/components/completion-modal.tsx

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

* fix: removed hard coded english words from translation text

* fix: only show output when id is cert project

* fix: correctly count completed challenges

* fix: update test and snapshot

[skip ci]

* fix: at least one challenge is always completed

When the modal pops-up, there is always at least one challenge counted as "complete"

* refactor: slightly improve readability

Co-authored-by: Ilenia <nethleen@gmail.com>
Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-10-27 14:26:45 +00:00
Vaibhav Gupta
e2da8dae3c chore(client): Don't re-create preview iframe from scratch on each test run (#48178)
* remove unnecessary call

* Remove unused variable: previewTask

* review comments
2022-10-27 09:41:47 +02:00
Mrugesh Mohapatra
b393d88b9e refactor: s/all-langs/i18n/g (#48258) 2022-10-26 10:08:27 -07:00
Muhammed Mustafa
6074cdf9c1 feat(client): clear ESLint comment in learn layout (#48154)
feat(client): clear enlist comment in learn layout
2022-10-24 11:00:02 +02:00
Sawjan Gurung
8ea0401c0a fix(client): preserve scroll position of preview iframe (#47870)
* fix(client): preserve scroll position of preview iframe

* use existing frameContext instead of getting element

* do not use type guard

* remove unused type, add es2022 to ts-lib

* move scroll functions into a class

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-10-21 22:52:15 +05:30
Prince Mendiratta
12828fa497 feat(client): replace preview icon with a clearer one (#48169) 2022-10-21 22:47:03 +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