Commit 288c413
54 account create/edit form (#63)
* feat: created form with status, program name, launch date, region, students, instruments, and language input
* feat: added test route for creating program form
* feat: functionality to add program directors and curriculum links, fixed state update on DOM
* chore: clean up comments and remove test route
* chore: add close and submit button with proper spacing
* fix: moved test route above root and catch all routes
* fix: removes localhost call and uses backend context instead to fetch program directors
* fix: removed dummy data in curriculum links
* feat: adds route to get program director names (joins with gcf_user table)
* fix: corrects column name in select statement for program director name route
* fix: added table name in order by statement
* fix: updated programDirectors type as list of director objects, now displayed by first and last name
* fix: removed colons in placeholders
* fix: prevents selection of duplicate program directors
* fix: fetches region data from db instead of hardcoded regions
* docs: Added TODO in front of comments
* fix: turns instruments into a dropdown with data from database
* fix: enforced date and number input for date and # of students
* fix: changed file from tsx to jsx, removed type annotations
* fix: removes duplicates from instrument dropdown
* initial component structure
* Got Authcontext working
* Basic autofill working
* feat: updates to use drawer component
* feat: adds dropdown for user type and autopopulates programs for program directors
* feat: autopopulates role type and hides program field for non-program directors
* feat: skeleton handlesubmit method for save logic
* feat: adds create user logic
* feat: uses firebase admin sdk to create new users without auto login issue
* fix: updated create user connected to new backend route
* adds new test routes
* fix: deleted duplicate create user post request
* feat: update existing user
* feat: added autofill for email
* feat: removes selected program tag and adds conditional rendering placeholder for password field
* chore: removes console.log statements
* Update lock files after dependency reinstall
* fix: deleted button from program form
* fix: deletes duplicate routes
* fix: connects accountform to account.jsx by passing in targetUser as prop, deletes redundant if statements/useEffects, implements authContext for current user
* feat: adds onSave prop to accountform to call every time user is updated/created, so account table automatically shows displayed changes by separating fetchData from useEffect
* feat: fetch email in table first
* feat: region assignment flow
* feat: restrict regional director account creation
---------
Co-authored-by: Shayan Halder <shayanhalder2389@gmail.com>
Co-authored-by: IsaacNguyen <isaachugh33@gmail.com>
Co-authored-by: Lawrence Zhou <zhoulh@uci.edu>
Co-authored-by: Isaac Nguyen <isaachn@uci.edu>1 parent b64e4c2 commit 288c413
10 files changed
Lines changed: 3068 additions & 3012 deletions
File tree
- client/src
- components
- accounts
- dashboard
- server/routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
81 | 41 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 42 | | |
| 43 | + | |
87 | 44 | | |
88 | 45 | | |
89 | 46 | | |
| |||
93 | 50 | | |
94 | 51 | | |
95 | 52 | | |
96 | | - | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 34 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
65 | 63 | | |
| 64 | + | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
| 113 | + | |
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
0 commit comments