Commit 9f857f3
fix(stack-service): normalize commit stats shape
Convert various backend commit stats shapes into a single frontend
format expected by the UI. Some responses use camelCase keys
(linesAdded/linesRemoved/filesChanged) while others use snake_case
(lines_added/lines_removed/files_changed). The code now detects the
shape and maps snake_case to the canonical camelCase shape before
storing in the response transform.
This prevents mismatched stat access and makes downstream code rely on
one consistent stats object.1 parent 3f2f7a6 commit 9f857f3
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1178 | 1193 | | |
1179 | 1194 | | |
1180 | 1195 | | |
1181 | | - | |
| 1196 | + | |
1182 | 1197 | | |
1183 | 1198 | | |
1184 | 1199 | | |
| |||
0 commit comments