RevisionsPopover: Refactor and support speculative results
Created by: umpox
This PR:
- Refactors
RevisionsPopover
away fromFilteredConnection
to useuseConnection
and genericConnection
UI components. - Adds support for displaying 'speculative' results alongside branch nodes. This is to support ancestry branch references (e.g.
branch^1
) and is required for https://github.com/sourcegraph/sourcegraph/issues/22677. This is currently not enabled but will be for the compare page - Fixes a bug where the
RevisionsPopover
relied on the location changing to be dismissed, meaning clicking a node that does not change location would not hide the popover. This is just by attaching aonClick
prop to the rendered nodes. This prop will also be used to fire other side effects for future work, likeeventLogger
. - Adds
RevisionsSelector
to Storybook, which should help catch a lot of bugs that we've previously missed due to us now having visual regression tests. - General code/docs/redesign cleanup across components
Part of https://github.com/sourcegraph/sourcegraph/issues/22677
Follow on PR to enable this on repository compare page: https://github.com/sourcegraph/sourcegraph/pull/23977