getappmap / getappmap/appmap-js
Single-class package lifelines show as the underlying class instead
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 18
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
Currently, a package Foo with one class inside it, Bar, will show as a lifeline colored as a package and with the label Foo. However it makes more sense to show it as the class Bar instead.
Current behavior example:

In this image, the desired behavior is for the lifeline for controller to instead be labeled with the class name TestCenterControllerV2 and colored with the Class color (dark blue).
When multiple classes are present in a package, the package should still be shown as-is, along with the + expansion control. That behavior should remain unchanged.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests, so start by locating the lifeline rendering logic that distinguishes packages from classes. Verify that a package containing one class uses the class label and color, while packages with multiple classes retain their existing label and + expansion control.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100