diff --git a/web/src/lib/components/repo/pulls/PullCommitList.stories.svelte b/web/src/lib/components/repo/pulls/PullCommitList.stories.svelte index a701f60eb..60d14ac1f 100644 --- a/web/src/lib/components/repo/pulls/PullCommitList.stories.svelte +++ b/web/src/lib/components/repo/pulls/PullCommitList.stories.svelte @@ -79,7 +79,7 @@ {#snippet frame(args: Props)} - + {/snippet} @@ -162,6 +162,85 @@ {/snippet} + + ({ + ...commit, + commentCount: [2, 0, 7, 1][i], + stat: [ + { insertions: 4, deletions: 9 }, + { insertions: 12, deletions: 3 }, + { insertions: 148, deletions: 0 }, + { insertions: 1, deletions: 1 } + ][i] + })), + pipelineStatuses: Promise.resolve( + pipelinesByCommitHash(commits.map((commit) => commit.hash)) + ) + }} +> + {#snippet template(args)} + {@render frame(args)} + {/snippet} + + + + ({ + ...commit, + subject: [ + "web/components: rework the diff toolbar so the file tree, version picker and stat pill share one row without wrapping on narrow viewports", + "fix pierre hydrate leak on version switch by tearing the fill pool down inside the keyed block instead of on destroy", + "add interdiff change-id narrowing, including the url slot, the row focus handling and the fallback for repos without change ids", + commit.subject + ][i], + commentCount: [2, 0, 7, 1][i], + stat: [ + { insertions: 4, deletions: 9 }, + { insertions: 12, deletions: 3 }, + { insertions: 148, deletions: 0 }, + { insertions: 1, deletions: 1 } + ][i] + })), + pipelineStatuses: Promise.resolve( + pipelinesByCommitHash(commits.map((commit) => commit.hash)) + ) + }} +> + {#snippet template(args)} + {@render frame(args)} + {/snippet} + + + + ({ + ...commit, + commentCount: [2, 0, 7, 1][i], + stat: [ + { insertions: 4, deletions: 9 }, + { insertions: 12, deletions: 3 }, + { insertions: 148, deletions: 0 }, + { insertions: 1, deletions: 1 } + ][i] + })), + pipelineStatuses: Promise.resolve( + pipelinesByCommitHash(commits.map((commit) => commit.hash)) + ) + }} +> + {#snippet template(args)} + {@render frame(args)} + {/snippet} + + {} } }} @@ -182,7 +261,7 @@ {#snippet template(args)} - + {#snippet template(args)} - +