Skip to content

Blob refactor: Display LFS badge when LFS enabled

Jacques Erasmus requested to merge add-lfs-badge into master

What does this MR do and why?

This MR ensures that the LFS badge is displayed when LFS is enabled. We also moved the fileSize indicator to after the clipboard button to match what we have in production.

Note, changes in this MR are behind the :refactor_blob_viewer feature flag.

Screenshots or screen recordings

before after
Screenshot_2021-12-21_at_11.24.42 Screenshot_2021-12-21_at_11.19.42

How to set up and validate locally

  1. Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
  1. Install LFS on the repo
git lfs install
  1. Enable LFS tracking
git lfs track "*.iso"
  1. Add a file with a type that is being tracked by git LFS (e.g. my_file.iso)

  2. Open the file

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 Jacques Erasmus

Merge request reports

Loading