Commit Graph

511 Commits

Author SHA1 Message Date
renovate[bot]
edd3e298d6 chore(deps): update dependency @types/jest to v29.5.4 2023-08-26 04:01:02 +00:00
renovate[bot]
5a35413c67 chore(deps): update babel monorepo 2023-08-26 00:36:06 +00:00
Moshe
2d7b75b930
test(ui-components): title should be tag-like text (#51366) 2023-08-24 13:27:11 +05:30
Moshe
eed87b18e7
test(ui-components): inactive tab should be hidden (#51358) 2023-08-23 15:38:57 +03:00
Muhammed Mustafa
2688474816
feat: add missing properties in Col component (#51324) 2023-08-22 15:33:10 +03:00
renovate[bot]
0010ce3924 fix(deps): update dependency @headlessui/react to v1.7.17 2023-08-19 09:51:34 +00:00
renovate[bot]
3d39186fc0 fix(deps): update dependency tslib to v2.6.2 2023-08-19 09:50:02 +00:00
renovate[bot]
2c9c84af79 chore(deps): update dependency postcss to v8.4.28 2023-08-19 07:35:54 +00:00
Hankai Xia
239c928ee6
feat(ui-components): implement basic Tabs component (#47313)
Co-authored-by: Sboonny <muhammedelruby@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-08-18 10:41:18 +02:00
Oliver Eyton-Williams
b778eb568d
feat: generate types for ui-components (#51184) 2023-08-16 19:54:43 +05:30
Muhammed Mustafa
ff28ea0d13
feat: replace bootstrap component with container component (#51185) 2023-08-16 16:25:17 +03:00
renovate[bot]
6802a16635 chore(deps): update dependency autoprefixer to v10.4.15 2023-08-13 16:15:03 +00:00
renovate[bot]
9a019b9023 chore(deps): update react monorepo 2023-08-12 07:17:00 +00:00
renovate[bot]
86fd0266f9 chore(deps): update babel monorepo to v7.22.10 2023-08-12 01:06:13 +00:00
Muhammed Mustafa
0fd22eba53
fix: dropdown svg margin that move the text from the center (#51187) 2023-08-09 11:29:27 +02:00
Muhammed Mustafa
86a6a7afea
feat: make fluid an option in container component (#51172) 2023-08-07 11:58:28 +03:00
renovate[bot]
a2e274ddf5 fix(deps): update font awesome to v6.4.2 2023-08-05 06:52:46 +00:00
renovate[bot]
fe02a678b5 fix(deps): update dependency tslib to v2.6.1 2023-07-29 14:21:03 +00:00
renovate[bot]
a34ee52eb2 fix(deps): update dependency @headlessui/react to v1.7.16 2023-07-29 13:19:24 +00:00
Muhammed Mustafa
bbe54e0716
feat: add col component (#51012)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-07-28 08:02:00 +02:00
renovate[bot]
51693c2de2 chore(deps): update dependency @testing-library/jest-dom to v5.17.0 2023-07-22 11:01:09 +00:00
renovate[bot]
00739e81d4 chore(deps): update dependency postcss to v8.4.27 2023-07-22 04:51:10 +00:00
Muhammed Mustafa
3ce5043595
feat(client): create row component (#50989)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-07-19 12:52:26 +03:00
Muhammed Mustafa
cf33ff9760
feat(client): Add Container Component to Component Library (#50963)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-07-18 10:31:06 +03:00
renovate[bot]
7b29480404 chore(deps): update dependency tailwindcss to v3.3.3 2023-07-15 06:19:35 +00:00
renovate[bot]
1b7026858d chore(deps): update dependency postcss to v8.4.26 2023-07-15 04:42:02 +00:00
renovate[bot]
fb8afe268c chore(deps): update dependency @types/jest to v29.5.3 2023-07-15 04:37:24 +00:00
renovate[bot]
6a89494ff3 chore(deps): update babel monorepo 2023-07-15 01:29:56 +00:00
Ahmad Abdolsaheb
f3ab008f9d
Revert "feat(client): add bootstrap grid component as container component" (#50962) 2023-07-13 11:44:55 +03:00
Muhammed Mustafa
323158569b
feat(tools): clean unneeded code in the menu items (#50341) 2023-07-11 10:23:59 -05:00
Muhammed Mustafa
1d257e950e
feat(client): add bootstrap grid component as container component (#49829) 2023-07-10 20:49:33 +07:00
renovate[bot]
a6d7aed2e6 chore(deps): update dependency postcss to v8.4.25 2023-07-08 16:21:45 +00:00
renovate[bot]
43a5e89220 chore(deps): update babel monorepo 2023-07-08 10:01:45 +00:00
renovate[bot]
44cd5c5fc8 fix(deps): update dependency tslib to v2.6.0 2023-07-02 09:51:32 +00:00
renovate[bot]
d6a3ec5d0c fix(deps): update dependency tslib to v2.5.3 2023-06-24 12:09:58 +00:00
Ahmad Abdolsaheb
eb22bc0a82
feat: use component library's dropdown component in learn (#50465)
Co-authored-by: Sboonny <muhammed@freecodecamp.org>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Bruce Blaser <bbsmooth@gmail.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-06-22 09:21:05 -05:00
renovate[bot]
f29c9a8724 chore(deps): update react monorepo 2023-06-10 13:50:31 +00:00
renovate[bot]
3e46486bea chore(deps): update babel monorepo to v7.22.5 2023-06-10 03:17:35 +00: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
renovate[bot]
c77acf1749 fix(deps): update dependency @headlessui/react to v1.7.15 2023-06-03 12:03:47 +00:00
renovate[bot]
189aa2fa0a chore(deps): update dependency @types/jest to v29.5.2 2023-06-03 07:34:57 +00:00
renovate[bot]
2fec1add02 chore(deps): update babel monorepo 2023-06-03 05:34:34 +00:00
renovate[bot]
64a5238af0 chore(deps): update dependency postcss to v8.4.24 2023-05-28 14:01:35 +00:00
renovate[bot]
f1a11672cc chore(deps): update babel monorepo 2023-05-27 18:33:51 +00:00
renovate[bot]
06b065723e chore(deps): update dependency @types/react to v16.14.42 2023-05-27 08:54:10 +00:00
renovate[bot]
b23b9d4414 chore(deps): update dependency @types/react to v16.14.41 2023-05-06 16:36:09 +00:00
renovate[bot]
31619ecb52 chore(deps): update babel monorepo 2023-05-06 08:18:33 +00:00
Muhammed Mustafa
cc272beb7a
feat(tools): use context to set dropup in the dropdown (#50200)
* feat(tools): use context to set dropup in the dropdown

* remove the extra export

* clean extra changes export and make it into arrow function

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>

---------

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
2023-05-03 11:02:15 +02:00
renovate[bot]
ebc54d8d56 chore(deps): update dependency tailwindcss to v3.3.2 2023-04-29 17:47:19 +00:00
renovate[bot]
6c6ca6c20c chore(deps): update babel monorepo 2023-04-29 09:50:23 +00:00
Muhammed Mustafa
c93d61f1e5
feat(client, tools): make ui component respect theme (#50202)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-04-28 12:44:12 +03:00
Moshe
21e5470220
feat(ui-tools): add dropDown component (#47043)
* Create a drop down menu

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: moshe vilner <shootermv@gmail.com>

hopefully sort the tests

hopefully sort the test this time

this time? I hope

test compound component

I give up

This reverts commit d88c6783cccf811c3c5dced0ab980adff0172669.

headless doesn't pass onclick to its buttons children

add the logical statment back

revert the removing the ability to click

sort the tests

fix a typo

* sort the tests

* rename to menu item

* let dropdown trigger accept children

* include dropdown and menu items in the exports

* polish the logic around setting the dropup style

* add tests

* fix: typo DropDown to Dropdown

* sort the styles

* sort the type and add bsStyle to dropdownToggle

* fix: types in button and menu items

* align text to center

* remove the bsstyle and block logic from dropdown

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

* add w-full to sort default button not taking all width

* move the styling dependecy away from dev

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

* stop the mutation

Co-authored-by: sembauke <semboot699@gmail.com>

* remove the extra story

---------

Co-authored-by: Sboonny <muhammedelruby@gmail.com>
Co-authored-by: Sboonny <muhammed@freecodecamp.org>
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: sembauke <semboot699@gmail.com>
2023-04-24 10:05:25 +02:00
renovate[bot]
0e2e46a14b chore(deps): update dependency postcss to v8.4.23 2023-04-23 03:48:13 +00:00
renovate[bot]
b1ac1d2baa chore(deps): update dependency @types/jest to v29.5.1 2023-04-22 16:14:16 +00:00
Ahmad Abdolsaheb
94141eae56
feat(tools): adjust @freecodecamp/ui config for linking/publishing (#50098) 2023-04-20 18:35:07 +03:00
Muhammed Mustafa
6b869ec375
feat(tools): add panel component (#49398)
* run panel gen code

* add the default style

* add tthe styles for the panel

* create context of bsStyle

* add panel heading

* add panel title

* add panel body

* create the story for the panel

* typo hiding the border

* border doesn't work for some reason

* only border-3 works in tailwind

* change for border-1 for better visual indication

* fix: bsStyle not applying to the panel

* add html props to the elements

* remove the info colors for our info colors

* fix heading style

* add Panel test

* use to have Class instead

* fix type

* component disregarding default attributes?

* remove duplication in the test

* use compound components

* clean the old logic for the bsStyle

* clean the exports

* add heading and bsstyle control

* fix the classes

* check for title body render

* remove extra types

---------

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-04-19 16:37:13 +02:00
Muhammed Mustafa
27c75679cd
fix(tools): sort small issues in formControl (#49872) 2023-04-18 20:01:36 +05:30
renovate[bot]
54cc79ac4b chore(deps): update dependency postcss to v8.4.22 2023-04-16 18:35:39 +00:00
renovate[bot]
2a868ddc67 chore(deps): update dependency @types/react to v16.14.40 2023-04-15 09:14:09 +00:00
renovate[bot]
762f35c385
chore(deps): update dependency tailwindcss to v3.3.1 (#49921)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 18:58:21 +02:00
renovate[bot]
88b923e553
chore(deps): update dependency @types/react to v16.14.38 (#49919)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-06 16:02:14 +05:30
renovate[bot]
314c978524 chore(deps): update babel monorepo to v7.21.4 2023-04-04 07:21:28 +00:00
Muhammed Mustafa
3988d426f5
feat(tools): remove system colors variables from colors.css (#49870) 2023-04-03 14:06:18 +05:30
Mrugesh Mohapatra
e5590e56d7
chore: use pnpm v8 for deps (#49892)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-29 20:18:49 +05:30
Muhammed Mustafa
e3b25be4d9
chore(tools): create formgroup component (#46758)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-27 13:39:18 +05:30
renovate[bot]
7ecf6a44bc
chore(deps): update jest monorepo to v29 (major) (#49775)
* chore(deps): update jest monorepo to v29

* chore: install jest-environment-jsdom

* chore: update snapshots

* fix: update config to transform nanoid+uuid

* chore: update babel's node target

This does not seem strictly necessary, but is probably for the best.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-03-21 12:37:23 +00:00
Muhammed Mustafa
6c0f2d0998
fix(tools): FromControl disregard the default attributes (#49411)
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-03-21 14:05:55 +05:30
renovate[bot]
c94962a825 chore(deps): update babel monorepo 2023-03-18 21:49:50 +00:00
Oliver Eyton-Williams
d65c36e4c3
feat: replace rimraf with rm -rf (#49711)
* feat: replace rimraf with rm -rf

rimraf may not be available, but rm will be

* chore(deps): remove rimraf
2023-03-16 12:34:31 +05:30
Muhammed Mustafa
ea83d87869
feat(tools): export Alertprops if needed for consumption (#49236)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-03-15 16:27:07 +03:00
Rajkumar Gaur
f03c4a2ecc
feat(UI): implement ToggleButton component (#48567) 2023-03-15 14:08:58 +03:00
Oliver Eyton-Williams
c498c06259
fix(deps): add missing dependencies + fix knip (#49691)
* refactor: use pnpm dlx over npx

* fix: create config before running knip

* chore: fix challenge-parser dependencies

* chore: add missing client + plugin dependencies

* chore: pin deps
2023-03-13 19:38:19 +05:30
renovate[bot]
caed609114 chore(deps): update dependency autoprefixer to v10.4.14 2023-03-11 17:09:13 +00:00
Mrugesh Mohapatra
0393910a24
fix(client): add return type to component (#49616) 2023-03-07 17:07:55 +00:00
Muhammed Mustafa
040faba6f8
feat(ui-components): add ControlLabel component (#47219) 2023-03-07 20:58:29 +05:30
Oliver Eyton-Williams
d7848ae01a
feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

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

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
renovate[bot]
140694a447
chore(deps): update dependency tailwindcss to v3.2.7 (#49428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:05:39 -08:00
Muhammed Mustafa
d1166f0a3a
refactor(tools): import close button props and stop reassigning its value (#49235)
refactor(tools): import close button  props and stop reassigning its value
2023-02-18 08:18:40 -08: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
renovate[bot]
3065d7cab7
chore(deps): update dependency tailwindcss to v3.2.6 (#49342)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-11 10:47:01 +00:00
Muhammed Mustafa
47ffd20f74
fix(client): add type to warn misuse of attributes in formControl (#48696)
* feat: add type to warn miss usage of attributes in formControl

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

* refactor the value type

Co-authored-by: sembauke <semboot699@gmail.com>

* add condition type for readyonly and onchange types

* warn when using readonly and onchange props together

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

* allow value to be undefined

* Make read-only undefined

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

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: sembauke <semboot699@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2023-02-10 13:24:23 +00:00
renovate[bot]
e536ba5224 fix(deps): update dependency typescript to v4.9.5 2023-02-04 19:39:26 +00:00
renovate[bot]
1ec4d740eb chore(deps): update storybook monorepo to v6.5.16 2023-01-29 22:47:17 +00:00
Muhammed Mustafa
b35e8166c0
feat(tools): add system pallet to ui components color (#49125) 2023-01-27 10:45:21 -06:00
renovate[bot]
cc0514ea35 chore(deps): update dependency postcss to v8.4.21 2023-01-07 15:06:15 +00:00
renovate[bot]
0b6efdbe40 chore(deps): update babel monorepo to v7.20.12 2023-01-07 08:31:49 +00:00
Jordan Moore
bfec58f744
test(UI): add tests to the table spec (#48823)
feat: add tests to table spec
2023-01-02 23:18:07 +05:30
renovate[bot]
1c73c1c6d5 chore(deps): update storybook monorepo to v6.5.15 2022-12-24 13:26:18 +00:00
renovate[bot]
3dde77a637 chore(deps): update babel monorepo 2022-12-24 04:48:39 +00:00
Muhammed Mustafa
35c3a93a72
feat: add the ability to create a download button (#48697)
* feat: add the ability to create a download button

* Allow the creating of download button

* update test, and stories props
2022-12-16 08:57:39 -08:00
renovate[bot]
9bb1d9a390 chore(deps): update dependency postcss to v8.4.20 2022-12-12 00:51:46 +00:00
renovate[bot]
a606203ae4 fix(deps): update dependency typescript to v4.9.4 2022-12-11 05:27:18 +00:00
renovate[bot]
2e77f8b4a1 chore(deps): update storybook monorepo to v6.5.14 2022-12-03 16:33:25 +00:00
renovate[bot]
426fe482c9 chore(deps): update babel monorepo 2022-12-03 07:57:55 +00:00
renovate[bot]
5504a8cbb7 fix(deps): update dependency typescript to v4.9.3 2022-11-20 22:30:54 +00:00
renovate[bot]
57b192c547 chore(deps): update dependency tailwindcss to v3.2.4 2022-11-12 10:30:00 +00:00
renovate[bot]
ce617a4920 chore(deps): update dependency postcss to v8.4.19 2022-11-12 07:10:29 +00:00
Ahmad Abdolsaheb
b1627abb2c
fix(component-library): add color variables to css build (#48417) 2022-11-11 08:13:07 +02:00
renovate[bot]
a0357591eb chore(deps): update babel monorepo 2022-11-06 00:17:31 +00:00
renovate[bot]
8c78540bcd chore(deps): update dependency tailwindcss to v3.2.2 2022-11-05 11:33:27 +00:00