Commit 8c213be
committed
🤖 refactor: eliminate project prop drilling via ProjectContext
ProjectSidebar, LeftSidebar, and App.tsx now get project operations from
ProjectContext instead of passing through props:
- ProjectSidebar uses useProjectContext() for project CRUD and secrets
- LeftSidebar no longer passes project props to ProjectSidebar
- App.tsx no longer passes project callbacks to LeftSidebar
Eliminated prop drilling for:
- projects (Map)
- onAddProject / onRemoveProject
- onGetSecrets / onUpdateSecrets
This completes the prop drilling elimination - workspace operations come from
WorkspaceContext, project operations come from ProjectContext.1 parent 3fcb45f commit 8c213be
3 files changed
+11
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
533 | | - | |
534 | 532 | | |
535 | 533 | | |
536 | 534 | | |
537 | 535 | | |
538 | | - | |
539 | | - | |
540 | 536 | | |
541 | 537 | | |
542 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
16 | | - | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 20 | | |
29 | 21 | | |
30 | 22 | | |
| |||
66 | 58 | | |
67 | 59 | | |
68 | 60 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 61 | + | |
75 | 62 | | |
76 | 63 | | |
77 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
164 | | - | |
165 | | - | |
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
169 | 165 | | |
170 | 166 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 167 | | |
175 | 168 | | |
176 | 169 | | |
177 | 170 | | |
178 | | - | |
179 | | - | |
180 | 171 | | |
181 | 172 | | |
182 | 173 | | |
| |||
189 | 180 | | |
190 | 181 | | |
191 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments