Clearly display last sync time on repository and file views #17064
Description
Details
Several users have reported questions about the last update time of the repositories and files in their search results. See this Slack thread for a collection of issues:
https://sourcegraph.slack.com/archives/C0HMGV90V/p1609797067109900
Users generally:
- want to know if the file they are looking at in Sourcegraph is current with its status in their code host
- want to know if the repository they are viewing was cloned or synced after their last commit
In the case of the repository or file being out of sync, the user:
- would like to know when the repository will next be synced or alternatively be able to trigger a sync
Proposed solution
This information currently exists on the repository/settings/mirroring and cloning page, but it is only viewable by site admins.
Adding the value from the Last refreshed: time on the file view and on the repository home page will give users more confidence in their search results or the ability to spot an issue with their results.
Consider renaming Last refreshed: to 'Last synced' to be consistent with how this functionality is discussed in the system status notifications.
Additionally, we should consider providing the user with a way to manually trigger a sync. This would reduce friction around our inability to state when the next sync time will occur and facilitate the resolution of their current search requirements.
Type of debt
- UX - inconsistent experiences throughout the product that negatively impacts the learnability and integrity of the flow
Estimated amount of work
1 day design?
1 day development?
Areas affected
- Repository pages
- File view pages
Impact
Affects the user's trust in the accuracy of the data they are viewing
Urgency
If the resolution is to display the sync time only, this could be addressed in 1 to 2 releases.