search: refactor SearchResult into CommitSearchResult and RepoSearchResult
Created by: limitedmage
Part of #34237 (closed)
In the past, SearchResult
supported a number of different search result types, but currently, SearchResult
has been edited to the point that it only represents two kinds of results: repo and diff/commit. This refactor makes that more obvious by splitting it up into two separate components and eliminating all the conditional code. Any code in common (the title in particular) may be addressed in future work on #34237 (closed).
Test plan
- All existing tests should continue passing. No visual or behavior changes should happen.
App preview:
Check out the client app preview documentation to learn more.