Skip to content

Make repository analytics graphs responsive

Miranda Fluharty requested to merge 362647-resizeable-repo-analytics-graphs into master

What does this MR do and why?

For #362647 (closed)

This MR makes the graphs on the project-level and group-level repository analytics pages respond to changes in viewport width by passing the responsive attribute to them.

Screenshots or screen recordings

before after
project Screen_Recording_2022-07-26_at_21.18.33 Screen_Recording_2022-07-26_at_21.02.38
group Screen_Recording_2022-07-26_at_21.21.39 Screen_Recording_2022-07-26_at_21.03.52

How to set up and validate locally

Project-level:

  1. git checkout master and navigate to a project
  2. in the sidebar, choose Analytics => Repository
  3. resize the browser, observe that the graphs are not responsive 🐛
  4. git checkout 362647-resizeable-repo-analytics-graphs
  5. refresh, resize the browser, now the graphs should be responsive

Group-level:

  1. have a GitLab Premium licence
  2. git checkout master and navigate to a group
  3. repeat 2.-5. from the project-level instructions

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Miranda Fluharty

Merge request reports