Commit 01d6244
committed
refactor: simplify user profile to username-only state
Removed the full user profile API endpoint and state management in favor
of a simpler username-only approach. The previous IUserProfile interface
contained both email and username, but only username was actively used
throughout the application.
Changes:
- Backend: removed /api/userprofile endpoint and userProfileApi service
- Frontend: renamed User/Profile store slice to User/Name
- API: removed IUserProfile interface from common DTO
- Simplified API response to return username string directly
- Updated all imports and selectors to use new username-only state
- Renamed actionCreators from userProfileActionCreators to usernameActionCreators
- Updated all tests to reflect new naming and structure
This reduces complexity and aligns the state structure with actual usage.
Assisted-by: Claude Sonnet 4.51 parent f87012b commit 01d6244
32 files changed
Lines changed: 154 additions & 446 deletions
File tree
- packages
- common/src/dto/api
- dashboard-backend/src
- __tests__
- devworkspaceClient
- __mocks__
- __tests__
- services
- __tests__
- types
- routes/api
- __tests__
- helpers/__mocks__
- dashboard-frontend/src
- Layout
- Header/Tools
- AboutMenu/__tests__
- UserMenu/__tests__
- __tests__
- StoreErrorsAlert
- __tests__
- services
- backend-client
- bootstrap
- __tests__
- store
- User
- Name
- __tests__
- Profile
- __mocks__
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 185 | | |
192 | 186 | | |
193 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 94 | | |
101 | 95 | | |
102 | 96 | | |
| |||
Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | 452 | | |
460 | 453 | | |
461 | 454 | | |
| |||
522 | 515 | | |
523 | 516 | | |
524 | 517 | | |
525 | | - | |
526 | 518 | | |
527 | 519 | | |
528 | 520 | | |
| |||
Lines changed: 0 additions & 41 deletions
This file was deleted.
0 commit comments