diff --git a/src/global.d.ts b/src/global.d.ts index 36329a5..982f644 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -59,7 +59,7 @@ interface VisLine { } interface Commit { - i: number + index_in_graph_output: number vis_lines: VisLine[] branch?: Branch hash: string diff --git a/web/src/utils/log-parser.js b/web/src/utils/log-parser.js index a25de62..18200fb 100644 --- a/web/src/utils/log-parser.js +++ b/web/src/utils/log-parser.js @@ -360,7 +360,7 @@ function parse(log_data, branch_data, stash_data, separator, curve_radius) { } } commits.push({ - i: Number(row_no_s), + index_in_graph_output: Number(row_no_s), vis_lines: Object.values(densened_vis_line_by_branch_id) // Leftmost branches should appear later so they are on top of the rest .sort((a, b) => (b.xcs || 0) + (b.xce || 0) - (a.xcs || 0) - (a.xce || 0)), diff --git a/web/src/views/CommitDetails.vue b/web/src/views/CommitDetails.vue index ac9509a..29f718c 100644 --- a/web/src/views/CommitDetails.vue +++ b/web/src/views/CommitDetails.vue @@ -85,7 +85,8 @@ Details

- Full hash: {{ commit.hash_long }} + Full hash: {{ commit.hash_long }}
+

diff --git a/web/src/views/MainView.vue b/web/src/views/MainView.vue index 69aee60..4b5f6c4 100644 --- a/web/src/views/MainView.vue +++ b/web/src/views/MainView.vue @@ -60,13 +60,21 @@
- +