Skip to content

Code Insights: Improve UX of the repositories field at the dynamic insight example section

Created by: vovakulikov

This is follow up for the https://github.com/sourcegraph/sourcegraph/pull/31115

Background

At the moment the initial value is github.com/sourcegraph/sourcegraph and while we're fetching the real repo this initial value will be applied instead. In case of slow fetching of the repo with TODOs, we will show an error message below the repo field.

Possible improvements for the repo field fetching UX:

  • Render the repo field without value but with loading state and without error message
  • Put TODO repository URL when it has been fetched
  • In case a user starts editing the field before we load the TODOs repo we should cancel the request and apply user input instead.