diff --git a/resources/js/components/commit-search-results.tsx b/resources/js/components/commit-search-results.tsx
index e653ba29c..7c0c8723d 100644
--- a/resources/js/components/commit-search-results.tsx
+++ b/resources/js/components/commit-search-results.tsx
@@ -2,7 +2,6 @@ import type { ReactNode } from 'react';
import { CommitCard } from '@/components/commit-card';
import { CommitSkeleton, EmptyFeed } from '@/components/commit-feed';
import { GraphCanvas } from '@/components/graph-canvas';
-import { authorLaneColor } from '@/lib/utils';
import type { Commit } from '@/types';
export type SearchResultSet = { term: string; commits: Commit[] };
@@ -56,23 +55,13 @@ export function SearchResults({
) : (
- {results.commits.map((commit, index) => {
- const previous = results.commits[index - 1];
-
- return (
-
- );
- })}
+ {results.commits.map((commit) => (
+
+ ))}
)}
diff --git a/tests/Unit/StandaloneCommitGraphs.test.tsx b/tests/Unit/StandaloneCommitGraphs.test.tsx
index f238cf40f..86217199e 100644
--- a/tests/Unit/StandaloneCommitGraphs.test.tsx
+++ b/tests/Unit/StandaloneCommitGraphs.test.tsx
@@ -158,7 +158,7 @@ test('keeps the graph of each report apart, even when two people report the same
assert.equal(html.match(/data-test="graph-canvas"/g)?.length, 2);
});
-test('ends the chain of search results on a dot below the last one', async () => {
+test('ends each search result on its own dot, as in a feed', async () => {
const html = await render(() => (
/>
));
- assert.equal(html.match(/data-test="rail-end-dot"/g)?.length, 1);
- // In the last card: past everything the second one shows.
- assert.ok(
- html.indexOf('data-test="rail-end-dot"') >
- html.lastIndexOf('Commit two'),
- );
+ assert.equal(html.match(/data-test="rail-end-dot"/g)?.length, 3);
});
test('draws related commits in a canvas of their own, chained one after the other and ending on a dot below the last one', async () => {