New re-usable component for Blob File Header
Technical discover: #196712 (comment 271152337)
The main candidates for this component to be re-used between:
View | Screenshot |
---|---|
Snippet | |
File | |
Diff | |
etc. |
From the screenshots, it's obvious that Snippet's File header component has much more common with the File header than Diff. The File header in Diff View adds additional functionality, is already an existing component tightly coupled with the matter of diffing. I assume, there might be other use cases for this component so it might be a good candidate for re-usability as well.
The component is very connected to the way we present information in GitLab, so I don't think this is a good candidate for gitlab-ui.
- New
shared
component in GitLab itself with slots for filling in content. Preferably with the control of used components for the buttons on the right to make the look consistent. - Why not to re-use
app/assets/javascripts/diffs/components/diff_file_header.vue
as suggested by #34822 (closed)? See relevant part of the technical discovery.
Edited by Denys Mishunov