Skip to content

Draft: Update ref switcher

Sam Beckham requested to merge update-ref-switcher into master

TODO:

  • Fix the QA tests
  • Add a walkthrough

What does this MR do and why?

This MR updates the ref switcher to be a Vue Application. The current ref switcher is a rails partial form with some javascript spice.

Here are the routes that include it:

  • app/views/projects/blob/_breadcrumb.html.haml
  • app/views/projects/commits/show.html.haml
  • app/views/projects/find_file/show.html.haml
  • app/views/projects/graphs/charts.html.haml
  • app/views/projects/graphs/show.html.haml
  • app/views/projects/settings/ci_cd/_badge.html.haml
  • app/views/projects/tree/_tree_header.html.haml

This is WIP as I'm not sure where the best place to put the JS is and I still need to test the routes more thoroughly. The test suite is also highly likely to fail.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Sam Beckham

Merge request reports