Commit 1d7393b
authored
fix(stack-service): normalize commit stats shape (#12370)
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 a75d4f6 commit 1d7393b
File tree
2 files changed
+3
-1
lines changed- apps/desktop/src/lib/stacks
- crates/but-core/src/diff
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| 1178 | + | |
1178 | 1179 | | |
1179 | 1180 | | |
1180 | 1181 | | |
1181 | | - | |
| 1182 | + | |
1182 | 1183 | | |
1183 | 1184 | | |
1184 | 1185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments