Refactor snippet related components for reusability: diff_content and diff_file_header

Description

Here's the related technical discovery.

UPDATE: The separate issue with the technical discovery has been created. Please keep the discussion on the discovery there instead of the original comment.

As we refactor snippets into vue, there are some components across the codebase which are almost reusable, but not quite. Let's refactor what we can so that the snippets components can reuse whatever is necessary, instead of introducing duplicated code.

What components?

We want to make sure the following components are reusable:

  • Reaction component Moved to its own issue: #55650 (closed)

  • File component:

    • app/assets/javascripts/diffs/components/diff_content.vue
    • app/assets/javascripts/diffs/components/diff_file_header.vue

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited Jan 19, 2023 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading