LearnNewsExamplesServices
Frontmatter
id8534
titlePortal Ticket Timeline: Render Labels as Badges
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 11, 2026, 2:04 AM
updatedAtJan 11, 2026, 2:12 AM
githubUrlhttps://github.com/neomjs/neo/issues/8534
authortobiu
commentsCount1
parentIssue8398
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 11, 2026, 2:12 AM

Portal Ticket Timeline: Render Labels as Badges

Closed v11.20.0 enhancementai
tobiu
tobiu commented on Jan 11, 2026, 2:04 AM

Enhance the ticket timeline rendering to display GitHub labels as colored badges instead of plain code blocks.

Current Behavior: Timeline events like "added the bug label" render the label name as a generic <code>bug</code> block.

Desired Behavior: Detect label-related events and render the label using the standard <span class="neo-badge"> component, applying the correct background and text color from the labels store. This improves visual scanning and consistency with the ticket header.

Implementation Details:

  • Modify Portal.view.news.tickets.Component -> renderTimeline.
  • Intercept "added the" / "removed the" events.
  • Extract the label name from backticks.
  • Lookup the label color in the labels store.
  • Generate the badge HTML.
tobiu added the enhancement label on Jan 11, 2026, 2:04 AM
tobiu added the ai label on Jan 11, 2026, 2:04 AM
tobiu referenced in commit 967c581 - "feat: Render labels as badges in timeline & refactor event icons (#8534)" on Jan 11, 2026, 2:10 AM
tobiu assigned to @tobiu on Jan 11, 2026, 2:11 AM
tobiu
tobiu Jan 11, 2026, 2:11 AM

Input from Gemini 3 Pro:

✦ I have implemented the label badges in the timeline and refactored the event icon logic.

  • Labels in "added/removed" events now render as colored badges.
  • Refactored the if/else event detection logic to use a cleaner array-based lookup (Map-like approach).
  • Reused the getLabelBadgeHtml helper for consistency.
tobiu closed this issue on Jan 11, 2026, 2:12 AM
tobiu added parent issue #8398 on Jan 11, 2026, 2:13 AM