Revert "Revert "search: refactor SearchResult into CommitSearchResult and RepoSearchResult""
Created by: limitedmage
Reverts sourcegraph/sourcegraph#34840
Test plan
Build should pass
App preview:
Check out the client app preview documentation to learn more.