Skip to content
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

Feature/recruitment and onboarding #3119

Merged
merged 499 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
499 commits
Select commit Hold shift + click to select a range
2ccbe52
Merge pull request #3028 from Northeastern-Electric-Racing/#2985-add-…
Aaryan1203 Dec 5, 2024
b004bda
Completed onboarding block
Aaryan1203 Dec 5, 2024
57f1ca2
Merge pull request #3053 from Northeastern-Electric-Racing/onboarding…
Aaryan1203 Dec 5, 2024
420cd8b
Merge pull request #2965 from Northeastern-Electric-Racing/#2905-Upda…
Aaryan1203 Dec 5, 2024
3df6f27
#3054 only users who have completedOnboarding set to true can view th…
Aaryan1203 Dec 5, 2024
a951b8b
#3054 trying to redeploy
Aaryan1203 Dec 5, 2024
00f2a7b
#3054 trying to redeploy
Aaryan1203 Dec 5, 2024
8ede0e1
#3054 prettier
Aaryan1203 Dec 5, 2024
0c02083
#3054 tsc check
Aaryan1203 Dec 5, 2024
2ce581f
#3007 Onboarding Block component implemented
dreifusjack Dec 5, 2024
9ef97cd
Merge pull request #3051 from Northeastern-Electric-Racing/#3006-upda…
Aaryan1203 Dec 5, 2024
4dc395d
#3012 merge conflicts
Aaryan1203 Dec 5, 2024
2da406b
#3012 updated getUsersTeamType checklists endpoint
Aaryan1203 Dec 5, 2024
0ae929c
#3012 updated seed
Aaryan1203 Dec 5, 2024
4c713c1
#3012 refactored checklist component and created new endpoints
Aaryan1203 Dec 5, 2024
f35d280
#3012 everything but getUsersCheckedChecklists work
Aaryan1203 Dec 5, 2024
3d4dc4e
#3012 fixed tests
Aaryan1203 Dec 5, 2024
c81851a
Merge branch 'feature/recruitment_and_onboarding' into #3012-create-c…
Aaryan1203 Dec 5, 2024
3ff6638
#3012 completed checklist component
Aaryan1203 Dec 5, 2024
5977e18
Fixed url
Aaryan1203 Dec 5, 2024
ad428bc
#3007 modified onboardingText type
dreifusjack Dec 7, 2024
8cb5817
#3007 added seed data
dreifusjack Dec 7, 2024
a81d971
Merge pull request #3055 from Northeastern-Electric-Racing/#3054-comp…
walker-sean Dec 8, 2024
0dbf096
#3007 logs edit clicks
dreifusjack Dec 8, 2024
85a6091
#3007 onboarding page uses component
dreifusjack Dec 8, 2024
a1a33df
#3007 component style changes
dreifusjack Dec 8, 2024
269f64a
res
Aaryan1203 Dec 8, 2024
84d6c06
#3012 updated seed data
Aaryan1203 Dec 8, 2024
01d83a2
#2715 fixed styling
Aaryan1203 Dec 8, 2024
422edd1
#2715 fixed styling for timeline and faqs:
Aaryan1203 Dec 8, 2024
ebd4ee2
#2715: yarn.lock updated
Zwendle Dec 9, 2024
43bd346
#2715: yarn install
Zwendle Dec 9, 2024
8cb3d65
Reverted .env
Zwendle Dec 9, 2024
18795f9
#2715 removed env file
Aaryan1203 Dec 11, 2024
e5db298
Merge pull request #2921 from Northeastern-Electric-Racing/#2715-crea…
Aaryan1203 Dec 11, 2024
a52b12e
#3007 merge conflicts
Aaryan1203 Dec 11, 2024
6d24df1
#3007 prettier
Aaryan1203 Dec 11, 2024
56adbcd
Merge pull request #3056 from Northeastern-Electric-Racing/#3007-crea…
Aaryan1203 Dec 11, 2024
6e98274
#2713 Fix Dev Image Upload Cleanup Team Table
Peyton-McKee Dec 12, 2024
bd90b0c
#3012 added comments and removed console logs
Aaryan1203 Dec 12, 2024
3470b4d
#3012 merge conflicts
Aaryan1203 Dec 12, 2024
da89959
#3012 ensured id is string
Aaryan1203 Dec 12, 2024
53439bc
#3012 prettier
Aaryan1203 Dec 12, 2024
a5d88a7
#3012 prettier
Aaryan1203 Dec 12, 2024
e6b9aa9
#3004 styling done
superhvarn Dec 14, 2024
ffeb864
Merge branch 'feature/recruitment_and_onboarding' into 3004-move-usef…
superhvarn Dec 14, 2024
e0a1c3a
Merge branch 'feature/recruitment_and_onboarding' into 2725-recruitme…
superhvarn Dec 14, 2024
82acc9e
#2725 fixing syntax
superhvarn Dec 14, 2024
3ad1c6a
#2725 prettier and linting
superhvarn Dec 14, 2024
6367553
#2713 merge conflcits
Aaryan1203 Dec 14, 2024
c08db2d
Merge pull request #3019 from Northeastern-Electric-Racing/#3012-crea…
Aaryan1203 Dec 14, 2024
8f37515
Merge branch 'feature/recruitment_and_onboarding' into 2713-team-type…
Aaryan1203 Dec 14, 2024
343ae91
#3001 set onboardingText hook and api
dreifusjack Dec 14, 2024
92185a8
3004 style changes
superhvarn Dec 15, 2024
4c0fc0a
#2713 creatred hook for image download
Aaryan1203 Dec 15, 2024
bd3a6e0
#2713 tsc
Aaryan1203 Dec 15, 2024
5287d59
#3004 small fix in the create modal
superhvarn Dec 16, 2024
3d3278e
Merge pull request #3017 from Northeastern-Electric-Racing/3004-move-…
walker-sean Dec 16, 2024
bcf9c40
#2713 fixed styling for useful links
Aaryan1203 Dec 16, 2024
a6c49f3
redid toggle checklist and testing
thaninbew Nov 25, 2024
808ec6d
ran prettier
thaninbew Dec 16, 2024
2e2aec5
#2713 created hook for multiple images
Aaryan1203 Dec 16, 2024
e79a95d
#2713 Fix Weird Text Squishing When Going back to home page
Peyton-McKee Dec 16, 2024
9f8e6d8
Merge branch '2713-team-type-componen' of https://github.com/Northeas…
Peyton-McKee Dec 16, 2024
b7034ca
#2173 Cleanup Home Page Context
Peyton-McKee Dec 16, 2024
c2cb337
#3010 rendering edit onboarding text modal
dreifusjack Dec 16, 2024
b60ffc6
#2725 using different hook for fetching images
superhvarn Dec 16, 2024
bbcaf9e
Merge branch 'feature/recruitment_and_onboarding' into 2725-recruitme…
superhvarn Dec 16, 2024
71a2156
#2725 linting and prettier
superhvarn Dec 16, 2024
681e8ef
#2725 changing useful links import
superhvarn Dec 17, 2024
d31786d
#2713 prettier
Aaryan1203 Dec 17, 2024
7944b83
#2725 removing unused file
superhvarn Dec 17, 2024
4fd7a2d
Merge pull request #2889 from Northeastern-Electric-Racing/2713-team-…
Aaryan1203 Dec 17, 2024
e48b771
#3008 created questions block for admin tools
Aaryan1203 Dec 17, 2024
becfde8
#3008 fixed width
Aaryan1203 Dec 17, 2024
1df8e54
#3008 deplot
Aaryan1203 Dec 17, 2024
f34422a
#3008 deplot
Aaryan1203 Dec 17, 2024
75ced28
put all the code under if block
thaninbew Dec 17, 2024
0885f91
implement cant check if not all subtasks checked
thaninbew Dec 17, 2024
1bcc453
Merge branch 'feature/recruitment_and_onboarding' into #2942onboardin…
thaninbew Dec 17, 2024
014dd39
#3010 minor modal changes
dreifusjack Dec 17, 2024
b8ecf05
#3010 modal sizing
dreifusjack Dec 17, 2024
83f78ea
Merge pull request #3067 from Northeastern-Electric-Racing/#3010-edit…
Aaryan1203 Dec 17, 2024
19e0719
#2725 merge conflicts
Aaryan1203 Dec 17, 2024
d78e892
#3008 created new contacts model for updated contacts
Aaryan1203 Dec 17, 2024
299689a
#2725 using the new hook in the guest page
superhvarn Dec 17, 2024
c4f5fff
#3008 styling
Aaryan1203 Dec 17, 2024
1a29318
#2725 weird prettier thing
superhvarn Dec 17, 2024
642ff2d
#3008 merge conflicts
Aaryan1203 Dec 17, 2024
f460ee8
#3008 changed input for routes
Aaryan1203 Dec 17, 2024
29c9d96
#3008 github tests
Aaryan1203 Dec 17, 2024
bb8cde5
#3008 combined migration files
Aaryan1203 Dec 18, 2024
edb554f
Merge pull request #3071 from Northeastern-Electric-Racing/#3008-ques…
Aaryan1203 Dec 18, 2024
78b1cfa
Merge branch 'feature/recruitment_and_onboarding' into 2725-recruitme…
superhvarn Dec 18, 2024
f65124f
#2725 typescript
superhvarn Dec 18, 2024
2ad4519
#2725 removing unecessary endpoint
superhvarn Dec 18, 2024
2344eb1
#2725 images are side by side
superhvarn Dec 18, 2024
1e3ef91
#3011 created checklist section for admin tools
Aaryan1203 Dec 19, 2024
210f137
#3011 fixed styling
Aaryan1203 Dec 19, 2024
d4090e0
#3011 linting and prettier
Aaryan1203 Dec 19, 2024
1c9d7f8
#3078 fixed onboarding navigation
Aaryan1203 Dec 19, 2024
b204b5f
Redeploy
Aaryan1203 Dec 19, 2024
e0890bf
#3078 linting
Aaryan1203 Dec 19, 2024
350375b
#2922 hook and api implmentation
dreifusjack Dec 19, 2024
2e38c0b
#2922 redesign of application table
dreifusjack Dec 19, 2024
3f75990
#2922 modal added form admin to update app link
dreifusjack Dec 19, 2024
0dac385
#2922 route typo
dreifusjack Dec 19, 2024
cc0c44a
#2922 column table design
dreifusjack Dec 19, 2024
2fcc412
#2922 moved edit icon
dreifusjack Dec 19, 2024
686edc5
#2922 invalid url handling
dreifusjack Dec 19, 2024
edd0529
#2811 progress bar
superhvarn Dec 20, 2024
8a01474
#2811 disabled button
superhvarn Dec 20, 2024
ac315ae
#2942 fixed toggle checklist logic
Aaryan1203 Dec 20, 2024
6efc2b1
#2942 added comment
Aaryan1203 Dec 20, 2024
8592de1
Merge pull request #3077 from Northeastern-Electric-Racing/#3011-admi…
Peyton-McKee Dec 20, 2024
d338b4c
Update onboarding.services.ts
thaninbew Dec 20, 2024
7490219
not passing yet
thaninbew Dec 20, 2024
bbcdb53
#2922 removed onError
dreifusjack Dec 20, 2024
f36b1af
#2922 url style changes
dreifusjack Dec 20, 2024
12a32d3
#2942 finished toggle checklist endopint
Aaryan1203 Dec 20, 2024
87747df
#3078 allow onboarding members to see setting tab
Aaryan1203 Dec 20, 2024
ae0fea0
Merge pull request #3079 from Northeastern-Electric-Racing/#3078-onbo…
Aaryan1203 Dec 20, 2024
d0ed611
Merge pull request #3080 from Northeastern-Electric-Racing/#2922-upda…
Aaryan1203 Dec 20, 2024
4e44240
Merge branch 'feature/recruitment_and_onboarding' into #2942onboardin…
Aaryan1203 Dec 20, 2024
cefa85e
2811 styling
superhvarn Dec 20, 2024
0727f33
Merge branch 'feature/recruitment_and_onboarding' into #2811-setup-on…
superhvarn Dec 20, 2024
acbbb18
#2811 merge conflicts
superhvarn Dec 20, 2024
6825143
#2811 random commit
superhvarn Dec 20, 2024
8281964
#2814 made checkboxes functional
Aaryan1203 Dec 20, 2024
9b683ea
#2811 fixed progress bar styling
Aaryan1203 Dec 20, 2024
41ef6c8
#2811 styling
Aaryan1203 Dec 20, 2024
534a239
#2814 tsc
Aaryan1203 Dec 20, 2024
d148c78
#2811 fixed flakey test
Aaryan1203 Dec 20, 2024
50e22da
#2816 progress
superhvarn Dec 20, 2024
8477bb8
#2811 changing prop names
superhvarn Dec 20, 2024
a85ec32
#2816 modal done
superhvarn Dec 21, 2024
62efe19
#2816 modal handles user promotion
superhvarn Dec 21, 2024
adab3eb
#2942 jdoc
Aaryan1203 Dec 21, 2024
75d7d7c
redeploy
Aaryan1203 Dec 21, 2024
2b409e6
#2814 fixed naming
Aaryan1203 Dec 21, 2024
37fc706
#2814 tsc
Aaryan1203 Dec 21, 2024
aee1e03
Merge branch 'feature/recruitment_and_onboarding' into 2725-recruitme…
superhvarn Dec 21, 2024
f0d1b0f
#2725 prettier
superhvarn Dec 21, 2024
62221dd
#2725 all tests pass???
superhvarn Dec 21, 2024
b064eb5
#2725 random commit
superhvarn Dec 21, 2024
bd515bc
#2725 linting
superhvarn Dec 21, 2024
fa8ebca
#3013 started create checklist modal
Aaryan1203 Dec 21, 2024
33cdb37
#2811 removed extra grids
Aaryan1203 Dec 21, 2024
3c4e573
Merge pull request #3084 from Northeastern-Electric-Racing/#2811-setu…
Aaryan1203 Dec 21, 2024
f778a64
#2942 updated service method
Aaryan1203 Dec 21, 2024
8734178
Merge pull request #3069 from Northeastern-Electric-Racing/#2942onboa…
Peyton-McKee Dec 22, 2024
11d55ef
Merge branch 'feature/recruitment_and_onboarding' into #2814-make-che…
Aaryan1203 Dec 22, 2024
276373c
#2814 unchecks all children checklists
Aaryan1203 Dec 22, 2024
f865f7d
#2814 tests
Aaryan1203 Dec 22, 2024
6e38ffb
#3013 merge conflicts
Aaryan1203 Dec 22, 2024
befd551
#3013 updated isOptional check
Aaryan1203 Dec 22, 2024
3ff4112
#2725 will linting pass?
superhvarn Dec 22, 2024
f2962ad
#2725 not using hooks conditionally
superhvarn Dec 22, 2024
b74cc89
#2725 error and loading indicator stuff
superhvarn Dec 22, 2024
88817b4
#3013 creating task works
Aaryan1203 Dec 22, 2024
e218cde
#3013 fixed modal styling
Aaryan1203 Dec 22, 2024
ec641c7
#3013 Edit checklist now works
Aaryan1203 Dec 22, 2024
c51181a
#3013 prettier
Aaryan1203 Dec 22, 2024
705f0aa
#3097 hook done
superhvarn Dec 22, 2024
61a1f42
Triggering CI tests
superhvarn Dec 22, 2024
8d7402e
#3097 alphabetical checklist groups except for general
superhvarn Dec 23, 2024
fc2310b
#2815 some experimentation
superhvarn Dec 24, 2024
0d8ad13
Merge branch 'feature/recruitment_and_onboarding' into #2816-ConfirmO…
superhvarn Dec 24, 2024
776c9b5
Merge pull request #2860 from Northeastern-Electric-Racing/2725-recru…
Peyton-McKee Dec 24, 2024
5255209
Merge pull request #3088 from Northeastern-Electric-Racing/#2814-make…
walker-sean Dec 24, 2024
6220d82
#2816 user promotion
superhvarn Dec 25, 2024
4b44e67
Merge branch 'feature/recruitment_and_onboarding' into #3097-delete-c…
superhvarn Dec 25, 2024
e3d0a53
#3097 merge conflicts
superhvarn Dec 25, 2024
ff47601
#3097 delete team type checklists
superhvarn Dec 26, 2024
f6b6deb
#2815 checklists are now reactive
superhvarn Dec 30, 2024
ae31997
#2815 merge conflicts
superhvarn Dec 30, 2024
fb5fb67
#2815 merge conflicts
superhvarn Dec 30, 2024
c0e4225
#2815 merge conflicts
superhvarn Dec 30, 2024
17b9e8f
#2815 prettier
superhvarn Dec 30, 2024
a1cb48c
#2815 linting
superhvarn Dec 30, 2024
d401008
Merge branch '#2815-Make-Progress-bar-reactive' of https://github.com…
superhvarn Dec 30, 2024
09110e6
#2815 typescript
superhvarn Dec 30, 2024
ac8253d
#3013 merge conflicts
superhvarn Jan 1, 2025
237450d
#3013 merge conflcits
superhvarn Jan 1, 2025
0c98536
#3097 cleaned up modal
Aaryan1203 Jan 2, 2025
25fe8b6
Merge pull request #3098 from Northeastern-Electric-Racing/#3097-dele…
Aaryan1203 Jan 2, 2025
fe42de7
Merge branch 'feature/recruitment_and_onboarding' into #2815-Make-Pro…
Aaryan1203 Jan 2, 2025
2cb1455
#2815 refactored progress bar code
Aaryan1203 Jan 2, 2025
d610951
#2815 prettier and liting
Aaryan1203 Jan 2, 2025
ce53fe3
#3013 merge
superhvarn Jan 2, 2025
ecc8c8c
#2816 optimizing hook
superhvarn Jan 2, 2025
a35b65b
#2815 fixed isOptional handeling
Aaryan1203 Jan 3, 2025
c0d3dc3
#3013 edit and create checklists and subtasks now work
Aaryan1203 Jan 3, 2025
c6a8e6a
#3013 removed ()
Aaryan1203 Jan 3, 2025
63ef38d
Merge pull request #3090 from Northeastern-Electric-Racing/#2816-Conf…
Peyton-McKee Jan 3, 2025
efccc3f
Merge branch 'feature/recruitment_and_onboarding' into #2815-Make-Pro…
superhvarn Jan 3, 2025
5ae1e43
#2815 linting and prettier
superhvarn Jan 3, 2025
a747f56
#3104 all checklists appear in admin tools
superhvarn Jan 4, 2025
5d3224e
#3104 getting rid of a random console log
superhvarn Jan 4, 2025
c4fdaa1
#3104 team checklists
superhvarn Jan 5, 2025
05d1663
#3013 cleaned up code
Aaryan1203 Jan 6, 2025
394d9b7
#3110 created select subteam homepage
Aaryan1203 Jan 6, 2025
e42ca34
Accepted page works
Aaryan1203 Jan 7, 2025
3ada368
#3110 prettier and linting
Aaryan1203 Jan 7, 2025
294a450
#3114 application link table back
superhvarn Jan 7, 2025
b79c4fb
Your commit message
superhvarn Jan 7, 2025
7f610b5
#3110 user gets added to team when accepting to join
Aaryan1203 Jan 8, 2025
cfbbd01
Merge pull request #3115 from Northeastern-Electric-Racing/#3114-rest…
Aaryan1203 Jan 9, 2025
e1150b1
#3110 onboarding flow works, still need to refactor
Aaryan1203 Jan 9, 2025
fa1e94a
#3110 used onboardingTeamType instead of completedOnboarding
Aaryan1203 Jan 9, 2025
010a925
#3110 removed completedOnboarding boolean
Aaryan1203 Jan 9, 2025
80b4d55
#3110 fixed flow for onbaording
Aaryan1203 Jan 9, 2025
cb75fc4
#3110 tests and prettier
Aaryan1203 Jan 9, 2025
8244752
#3110 linting
Aaryan1203 Jan 9, 2025
b358dd2
#3117 prettier
Aaryan1203 Jan 9, 2025
1febe1f
Merge pull request #3092 from Northeastern-Electric-Racing/#3013-crea…
Aaryan1203 Jan 9, 2025
a39ca39
#3104 reverting
superhvarn Jan 9, 2025
5ab8ade
#3110 merge conflicts
Aaryan1203 Jan 9, 2025
37213a2
#3117 fixed descriptions
superhvarn Jan 10, 2025
a40fb96
Your commit message here
superhvarn Jan 10, 2025
a05c93f
Merge pull request #3118 from Northeastern-Electric-Racing/#3117-fix-…
Aaryan1203 Jan 10, 2025
bc9feac
#3110 removed getTeamByTeamType endpoint:
Aaryan1203 Jan 10, 2025
6a83bbf
Merge pull request #3109 from Northeastern-Electric-Racing/#3104-Add-…
Peyton-McKee Jan 10, 2025
0a76297
#2815 merge conflicts
superhvarn Jan 10, 2025
539729b
#2815 typescript
superhvarn Jan 10, 2025
c3a682a
#2815 renamed usersTeamTypeChecklists to usersChecklists
Aaryan1203 Jan 11, 2025
85acc57
Merge pull request #3103 from Northeastern-Electric-Racing/#2815-Make…
Peyton-McKee Jan 13, 2025
2758b34
Merge remote-tracking branch 'origin/feature/recruitment_and_onboardi…
Peyton-McKee Jan 15, 2025
94f5854
Merge Conflicts
Peyton-McKee Jan 15, 2025
49d7794
#3110 Small Changes
Peyton-McKee Jan 15, 2025
4c9dcf5
Merge pull request #3111 from Northeastern-Electric-Racing/#3110-sele…
Peyton-McKee Jan 15, 2025
2fc8844
Merge branch 'develop' into feature/recruitment_and_onboarding
Peyton-McKee Jan 16, 2025
f129063
Merge Conflicts and dependency Updates
Peyton-McKee Jan 16, 2025
a7d4b3e
Update MIgration Files
Peyton-McKee Jan 16, 2025
9f19606
#3121 created new pr for bug fixes
Aaryan1203 Jan 17, 2025
0b233af
#3121 redeply
Aaryan1203 Jan 17, 2025
696fb87
#3121 Fix Tests
Peyton-McKee Jan 17, 2025
bde1892
#3121 Fix Frontend Tests and Date Adapter
Peyton-McKee Jan 17, 2025
268df1f
#3121 Linting Prettier TC Check
Peyton-McKee Jan 17, 2025
04b0560
#3121 redirect to pnm home page
Aaryan1203 Jan 18, 2025
e790ea5
Merge pull request #3123 from Northeastern-Electric-Racing/#3121-recr…
Aaryan1203 Jan 19, 2025
34203c7
Fixed announcement test
Aaryan1203 Jan 19, 2025
05b8636
Fixed team up image download
Aaryan1203 Jan 19, 2025
7c6ace2
Prettier
Aaryan1203 Jan 19, 2025
aa85e3b
Redeploy
Aaryan1203 Jan 19, 2025
9fe2433
redeploy
Aaryan1203 Jan 19, 2025
1d369f1
Fixed upload file checks
Aaryan1203 Jan 20, 2025
ae4516c
redeploy
Aaryan1203 Jan 20, 2025
edb17a3
skipped flakey test:
Aaryan1203 Jan 20, 2025
debf30a
Merge pull request #3126 from Northeastern-Electric-Racing/teamtype-b…
Peyton-McKee Jan 21, 2025
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
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,26 @@
"@types/react-dom": "17.0.1"
},
"dependencies": {
"@slack/events-api": "^3.0.1",
"mitt": "^3.0.1",
"react-hook-form-persist": "^3.0.0",
"typescript": "^4.1.5"
"typescript": "^5.7.3"
},
"devDependencies": {
"@babel/core": "^7.20.5",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^28.1.6",
"@types/node": "18.17.1",
"@typescript-eslint/eslint-plugin": "4.18.0",
"@typescript-eslint/parser": "4.18.0",
"concurrently": "^5.2.0",
"@types/jest": "^29.5.14",
"@types/node": "20.0.0",
"@typescript-eslint/eslint-plugin": "8.20.0",
"@typescript-eslint/parser": "8.20.0",
"concurrently": "^9.1.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-prettier": "^10.0.1",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-cypress": "latest",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"eslint-plugin-prettier": "^5.2.2",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"ts-node": "^10.9.1"
},
"eslintConfig": {
Expand Down
7 changes: 4 additions & 3 deletions src/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@prisma/client": "^5.7.1",
"@slack/events-api": "^3.0.1",
"@slack/web-api": "^6.7.2",
"@types/concat-stream": "^2.0.0",
"@types/cookie-parser": "^1.4.3",
Expand All @@ -36,15 +37,15 @@
"devDependencies": {
"@types/express-jwt": "^6.0.4",
"@types/jsonwebtoken": "^8.5.9",
"@types/node": "18.17.1",
"@types/node": "^20.0.0",
"@types/supertest": "^2.0.12",
"nodemon": "^2.0.16",
"prisma": "^5.7.1",
"supertest": "^6.2.4",
"ts-jest": "^26.2.0",
"ts-node": "^8.10.1",
"typescript": "^4.1.5",
"vitest": "^0.32.1"
"typescript": "^5.7.3",
"vitest": "^2.1.8"
},
"main": "index.ts",
"prisma": {
Expand Down
21 changes: 0 additions & 21 deletions src/backend/src/controllers/onboarding.controller.ts

This file was deleted.

110 changes: 110 additions & 0 deletions src/backend/src/controllers/onboarding.controllers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import { NextFunction, Request, Response } from 'express';
import OnboardingServices from '../services/onboarding.services';

export default class OnboardingController {
/* Checklists section */
static async getAllChecklists(req: Request, res: Response, next: NextFunction) {
try {
const checklists = await OnboardingServices.getAllChecklists(req.organization);
res.status(200).json(checklists);
} catch (error: unknown) {
return next(error);
}
}

static async getCheckedChecklists(req: Request, res: Response, next: NextFunction) {
try {
const checkedChecklists = await OnboardingServices.getCheckedChecklists(req.currentUser, req.organization);
res.status(200).json(checkedChecklists);
} catch (error: unknown) {
return next(error);
}
}

static async getUsersChecklists(req: Request, res: Response, next: NextFunction) {
try {
const checklists = await OnboardingServices.getUsersChecklists(req.currentUser.userId, req.organization);
res.status(200).json(checklists);
} catch (error: unknown) {
return next(error);
}
}

static async createChecklist(req: Request, res: Response, next: NextFunction) {
try {
const { name, descriptions, isOptional, teamId, teamTypeId, parentChecklistId } = req.body;
const checklist = await OnboardingServices.createChecklist(
req.currentUser,
name,
descriptions,
teamId,
teamTypeId,
parentChecklistId,
req.organization,
isOptional
);
res.status(200).json(checklist);
} catch (error: unknown) {
return next(error);
}
}

static async editChecklist(req: Request, res: Response, next: NextFunction) {
try {
const { checklistId } = req.params;
const { name, descriptions, isOptional, teamId, teamTypeId, parentChecklistId } = req.body;
const checklist = await OnboardingServices.editChecklist(
req.currentUser,
checklistId,
name,
descriptions,
teamId,
teamTypeId,
parentChecklistId,
req.organization,
isOptional
);
res.status(200).json(checklist);
} catch (error: unknown) {
return next(error);
}
}

static async deleteChecklist(req: Request, res: Response, next: NextFunction) {
try {
const { checklistId } = req.params;
await OnboardingServices.deleteChecklist(req.currentUser, checklistId, req.organization);
res.status(200).json({ message: 'Checklist deleted successfully' });
} catch (error: unknown) {
return next(error);
}
}

static async toggleChecklist(req: Request, res: Response, next: NextFunction) {
try {
const { checklistId } = req.params;

const updatedItem = await OnboardingServices.toggleChecklist(checklistId, req.currentUser, req.organization);
res.status(200).json(updatedItem);
} catch (error: unknown) {
return next(error);
}
}

static async downloadImage(req: Request, res: Response, next: NextFunction) {
try {
const { fileId } = req.params;

const imageData = await OnboardingServices.downloadImage(fileId);

// Set the appropriate headers for the HTTP response
res.setHeader('content-type', String(imageData.type));
res.setHeader('content-length', imageData.buffer.length);

// Send the Buffer as the response body
res.send(imageData.buffer);
} catch (error: unknown) {
return next(error);
}
}
}
44 changes: 44 additions & 0 deletions src/backend/src/controllers/organizations.controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,50 @@ export default class OrganizationsController {
}
}

static async updateApplicationLink(req: Request, res: Response, next: NextFunction) {
try {
const { applicationLink } = req.body;
const updatedOrganization = await OrganizationsService.updateApplicationLink(
req.currentUser,
applicationLink,
req.organization
);
res.status(200).json(updatedOrganization);
} catch (error: unknown) {
next(error);
}
}

static async setOnboardingText(req: Request, res: Response, next: NextFunction) {
try {
const { onboardingText } = req.body;
const updatedOrganization = await OrganizationsService.setOnboardingText(
req.currentUser,
req.organization,
onboardingText
);
res.status(200).json(updatedOrganization);
} catch (error: unknown) {
next(error);
}
}

static async updateOrganizationContacts(req: Request, res: Response, next: NextFunction) {
try {
const { contacts } = req.body;

const updatedOrganization = await OrganizationsService.updateOrganizationContacts(
req.currentUser,
req.organization,
contacts
);

res.status(200).json(updatedOrganization);
} catch (error: unknown) {
next(error);
}
}

static async getOrganizationImages(req: Request, res: Response, next: NextFunction) {
try {
const images = await OrganizationsService.getOrganizationImages(req.organization.organizationId);
Expand Down
26 changes: 24 additions & 2 deletions src/backend/src/controllers/teams.controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export default class TeamsController {
static async setTeamMembers(req: Request, res: Response, next: NextFunction) {
try {
const { userIds } = req.body;

const { teamId } = req.params;
// update the team with the input fields
const updateTeam = await TeamsService.setTeamMembers(req.currentUser, req.params.teamId, userIds, req.organization);
const updateTeam = await TeamsService.setTeamMembers(req.currentUser, teamId, userIds, req.organization);

// the updated team
res.status(200).json(updateTeam);
Expand Down Expand Up @@ -138,6 +138,28 @@ export default class TeamsController {
}
}

static async setOnboardingUser(req: Request, res: Response, next: NextFunction) {
try {
const { teamTypeId } = req.params;

const updatedTeamType = await TeamsService.setOnboardingUser(req.currentUser, teamTypeId, req.organization);

res.status(200).json(updatedTeamType);
} catch (error: unknown) {
next(error);
}
}

static async completeOnboarding(req: Request, res: Response, next: NextFunction) {
try {
await TeamsService.completeOnboarding(req.currentUser, req.organization);

res.status(200).json({ message: 'Successfully completed onboarding' });
} catch (error: unknown) {
next(error);
}
}

static async getSingleTeamType(req: Request, res: Response, next: NextFunction) {
try {
const { teamTypeId } = req.params;
Expand Down
5 changes: 5 additions & 0 deletions src/backend/src/prisma-query-args/auth-user.query-args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export const getAuthUserQueryArgs = (organizationId: string) =>
organizationId
}
}
},
onboardingTeamTypes: {
where: {
organizationId
}
}
}
});

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading