Blob refactor: Display LFS badge when LFS enabled
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 |
---|---|
How to set up and validate locally
- Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
- Install LFS on the repo
git lfs install
- Enable LFS tracking
git lfs track "*.iso"
-
Add a file with a type that is being tracked by git LFS (e.g.
my_file.iso
) -
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jacques Erasmus