feat: display prompt names as badges in report list view#258
Merged
devversion merged 2 commits intoangular:mainfrom Mar 16, 2026
Merged
Conversation
devversion
reviewed
Feb 16, 2026
| @if (group.promptNames.length) { | ||
| <ul class="status-badge-group prompt-names"> | ||
| @for (name of group.promptNames; track name) { | ||
| <li class="status-badge neutral">{{ name }}</li> |
Member
There was a problem hiding this comment.
Couldn't this mean that 100+ prompts are shown as badges on the report? Not sure this is worth doing?
Contributor
Author
There was a problem hiding this comment.
@devversion what do you think of the new version?
c036f46 to
0aa22d8
Compare
Add promptNames field to RunGroup interface and collect prompt names during report grouping. Display them as neutral status badges in the report list UI with backward compatibility for older groups.json files.
0aa22d8 to
643909b
Compare
Extract prompt name badges into a dedicated `PromptBadgeList` component that automatically truncates overflow badges to a single row and shows a "+N more" toggle. Uses ResizeObserver and afterNextRender to measure badge layout after each render cycle and reacts to container width changes. - Add `PromptBadgeList` component with overflow detection via DOM measurement - Hide the container during measurement to avoid layout flicker - Show "Show less" / "+N more" toggle badge when names overflow one row - Move prompt-names styles from report-list.scss into the component - Replace inline badge list in report-list.html with the new component
devversion
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add promptNames field to RunGroup interface and collect prompt names
during report grouping. Display them as neutral status badges in the
report list UI with backward compatibility for older groups.json files.