Track which components use other components

Created on 30 January 2024, 5 months ago

Description:

This feature aims to provide developers with a clearer understanding of how components are integrated throughout a Drupal site.

Feature Details:

  • Component Usage Identification: The key function of this feature would be to identify which templates utilize specific components. This information could assist developers when updating components, by highlighting which areas of the site might be impacted.
  • Dependency Mapping: A secondary feature would be to map dependencies between components. If a component relies on another, this connection should be identifiable, aiding in the comprehension of the site's modular structure.
  • Visualization Tools: A user-friendly interface for viewing the relationships and usage of components would be beneficial, possibly through reports or visual diagrams. Perhaps we could start by adding this information in the component details page.

Benefits:

  • This feature could streamline the process of maintaining and updating components by providing clear insights into where and how they are used.
  • Better understanding of component dependencies could reduce the likelihood of inadvertently disrupting site functionality when making changes.
  • This could assist in planning future development by offering a clearer view of the site's architectural dependencies.

Implementation Notes:

Component usage can be detected in Twig templates. However we should have a special case for components embedding other components (and backreferences as well).

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

e0ipso Can Picafort

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024