Skip to content

search ui: suggesting recent files to users from git history

Warren Gifford requested to merge ak/homeRecentFilesPanel into main

Created by: AdhamKhalifa

closes #37362 (closed)

Description

This feature hypothesizes that showing recently modified files using git history of a user will result in more interaction with the panels, which will help current and new users when they use Sourcegraph.

This work will only affect logged-in users and it goes through a feature flag. The feature includes the following:

-a list of files recently opened or used in repos will be suggested and made visible to the logged-in user. This will be based on the user’s git history. If the user has git history, it will check the recently modified files through git. gitFilesDisplay is where the files are rendered. It creates a list of the files based on the gitSet list and creates a URL for each file and points to the file through git. The file is shown in the form of (git repo’s title > recently modified file’s file path).

Test plan

The algorithm will be tested by trying the case when the user has no git history, and when the user has git history but doesn't have any recently modified files.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading