sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.27k forks source link

Clearly display last sync time on repository and file views #17064

Open rrhyne opened 3 years ago

rrhyne commented 3 years ago

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:

In the case of the repository or file being out of sync, the user:

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

Estimated amount of work

1 day design? 1 day development?

Areas affected

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.

github-actions[bot] commented 3 years ago

Heads up @joelkw @felixfbecker @jeanduplessis - the "team/web" label was applied to this issue.

github-actions[bot] commented 3 years ago

Heads up @alicjasuska @felixfbecker @umpox @valerybugakov @5h1ru @pdubroy - the "team/frontend-platform" label was applied to this issue.

taylorsperry commented 2 years ago

Hey, @rrhyne, FPT is going through backlog UI issues to see what might be worth picking up for core workflow improvements. Sanity check on this, since I know it's pretty old:

  1. We currently display the time of last sync in search results (on hover):

    Screen Shot 2022-07-21 at 1 36 08 PM
  2. We do not show the time of last sync on the repo home page (I don't see it here)

    Screen Shot 2022-07-21 at 1 37 25 PM
  3. And we do not show the time of last sync on a file page (I don't see it here)

    Screen Shot 2022-07-21 at 1 38 18 PM
  4. We do not have a way to trigger a sync or see when the next sync will happen.

If (if!) this is something that we were to pick up (we're working with @benvenker to prioritize), we would need design input to take on 2, 3, and 4. What would be the level of effort for your group?

rrhyne commented 2 years ago

Small level of effort. Return is trust. It isn't the information that is used often, but when it counts, it's unavailable in the product.

rrhyne commented 2 years ago

cc @almeidapaulooliveira

umpox commented 2 years ago

One another thing I'd add as a UI papercut (maybe a different issue):

The last synced icon is currently focusable in the search results. I would say given this isn't essential information we should make it non-focusable. It means that it would become a lot smoother to tab through search results without the tab order directing from one side of the page to the next

rrhyne commented 2 years ago

I believe that data might actually be removed in the future. We'll see how the simplification project goes.