devtools icon indicating copy to clipboard operation
devtools copied to clipboard

[UI] Enhance interaction of Module Import Relationships

Open Gianthard-cyh opened this issue 11 months ago • 1 comments

Clear and concise description of the problem

In packages/vite/src/app/components/data/ModuleImportRelationships.vue, there is currently a hard limitation: when the number of links exceeds MAX_LINKS, the extra links will not be rendered at all.

https://github.com/user-attachments/assets/5a65fd77-89db-485d-b5fb-8785a00e4fe7

Suggested solution

Introduce a scrollable container to:

  • Limit the number of visible modules and links to MAX_LINKS at a time.
  • Still allow users to scroll through the full list of modules.
  • Dynamically render only the currently visible MAX_LINKS connections.

A small demo video has been provided to showcase the proposed solution, and an initial implementation is available in #143.

Currently, there are still some known performance and layout issues that require further optimization. Before continuing with deeper improvements, I would appreciate feedback and confirmation from the maintainers to ensure that this solution aligns with the project's overall design and expectations.

Once approved, I will proceed with further optimization and refinement.

https://github.com/user-attachments/assets/d6da1e23-af48-437a-8d5f-5c5175659290

Alternative

No response

Additional context

No response

Validations

  • [x] Follow our Code of Conduct
  • [x] Read the Contributing Guide.
  • [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Gianthard-cyh avatar Dec 08 '25 08:12 Gianthard-cyh

Closed. See (https://github.com/vitejs/devtools/pull/143#issuecomment-3644901667)

Gianthard-cyh avatar Dec 12 '25 06:12 Gianthard-cyh