* feat(client): delete a not valid variable
* set validation to false if using the image
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
---------
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
* Replaced padding calculation with paddingBlock, for both children and deefault
* Ran cmd : pnpm run test-client -u to fix checks
* fix snapshot
* Changed calculation, removed extra div
* medium to large in donate
* PaddingBlock to padding, added new values for Padding obj
* Fix snapshots
---------
Co-authored-by: Muhammed Mustafa <muhammed@freecodecamp.org>
* feat: remove extra unnecessary code
* clean the unique way that component was handled
* make bsSize optional
* update snapshot to account for the other button styles
* add comment for our future selves
* clean the changes file
* feat(client): change the buttons from disabled to aria-disabled
Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>
* stop the API call when the validation isn't true
* use aria disabled instead of disabled on the test?
* use have.attr to check for aria disabled
* hide the button when it's disabled
Co-authored-by: Bruce B <bbsmooth@gmail.com>
* update Privacy Settings save button
---------
Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>
* 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)
* feat(client): allow full width to carry key props
* fix: setting can't render the element error
* Remove the key prop from FullWidthRow
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* remove key form fullwidth
* Remove undefined type from children
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* add key to renderProfile
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* removed unused files
Removed unused files as per comments for issue #47971
* fix: removed duplicate exports from 4 files
* Build fix
* made changes for build fix
* made changes for build fix
* fix: circular dependency in formHelpers
* fix: circular dependency in Flash
* fix: circular dependency in helpers
* fix: circular dependency in current-challenge-saga (1/2)
* fix: circular dependency in code-lock-epic
* feat: eslint rule for circular dependencies
* fix: circular dependency in tools
* fix: import error and more circular dependencies in formHelpers
* fix prettier error
* fix: circular dependency in danger-zone-saga
* fix: circular dependency in update-email-saga
* fix: circular dependency in settings-saga
* fix: circular dependency in accept-terms-saga
* fix: circular dependency in codeally-saga
TODO: make a separate file for selectors
* fix: ci lint error
* fix: ci lint:prettier error
* fix: circular dependency in current-challenge-saga
* fix: cricular dependency in Challenges/redux
* fix: circular dependency in redux/settings
* fix: circular dependency in root redux
* fix: lint errors
* chore: remove unecessary comment
* chore: remove unused export
* fix: clear out actions and selectors
* revert changes to package.json
* test ci with maxDepth of 1
* fix: fallback to empty object
* test action if it will run for maxDepth of 2
* fix: only render profile urls
* feat: warn user when submitting data url
* fix: prevent dataurls being saved to db
* fix: tests and imports
Not sure why jest didn't like the es imports, but they aren't necessary
so I dropped them.
* fix: check for url protocol
* added possibility to revert to default profile picture
* removed required from picture input
* remove addPlaceholderImage and replaced with empty string
* added test for empty string to avatar-renderer
* initial loading state unification
* feat(client): show buttons after 3 seconds
* fix: use window.setInterval explicitly
Otherwise TS assumes that it's node's setInterval
* feat(client): remove spinner when first button load
* feat(client): move the loader to the donate page button area
* feat(client): extract grid from modal donation form
* feat(client): remove duplicate donation forms
* feat(client):extract unused components from donationForm
* feat(client): load paypal on load not onInit (for perf)
* feat(client): set paypal loading state if stripe already loaded
* feat(clinet):make lpaypal oading condition strickt.
* Apply suggestions from code review
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* feat: clean up
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: remove circular dependency
redux depended on templates/Challenges/redux and vice versa. This
meant that import order mattered and confusing bugs could arise.
(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)
* feat: require imports to be in alphabetical order
Import order generally does not matter, but there are edge cases
(circular imports and css imports, for example) where changing order
changes behaviour
(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)
* chore: order imports
* fix: lift up challenge description + title comps
This brings the classic Show closer to the others as they
now all create the description and title components
* fix: remove donation-saga/index circular import
(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)
* refactor: extract action-types from settings
(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)
* fix: lint errors
* feat: prevent useless renames
* migrate files and update tests
fix: use more memory for gatsby develop (#42433)
feat(client): remove whitespace from calculated values (#42400)
* feat(client?): remove whitespace for calculated values
* feat(client): remove whitespace from styledeclaration
* do not automatically strip
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* fix: include all properties of CSSStyleDeclaration
* fix test for getPropVal
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
fix: get showUpcomingChange from env.json (#42440)
fix(client): display legacy certs like current ones (#42038)
* fix: display legacy certs like the current ones
* fix: link projects in legacy certs to project pages
* fix: update tests to changed legacy cert display
* fix: update tests for removed legacy certs forms
* fix: display legacy certs like the current ones
* fix: submit projects for cert on projects pages
* fix: remove legacy certs form submitting handling
* fix: move claiming cert setup before both tests
* fix: remove legacy cert update props and actions
* fix: remove legacy cert updates from api
* fix: correct merge conflict
fix(curriculum): rework Project Euler 98 (#42423)
* fix: rework challenge to use argument in function
* fix: add solution
* fix: use MathJax to improve math notation
fix(curriculum): rework Project Euler 56 (#42364)
* fix: rework challenge to use argument in function
* fix: add solution
* fix: use MathJax to improve look of math notation
fix(curriculum): correct small english typo (#42447)
chore: group together monaco-editor and plugin (#42443)
This should get renovate to create PRs where both are modified.
fix(deps): update dependency algoliasearch to v4.9.2 (#42432)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
migrate files and update tests
Algorithm moved to TSX
first ten files renamed to tsx
first 10 migration complete
first 20 files renamed
migrate some files. rename all
test
index.tsx forced to ignore ts issues
rename and migrate all files
update tests
* remove missed propType declarations
* kebab-caseify
* fi xlinting
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Parth Parth <thecodingaviator@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
* refactor(client): convert toggle-button to TypeScript
* chore: rename Space to tsx
* refactor(client): convert space to TypeScript
* chore: rename SlimWidthRow to tsx
* refactor(client): slim-width-row to TypeScript
* chore: rename SkeletonSprite to ts
* fix: fixed typos and resolved paths
* chore: resolve path inconsistencies
* refactor(client): skelton-sprite to TypeScript
* chore: rename loader.test to tsx
* chore: add types for react-spinkit
* refactor(client): loader to TypeScript
* refactor(client): link to TypeScript
* refactor(client): image-loader to TypeScript
* refactor(client): full-width-row to TypeScript
* refactor(client): current-challenge-link to TypeScript
* refactor(client): button to TypeScript
* refactor(client): border-color-picker to TypeScript
* refactor(client): avatar-renderer to TypeScript
* chore: changed loadertest(snap) to ts
* chore: optional types added and cleaned files
* fix: args are now optional
* push small updates for Spacer component merge
* update snapshot
* remove type defs from deps
* Revert "remove type defs from deps"
This reverts commit 9f58bf3554.
* correctly remove client type deps
* final push to remove from deps
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>