Skip to content

feat: show file path and instance count as devtools node tags instead of inline labels - #29

Merged
anton-gor-dev merged 1 commit into
mainfrom
feat/devtools-path-tags
Jun 7, 2026
Merged

anton-gor-dev merged 1 commit into
mainfrom
feat/devtools-path-tags

Conversation

@anton-gor-dev

Copy link
Copy Markdown
Member

Summary

  • Tree node labels previously embedded the full absolute file path inline (useFoo (/abs/path/to/file.ts)), which visually competed with the composable name — the actual focus when scanning the tree.
  • Composables Flat reused the same formatLabel helper to render an instance count (useFoo (3)), overloading its meaning.
  • Replaced both with tags (InspectorNodeTag-shaped badges) rendered next to the label: a neutral badge showing the file name for composable/component nodes, and a count badge for grouped entries in the flat view. formatLabel/format-label.ts is now unused and removed.

Closes #22

Test plan

  • pnpm vitest run packages/plugin passes
  • pnpm lint passes
  • pnpm plugin:build succeeds

@anton-gor-dev
anton-gor-dev merged commit c2680a6 into main Jun 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevTools: move file path out of node labels into tags

1 participant