[go: up one dir, main page]

Skip to content

Combine streaming and pagination on the blame page

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Right now file blame page supports both paginated and full (streaming) versions of the page. In order to deliver best possible UX we should strive to leverage the profits of both streaming and pagination approaches with minimal impact to the user journey.

In order to do that we should combine streaming and pagination approaches on the page. Here are the steps required to do so:

  1. Change the behaviour when 'Show full blame' button is clicked: instead of reloading the page with the streaming enabled start streaming right away (continue on the cutoff line) and hide the pagination controls. The same applies for next pages: for example if the page is 2 and the 'Show full blame' button was clicked continue streaming starting with page 3 and so on until the rest of the blame.
  2. Anchor links for streaming version should automatically force streaming. For example if we're on a page 1 with 1000 lines per page and the linked line is L2000 then the streaming should start immediately once the page is loaded.

This should deliver both:

  1. Good perceived performance: paginated version is lighter than the full blame)
  2. UX improvements: no big intermediately step (page reload) is required to see the full blame
Edited by 🤖 GitLab Bot 🤖