Skip to content

28 regıstratıon user basic ınfo #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 272 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
1956eaa
style: fix eslint styling errors
EwbiDev Feb 6, 2024
b0a97b0
Merge pull request #20 from boolean-uk/19-change-all-hard-coded-edit-…
PeachyOmnivore Feb 6, 2024
0797559
Merge branch 'main' into 18-formatting-src
EwbiDev Feb 6, 2024
62ba1a1
Merge pull request #21 from boolean-uk/18-formatting-src
EwbiDev Feb 6, 2024
178661d
got the html and css started on the delete and edit button. I just ne…
Callumhayden99 Feb 6, 2024
e4bd795
Merge branch 'main' into 7-dashboard-create-userlist-component
PeachyOmnivore Feb 6, 2024
fd4a8d8
added more to the buttons to match the example images
Callumhayden99 Feb 6, 2024
f9e7f2e
slightly adjusted the colour on the edit and delete buttons
Callumhayden99 Feb 7, 2024
b424fb7
build: add jsx compilerOptions
EwbiDev Feb 7, 2024
7520c72
Merge branch 'main' into Callumhayden99-3-list-of-all-the-posts
Callumhayden99 Feb 7, 2024
200975c
reduced the code on the handleconfirmdelete for lewis
Callumhayden99 Feb 7, 2024
836f25d
Merge branch 'Callumhayden99-3-list-of-all-the-posts' of github.com:b…
Callumhayden99 Feb 7, 2024
93d2d98
quick fix with nazar
Callumhayden99 Feb 7, 2024
fb47b4a
updated the code for the fetch request to meet requirements
Callumhayden99 Feb 7, 2024
76847d1
FEAT: wrapped edit-icon, some formatting
PeachyOmnivore Feb 7, 2024
658f095
BUILD: Css added for userList component
PeachyOmnivore Feb 7, 2024
058b224
feat: postPost()
Chloe070196 Feb 7, 2024
eb11106
feat: reload posts when new post added
Chloe070196 Feb 7, 2024
db32783
feat: create new post
Chloe070196 Feb 7, 2024
5dcbcac
complete merge
Chloe070196 Feb 7, 2024
716c231
fix: remove duplicates
Chloe070196 Feb 7, 2024
1338297
style: amend to match new eslint requirements
Chloe070196 Feb 7, 2024
3457a3e
added the eslint folder back in
Callumhayden99 Feb 7, 2024
2099e0a
style: update jwt_decode import to use camelCase
Chloe070196 Feb 7, 2024
55b13dd
refactor: move posts check into guard clause
Chloe070196 Feb 7, 2024
f92da44
Merge pull request #29 from boolean-uk/Chloe070196-#4-input_to_create…
Chloe070196 Feb 7, 2024
f967d06
fixed the eslint issue and changed a few functions to single line
Callumhayden99 Feb 7, 2024
0ca9d89
Merge branch 'main' into Callumhayden99-3-list-of-all-the-posts
Callumhayden99 Feb 7, 2024
e014503
changed the env file back to the correct name
Callumhayden99 Feb 7, 2024
ec92281
last requirement done for lewis
Callumhayden99 Feb 7, 2024
bab4e13
Merge pull request #15 from boolean-uk/Callumhayden99-3-list-of-all-t…
Callumhayden99 Feb 7, 2024
65a4117
stepThree file set up
Satokii Feb 7, 2024
4a68099
FEAT: hover to list items
PeachyOmnivore Feb 7, 2024
4d03168
Merge branch 'main' into 7-dashboard-create-userlist-component
PeachyOmnivore Feb 7, 2024
15711d1
stepThree form created with correct inputs
Satokii Feb 7, 2024
9e97503
updated handleCreateProfile funct with params for stepThree data
Satokii Feb 7, 2024
37110d2
removed console logs
Satokii Feb 7, 2024
a77aa50
Merge pull request #26 from boolean-uk/24-set-jsconfig-jsx-compiler-o…
Luca-Terrazzan Feb 7, 2024
741b176
Add stepThree file and modify stepTwo file
ilham-saleh Feb 7, 2024
c8c1a57
fix login bug
yee0802 Feb 7, 2024
f3153a7
update eslint fix
yee0802 Feb 7, 2024
6ae802e
Merge pull request #34 from boolean-uk/33-fix-login-bug
yee0802 Feb 7, 2024
cf071bb
feat: add linting workflow to prs
Auenc Feb 7, 2024
771ea77
fix: missing command from ci workflow
Auenc Feb 7, 2024
466bdc5
fix: fixed issues with eslint
Auenc Feb 7, 2024
9439dc9
Merge pull request #36 from boolean-uk/35-add-eslint-ci-to-project
Auenc Feb 7, 2024
f90b5ee
feat: getUserByName()
Chloe070196 Feb 7, 2024
e6f5572
feat: set users to user found by name
Chloe070196 Feb 7, 2024
2a653e6
merge recent changes
Chloe070196 Feb 7, 2024
c397855
usersList and userCard
LAVINIABENZAR Feb 7, 2024
8d2c47b
add /my-cohort route
yee0802 Feb 7, 2024
c7345be
fix: amend error handling
Chloe070196 Feb 7, 2024
6fd9429
merged main
LAVINIABENZAR Feb 7, 2024
88dd165
Merge pull request #39 from boolean-uk/38-cohort-page-route-to-my-cohort
extra-jalapenos Feb 8, 2024
f5f8a46
added the arrow icon
Hayor4real Feb 8, 2024
5f849da
merge main
ilham-saleh Feb 8, 2024
f596f62
Merge branch 'main' into 8-user-search-result-page
Hayor4real Feb 8, 2024
377cf9e
moved if statement and removed console.log
LAVINIABENZAR Feb 8, 2024
b4cdf46
conflict changes
Satokii Feb 8, 2024
bc445c0
Merge pull request #40 from boolean-uk/25-user-registration-contact-info
ilham-saleh Feb 8, 2024
fa73208
further conflict changes
Satokii Feb 8, 2024
798b923
add merge changes
Satokii Feb 8, 2024
0bdfa2b
add stepThree profile properties
Satokii Feb 8, 2024
a997a70
Merge pull request #41 from boolean-uk/loredana-benzar-6-a-list-of-ot…
LAVINIABENZAR Feb 8, 2024
b338911
merge changes from main
Chloe070196 Feb 8, 2024
46ab860
refactor: make UsersList stateless
Chloe070196 Feb 8, 2024
dbc4ea5
refactor: move getAllPosts() to dashboard
Chloe070196 Feb 8, 2024
ea50870
fix: add missing keys to UserCards
Chloe070196 Feb 8, 2024
ac0f27d
fix: delete unused import
Chloe070196 Feb 8, 2024
519b769
Merge pull request #37 from boolean-uk/Chloe070196-#31-dashboard-comp…
Chloe070196 Feb 8, 2024
c90df8d
Add like icon and toggle
NazarTymiv Feb 8, 2024
745a806
Merge pull request #32 from boolean-uk/22-user-registration-training-…
Satokii Feb 8, 2024
2732afb
Merge branch 'main' into 7-dashboard-create-userlist-component
PeachyOmnivore Feb 8, 2024
0e010db
Add comment icon and toggle
NazarTymiv Feb 8, 2024
53ebe53
Merge pull request #45 from boolean-uk/NazarTymiv-43-like-icon-and-co…
NazarTymiv Feb 8, 2024
59bc5db
alert added when user tries to log in with incorrect username/password
Satokii Feb 8, 2024
8847b8a
remove console log
Satokii Feb 8, 2024
5585a2e
the delete function works, just need to fix the refresh issue
Callumhayden99 Feb 8, 2024
b318f94
refactor: move state and useEffect out of Posts()
Chloe070196 Feb 8, 2024
7988be5
fix: posting a new post triggers sort and re-render
Chloe070196 Feb 8, 2024
cf85b76
merge main
Callumhayden99 Feb 8, 2024
e18aff6
refreshing issue fixed
Callumhayden99 Feb 8, 2024
417e86a
edit and delete functions full work
Callumhayden99 Feb 8, 2024
1eb08f8
Merge pull request #50 from boolean-uk/46-dashboard-fix-posts-render-…
Chloe070196 Feb 8, 2024
2b08d85
added css to the icon
Hayor4real Feb 8, 2024
4a93e0e
Merge branch 'main' into 8-user-search-result-page
Hayor4real Feb 8, 2024
1240e98
fully refactored code to meet review requirements
Callumhayden99 Feb 8, 2024
fee8188
asterisks added to required fields
Elizabethcodes44 Feb 8, 2024
b1b264e
first Bio commit
Tayokanch Feb 8, 2024
e5c2860
more chanages to meet the requirements for lewis
Callumhayden99 Feb 8, 2024
d54cf54
Merge branch 'main' into 48-delete-post-button-on-client-side
Callumhayden99 Feb 8, 2024
90012ea
Add MyExercises Component
Radio58 Feb 8, 2024
8e41cd8
Merge pull request #51 from boolean-uk/48-delete-post-button-on-clien…
Callumhayden99 Feb 8, 2024
2c9f78c
use error reporting to display login error message
Satokii Feb 8, 2024
8153cc6
Fixed a typo in MyExercises Component
Radio58 Feb 8, 2024
8e62529
photo ımage updated to text ınput
Elizabethcodes44 Feb 8, 2024
8e84ff3
FEAT: Css updated for userCard component
PeachyOmnivore Feb 8, 2024
c86212d
Merge pull request #55 from boolean-uk/53-my-cohort-page-myexercises-…
yee0802 Feb 8, 2024
88b18b8
UPDATE: name of icon, from EditIcon to OptionsIcon
PeachyOmnivore Feb 8, 2024
04180fd
UPDATE: import for newly named icon
PeachyOmnivore Feb 8, 2024
5538869
FEAT: userCard now displays more inline with figma, has effects and d…
PeachyOmnivore Feb 8, 2024
1b164ff
BUILD: new dropdown menu for userCard
PeachyOmnivore Feb 8, 2024
db26718
separate funct created to catch error thrown after unsuccessful login…
Satokii Feb 8, 2024
56f6331
UPDATE: some comments on PR
PeachyOmnivore Feb 8, 2024
2731d9f
DELETE: redundant file.
PeachyOmnivore Feb 8, 2024
caf9f42
Add formating date & time of the post
NazarTymiv Feb 9, 2024
307a6ca
Update formate date (make month name long)
NazarTymiv Feb 9, 2024
05e2ec2
Fix background issue
NazarTymiv Feb 9, 2024
04e1db3
Fix header scrolling issue
NazarTymiv Feb 9, 2024
5c20b22
Fix scroll menu issue
NazarTymiv Feb 9, 2024
7592afa
Fixed scroll aside issue
NazarTymiv Feb 9, 2024
8394052
fixed the word count
Tayokanch Feb 9, 2024
7ff9e10
Merge branch 'main' into 7-dashboard-create-userlist-component
PeachyOmnivore Feb 9, 2024
6a93200
Merge pull request #14 from boolean-uk/7-dashboard-create-userlist-co…
PeachyOmnivore Feb 9, 2024
4390dac
changed the component to self closing tag
Tayokanch Feb 9, 2024
40b76f1
white box added
Hayor4real Feb 9, 2024
165694c
Merge branch 'main' into 8-user-search-result-page
Hayor4real Feb 9, 2024
c99c7dc
Merge pull request #63 from boolean-uk/Tayos_
Tayokanch Feb 9, 2024
f0ca4a4
Merge pull request #49 from boolean-uk/23-user-login-form
Auenc Feb 9, 2024
81a850a
refactor: extract userAside to component
EwbiDev Feb 9, 2024
87e794c
like system installed and working correctly
Callumhayden99 Feb 9, 2024
886cec5
plaholder added
Elizabethcodes44 Feb 9, 2024
fc27f03
Merge pull request #62 from boolean-uk/NazarTymiv-56-dashboard-fix-th…
NazarTymiv Feb 9, 2024
5b2b375
Fix format on the month
NazarTymiv Feb 9, 2024
11c04e8
Merge branch 'main' into NazarTymiv-60-the-date-time-of-the-post
NazarTymiv Feb 9, 2024
7a05533
Merge pull request #61 from boolean-uk/NazarTymiv-60-the-date-time-of…
NazarTymiv Feb 9, 2024
af194d7
Fix imports in post.js
NazarTymiv Feb 9, 2024
c27c2a7
Fix issue with imports
NazarTymiv Feb 9, 2024
5731e9d
build UserSearchBar component functionality
Feb 9, 2024
2c311ca
Merge pull request #71 from boolean-uk/NazarTymiv-70-fix-imports-in-p…
NazarTymiv Feb 9, 2024
8b6b8a9
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c11
NazarTymiv Feb 9, 2024
a125186
add MyTeachers component
yee0802 Feb 9, 2024
269ad2d
fix: remove duplicate state and logic
Chloe070196 Feb 9, 2024
a74a12d
refactor: all posts modifications rely on the same get all function
Chloe070196 Feb 9, 2024
01a616a
merge main into branch
Chloe070196 Feb 9, 2024
2b8ab69
update minor changes
Feb 9, 2024
566bcc7
Merge pull request #73 from boolean-uk/66-student-view-myteachers-com…
yee0802 Feb 9, 2024
50c01b4
Merge pull request #75 from boolean-uk/CHlloe070196-#65-dashboard-fix…
Chloe070196 Feb 9, 2024
a97c268
feat: re-render single post contentupon edit
Chloe070196 Feb 9, 2024
19c683e
conflıct ıssues
Elizabethcodes44 Feb 9, 2024
decf7ec
fix: add missing useEffect dependencies
Chloe070196 Feb 9, 2024
6415657
Done
NazarTymiv Feb 9, 2024
5634ca8
Merge pull request #80 from boolean-uk/Chloe-#79-dashboard-posts-upon…
Chloe070196 Feb 9, 2024
835c027
Merge branch 'main' of github.com:boolean-uk/team-dev-client-c11
NazarTymiv Feb 9, 2024
e2457f2
conflıct
Elizabethcodes44 Feb 9, 2024
e2bbd9f
Merged with main
NazarTymiv Feb 9, 2024
b10d562
work needed
Faiza-tech Feb 9, 2024
2997506
created a new endpoint for the likes and new toggle function
Callumhayden99 Feb 9, 2024
cab6f5f
add MyCohortDetails component
yee0802 Feb 9, 2024
fd2a2f2
Merge branch 'main' into Callumhayden99-54-posts-the-number-of-likes-…
Callumhayden99 Feb 9, 2024
498a127
Fix prettier
NazarTymiv Feb 9, 2024
99e9097
Fix files
NazarTymiv Feb 9, 2024
e6a2a07
Merge pull request #82 from boolean-uk/NazarTymiv-77-update-post-sett…
NazarTymiv Feb 9, 2024
5a69bdb
small changes to step two page
ilham-saleh Feb 9, 2024
5f24d4e
Merge pull request #83 from boolean-uk/74-student-view-add-mycohortde…
yee0802 Feb 9, 2024
609ae3c
add my-cohort page
yee0802 Feb 9, 2024
dbe92cf
update file names
yee0802 Feb 9, 2024
411981f
update import paths
yee0802 Feb 9, 2024
30a5671
Merge pull request #85 from boolean-uk/84-student-view-add-my-cohort-…
yee0802 Feb 9, 2024
f9378ef
updated the likes ticket to meet the requirements
Callumhayden99 Feb 9, 2024
fd529d3
added some functionality
Hayor4real Feb 9, 2024
06b75de
update cohort NavLink to direct to route /my-cohort
yee0802 Feb 9, 2024
e046677
basıcınfo
Elizabethcodes44 Feb 9, 2024
d017c9a
fix toggle login/sign up button
Satokii Feb 9, 2024
d3d6130
Merge pull request #89 from boolean-uk/88-loginsign-up-toggle-button-…
Satokii Feb 9, 2024
ac78d94
feat: add stuff
EwbiDev Feb 9, 2024
f2269b3
added some functionality
Hayor4real Feb 9, 2024
7ce37ed
Merge pull request #64 from boolean-uk/28-regıstratıon-user-basic-ınfo
Elizabethcodes44 Feb 9, 2024
62e3272
Add comment input component
NazarTymiv Feb 10, 2024
6ffe52f
Add styles for comment input component
NazarTymiv Feb 10, 2024
fb615c2
Add POST request for comments and connect client to server
NazarTymiv Feb 10, 2024
31fb8e9
refactor: add mock makeUser function
EwbiDev Feb 12, 2024
3f211c2
fix userSearchBar simplified
Feb 12, 2024
50df47c
merged work and fixed issue
Callumhayden99 Feb 12, 2024
90ac6e4
Remove Icons comment
NazarTymiv Feb 12, 2024
45ea637
Fix error comment of gettin all sorted posts
NazarTymiv Feb 12, 2024
1135367
Update dashboard console error
NazarTymiv Feb 12, 2024
d951eeb
Remove comments in the dashboard functions
NazarTymiv Feb 12, 2024
bfbdeb2
Remove comment in apiClient
NazarTymiv Feb 12, 2024
bf808ff
merged main to branch
Feb 12, 2024
b0e00c4
Merge pull request #91 from boolean-uk/NazarTymiv-90-comment-input
NazarTymiv Feb 12, 2024
c92dd30
linting error fixed
Feb 12, 2024
521c74c
Fix issues with commits
NazarTymiv Feb 12, 2024
d6f1a81
Merge branch 'main' into 13-dashboard-create-searchuserinput-component
PCapid3v Feb 12, 2024
a51c9c3
Merge with latest version
NazarTymiv Feb 12, 2024
29df847
Update index.js
PCapid3v Feb 12, 2024
0dc1c3c
Update spacing dashboard index.js
PeachyOmnivore Feb 12, 2024
da2e54d
Update missing closing bracket on apiClient.js
PeachyOmnivore Feb 12, 2024
6171c6b
Fix show likes
NazarTymiv Feb 12, 2024
55f5665
FIX: position of options menu.
PeachyOmnivore Feb 12, 2024
5d754a3
DELETE: useNavigate. Awaiting route to be built
PeachyOmnivore Feb 12, 2024
a0f4805
FIX: CSS now allows for proper position of options menu on page.
PeachyOmnivore Feb 12, 2024
96f6a0f
LINTING: removed semi-colons
PeachyOmnivore Feb 12, 2024
0fd609d
Merge pull request #94 from boolean-uk/92-profilecontextmenu-remove-r…
PeachyOmnivore Feb 12, 2024
ed2eada
Merge pull request #72 from boolean-uk/13-dashboard-create-searchuser…
PCapid3v Feb 12, 2024
9e531dd
FIX: z-index issue.
PeachyOmnivore Feb 12, 2024
e68c441
Merge pull request #96 from boolean-uk/95-options-context-menu-css-sl…
PeachyOmnivore Feb 12, 2024
a48d97c
added the lists of people
Hayor4real Feb 12, 2024
e99cc97
Merge branch 'main' into 8-user-search-result-page
Hayor4real Feb 12, 2024
e4a3375
work neeeded
Faiza-tech Feb 12, 2024
a152d44
trying to make input validation work
ilham-saleh Feb 12, 2024
adf2eeb
Add functionality for show user's like
NazarTymiv Feb 12, 2024
1a4ca90
Fixed lint
NazarTymiv Feb 12, 2024
7c9bae7
Merge branch 'main' into 5-dashboard-searchuser-component
EwbiDev Feb 12, 2024
cb22563
Remove console logs
NazarTymiv Feb 12, 2024
4d25787
Merge branch 'main' into Callumhayden99-54-posts-the-number-of-likes-…
NazarTymiv Feb 12, 2024
fcd23d3
Fixed error and styles
NazarTymiv Feb 12, 2024
1e75556
refactor: extract searchBar functionality into parent
EwbiDev Feb 12, 2024
1d523aa
refactor: organise imports
EwbiDev Feb 12, 2024
10a3ed3
style: formatting
EwbiDev Feb 12, 2024
c652a9e
Update auth token
NazarTymiv Feb 12, 2024
97a7a9a
remove token from navigation component
yee0802 Feb 12, 2024
9393f57
Merge pull request #87 from boolean-uk/86-student-view-update-navigat…
yee0802 Feb 12, 2024
5a4efae
updated the usersearchresult file
Hayor4real Feb 12, 2024
94b73a5
feat: add checking for hovering over menu
EwbiDev Feb 12, 2024
9ae5e70
added the fetch request
Hayor4real Feb 12, 2024
67474d7
refactor: remove unused prop
EwbiDev Feb 12, 2024
5c5ca71
renamed the css file
Hayor4real Feb 12, 2024
5c5a2f1
feat: add users guard clause
EwbiDev Feb 12, 2024
23ed472
Merge pull request #99 from boolean-uk/5-dashboard-searchuser-component
EwbiDev Feb 12, 2024
9962500
Merge branch 'main' into 8-user-search-result-page
Hayor4real Feb 12, 2024
80caeda
added some codes
Hayor4real Feb 12, 2024
6200c35
Merge pull request #98 from boolean-uk/8-user-search-result-page
Hayor4real Feb 12, 2024
e24f3f2
Update token for useAuth
NazarTymiv Feb 13, 2024
4133543
Update useAuth add new item userId
NazarTymiv Feb 13, 2024
4e2b9fc
fix classes of border-top and bottom
NazarTymiv Feb 13, 2024
cef9dbd
Merge pull request #69 from boolean-uk/Callumhayden99-54-posts-the-nu…
NazarTymiv Feb 13, 2024
832eae2
..
ilham-saleh Feb 13, 2024
7641113
STEP ONE: name change / camel case issue.
PeachyOmnivore Feb 13, 2024
0f551f4
STEP TWO: deleted wrong file name / camelCase issue.
PeachyOmnivore Feb 13, 2024
de0c771
FIX: camelCase file name issue.
PeachyOmnivore Feb 13, 2024
5151e4a
Merge pull request #103 from boolean-uk/102-bug-fix-usersearchcss
PeachyOmnivore Feb 13, 2024
7699fa6
Merge branch 'main' of https://github.com/boolean-uk/team-dev-client-c11
PeachyOmnivore Feb 13, 2024
a2ff4e0
input validatings
ilham-saleh Feb 13, 2024
a6a8275
require all input fields to be complete
ilham-saleh Feb 13, 2024
5df2b5c
added the comment section
Callumhayden99 Feb 13, 2024
e1a122b
display message to inform user all inputs are required to fill in
ilham-saleh Feb 13, 2024
57129b1
Merge pull request #109 from boolean-uk/Callumhayden99-106-comments-o…
Callumhayden99 Feb 13, 2024
ea5109a
Merge pull request #110 from boolean-uk/25-user-registration-contact-…
ilham-saleh Feb 13, 2024
24391cb
build: add new packages
EwbiDev Feb 13, 2024
ae72536
feat: setup i18next
EwbiDev Feb 13, 2024
271e228
refactor: remove console logs
EwbiDev Feb 13, 2024
fcacb7a
sneaky
Auenc Feb 13, 2024
eb2cb8e
Merge branch '112-i18n-creating-setup-files' of github.com:boolean-uk…
EwbiDev Feb 13, 2024
bbf783a
Merge pull request #114 from boolean-uk/112-i18n-creating-setup-files
EwbiDev Feb 13, 2024
8e763f9
Merge branch 'main' of https://github.com/boolean-uk/team-dev-client-c11
PeachyOmnivore Feb 13, 2024
4170260
FEAT: added two keys and values.
PeachyOmnivore Feb 13, 2024
a97bfe5
BUILD: I18N addition.
PeachyOmnivore Feb 13, 2024
bbbb0e2
FIX: EDS BRAIN
PeachyOmnivore Feb 13, 2024
247eaa7
Merge pull request #140 from boolean-uk/116-i18n-component-change-com…
PeachyOmnivore Feb 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- run: npm ci
- run: npm run lint
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": false
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Client repository for team dev project.

### Project Management

https://github.com/orgs/boolean-uk/projects/10/views/1
https://trello.com/invite/b/3cEAMjKi/ATTIe60126493eaf9bd46a14b18c431c3e11EE7E5E20/team-dev-c11

### Contributing

Expand Down
5 changes: 5 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"jsx": "react-jsx"
}
}
2,357 changes: 1,559 additions & 798 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,33 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"i18next": "^23.8.2",
"jwt-decode": "^3.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^14.0.5",
"react-modal": "^3.16.1",
"react-router-dom": "^6.8.0",
"react-scripts": "5.0.1",
"web-vitals": "^3.1.1"
},
"devDependencies": {
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.2.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"lint": "eslint src"
},
"eslintConfig": {
"extends": [
Expand Down
21 changes: 14 additions & 7 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
* {
color: #000046;
color: #000046;
}

.container {
display: grid;
grid-template-columns: 151px 2fr 1fr;
grid-template-rows: 96px auto;
background-color: #F0F5FA;
height: 100vh;
position: relative;
display: grid;
grid-template-columns: 151px 2fr 1fr;
grid-template-rows: 96px auto;
background-color: #f0f5fa;
min-height: 100vh;
}

.ReactModal__Body--open,
.ReactModal__Html--open {
overflow: hidden;
}
}

.input-message {
color: red;
font-size: 18px;
text-align: center;
}
104 changes: 62 additions & 42 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,46 +1,66 @@
import "./App.css";
import { Routes, Route } from "react-router-dom";
import Dashboard from "./pages/dashboard";
import Login from "./pages/login";
import Register from "./pages/register";
import Loading from "./pages/loading";
import Verification from "./pages/verification";
import { AuthProvider, ProtectedRoute } from "./context/auth";
import { ModalProvider } from "./context/modal";
import Welcome from "./pages/welcome";
import "./App.css"
import { Routes, Route } from "react-router-dom"
import Dashboard from "./pages/dashboard"
import Login from "./pages/login"
import Register from "./pages/register"
import Loading from "./pages/loading"
import Verification from "./pages/verification"
import { AuthProvider, ProtectedRoute } from "./context/auth"
import { ModalProvider } from "./context/modal"
import Welcome from "./pages/welcome"
import MyCohort from "./pages/myCohort"
import UserSearchResult from "./pages/UserSearchResult"

const App = () => {
return (
<>
<AuthProvider>
<ModalProvider>
<Routes>
<Route path="login" element={<Login />} />
<Route path="register" element={<Register />} />
<Route path="loading" element={<Loading />} />
<Route path="verification" element={<Verification />} />
return (
<>
<AuthProvider>
<ModalProvider>
<Routes>
<Route path="login" element={<Login />} />
<Route path="register" element={<Register />} />
<Route path="loading" element={<Loading />} />
<Route path="verification" element={<Verification />} />

<Route
index
element={
<ProtectedRoute>
<Dashboard />
</ProtectedRoute>
}
/>
<Route
path="welcome"
element={
<ProtectedRoute disabledNav={true}>
<Welcome />
</ProtectedRoute>
}
/>
</Routes>
</ModalProvider>
</AuthProvider>
</>
);
};
<Route
index
element={
<ProtectedRoute>
<Dashboard />
</ProtectedRoute>
}
/>

export default App;
<Route
path="my-cohort"
element={
<ProtectedRoute>
<MyCohort />
</ProtectedRoute>
}
/>

<Route
path="results"
element={
<ProtectedRoute>
<UserSearchResult />
</ProtectedRoute>
}
/>
<Route
path="welcome"
element={
<ProtectedRoute disabledNav={true}>
<Welcome />
</ProtectedRoute>
}
/>
</Routes>
</ModalProvider>
</AuthProvider>
</>
)
}

export default App
6 changes: 3 additions & 3 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from '@testing-library/react';
import App from './App';
import { render, screen } from "@testing-library/react";
import App from "./App";

test('renders learn react link', () => {
test("renders learn react link", () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
Expand Down
50 changes: 25 additions & 25 deletions src/assets/fullLogo-whiteLines.js

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions src/assets/fullLogo.js

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions src/assets/icons/addIcon.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const AddIcon = () => {
return (
<svg
width="32"
height="40"
viewBox="0 0 32 40"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14.5 32.3H17.5V25.85H24V22.85H17.5V16.35H14.5V22.85H8V25.85H14.5V32.3ZM3 40C2.2 40 1.5 39.7 0.9 39.1C0.3 38.5 0 37.8 0 37V3C0 2.2 0.3 1.5 0.9 0.9C1.5 0.3 2.2 0 3 0H21.05L32 10.95V37C32 37.8 31.7 38.5 31.1 39.1C30.5 39.7 29.8 40 29 40H3ZM19.55 12.3V3H3V37H29V12.3H19.55ZM3 3V12.3V3V37V3Z"
fill="#64648C"
/>
</svg>
);
return (
<svg
width="32"
height="40"
viewBox="0 0 32 40"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M14.5 32.3H17.5V25.85H24V22.85H17.5V16.35H14.5V22.85H8V25.85H14.5V32.3ZM3 40C2.2 40 1.5 39.7 0.9 39.1C0.3 38.5 0 37.8 0 37V3C0 2.2 0.3 1.5 0.9 0.9C1.5 0.3 2.2 0 3 0H21.05L32 10.95V37C32 37.8 31.7 38.5 31.1 39.1C30.5 39.7 29.8 40 29 40H3ZM19.55 12.3V3H3V37H29V12.3H19.55ZM3 3V12.3V3V37V3Z"
fill="#64648C"
/>
</svg>
);
};

export default AddIcon;
22 changes: 11 additions & 11 deletions src/assets/icons/arrowRightIcon.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const ArrowRightIcon = () => {
return (
<svg
width="10"
height="20"
viewBox="0 0 10 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M0 20V0L10 10L0 20Z" fill="#000046" />
</svg>
);
return (
<svg
width="10"
height="20"
viewBox="0 0 10 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M0 20V0L10 10L0 20Z" fill="#000046" />
</svg>
);
};

export default ArrowRightIcon;
27 changes: 27 additions & 0 deletions src/assets/icons/backArrowIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from "react"

const BackArrowIcon = ({ width, height, top, left, color }) => {
const svgStyle = {
width,
height,
top,
left,
color,
}

return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
style={svgStyle}
stroke="#64648C"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M19 12H5M12 19l-7-7 7-7" />
</svg>
)
}

export default BackArrowIcon
26 changes: 16 additions & 10 deletions src/assets/icons/cogIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions src/assets/icons/cohortIcon-fill.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const CohortIconFill = () => {
return (
<svg
width="46"
height="32"
viewBox="0 0 46 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0.899902 32.0002V27.3002C0.899902 26.1335 1.1999 25.0752 1.7999 24.1252C2.3999 23.1752 3.23324 22.4669 4.2999 22.0002C6.73324 20.9335 8.9249 20.1669 10.8749 19.7002C12.8249 19.2335 14.8332 19.0002 16.8999 19.0002C18.9666 19.0002 20.9666 19.2335 22.8999 19.7002C24.8332 20.1669 27.0166 20.9335 29.4499 22.0002C30.5166 22.4669 31.3582 23.1752 31.9749 24.1252C32.5916 25.0752 32.8999 26.1335 32.8999 27.3002V32.0002H0.899902ZM35.8999 32.0002V27.3002C35.8999 25.2002 35.3666 23.4752 34.2999 22.1252C33.2332 20.7752 31.8332 19.6835 30.0999 18.8502C32.3999 19.1169 34.5666 19.5085 36.5999 20.0252C38.6332 20.5419 40.2832 21.1335 41.5499 21.8002C42.6499 22.4335 43.5166 23.2169 44.1499 24.1502C44.7832 25.0835 45.0999 26.1335 45.0999 27.3002V32.0002H35.8999ZM16.8999 15.9502C14.6999 15.9502 12.8999 15.2502 11.4999 13.8502C10.0999 12.4502 9.3999 10.6502 9.3999 8.4502C9.3999 6.2502 10.0999 4.4502 11.4999 3.0502C12.8999 1.6502 14.6999 0.950195 16.8999 0.950195C19.0999 0.950195 20.8999 1.6502 22.2999 3.0502C23.6999 4.4502 24.3999 6.2502 24.3999 8.4502C24.3999 10.6502 23.6999 12.4502 22.2999 13.8502C20.8999 15.2502 19.0999 15.9502 16.8999 15.9502ZM34.8999 8.4502C34.8999 10.6502 34.1999 12.4502 32.7999 13.8502C31.3999 15.2502 29.5999 15.9502 27.3999 15.9502C27.0332 15.9502 26.6249 15.9252 26.1749 15.8752C25.7249 15.8252 25.3166 15.7335 24.9499 15.6002C25.7499 14.7669 26.3582 13.7419 26.7749 12.5252C27.1916 11.3085 27.3999 9.9502 27.3999 8.4502C27.3999 6.9502 27.1916 5.6252 26.7749 4.4752C26.3582 3.3252 25.7499 2.26686 24.9499 1.3002C25.3166 1.2002 25.7249 1.11686 26.1749 1.0502C26.6249 0.983529 27.0332 0.950195 27.3999 0.950195C29.5999 0.950195 31.3999 1.6502 32.7999 3.0502C34.1999 4.4502 34.8999 6.2502 34.8999 8.4502Z"
fill="#000046"
/>
</svg>
);
return (
<svg
width="46"
height="32"
viewBox="0 0 46 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0.899902 32.0002V27.3002C0.899902 26.1335 1.1999 25.0752 1.7999 24.1252C2.3999 23.1752 3.23324 22.4669 4.2999 22.0002C6.73324 20.9335 8.9249 20.1669 10.8749 19.7002C12.8249 19.2335 14.8332 19.0002 16.8999 19.0002C18.9666 19.0002 20.9666 19.2335 22.8999 19.7002C24.8332 20.1669 27.0166 20.9335 29.4499 22.0002C30.5166 22.4669 31.3582 23.1752 31.9749 24.1252C32.5916 25.0752 32.8999 26.1335 32.8999 27.3002V32.0002H0.899902ZM35.8999 32.0002V27.3002C35.8999 25.2002 35.3666 23.4752 34.2999 22.1252C33.2332 20.7752 31.8332 19.6835 30.0999 18.8502C32.3999 19.1169 34.5666 19.5085 36.5999 20.0252C38.6332 20.5419 40.2832 21.1335 41.5499 21.8002C42.6499 22.4335 43.5166 23.2169 44.1499 24.1502C44.7832 25.0835 45.0999 26.1335 45.0999 27.3002V32.0002H35.8999ZM16.8999 15.9502C14.6999 15.9502 12.8999 15.2502 11.4999 13.8502C10.0999 12.4502 9.3999 10.6502 9.3999 8.4502C9.3999 6.2502 10.0999 4.4502 11.4999 3.0502C12.8999 1.6502 14.6999 0.950195 16.8999 0.950195C19.0999 0.950195 20.8999 1.6502 22.2999 3.0502C23.6999 4.4502 24.3999 6.2502 24.3999 8.4502C24.3999 10.6502 23.6999 12.4502 22.2999 13.8502C20.8999 15.2502 19.0999 15.9502 16.8999 15.9502ZM34.8999 8.4502C34.8999 10.6502 34.1999 12.4502 32.7999 13.8502C31.3999 15.2502 29.5999 15.9502 27.3999 15.9502C27.0332 15.9502 26.6249 15.9252 26.1749 15.8752C25.7249 15.8252 25.3166 15.7335 24.9499 15.6002C25.7499 14.7669 26.3582 13.7419 26.7749 12.5252C27.1916 11.3085 27.3999 9.9502 27.3999 8.4502C27.3999 6.9502 27.1916 5.6252 26.7749 4.4752C26.3582 3.3252 25.7499 2.26686 24.9499 1.3002C25.3166 1.2002 25.7249 1.11686 26.1749 1.0502C26.6249 0.983529 27.0332 0.950195 27.3999 0.950195C29.5999 0.950195 31.3999 1.6502 32.7999 3.0502C34.1999 4.4502 34.8999 6.2502 34.8999 8.4502Z"
fill="#000046"
/>
</svg>
);
};

export default CohortIconFill;
Loading