Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .beans/beans-qfbd--show-type-in-beans-show-and-tui-details-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# beans-qfbd
title: Show type in beans show and TUI details view
status: completed
type: feature
priority: normal
created_at: 2026-02-11T13:17:11Z
updated_at: 2026-02-11T13:20:50Z
---

Add the type field (bug, feature, epic, etc.) to the display in both `beans show` command and TUI details view.

Reference: GitHub issue #45

## Tasks

- [x] Add type to `beans show` header display
- [x] Add type to TUI details view (if not already present) - Already present!
- [x] Test both displays show type correctly
- [x] Commit and create PR
12 changes: 12 additions & 0 deletions cmd/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ func showStyledBean(b *bean.Bean) {
header.WriteString(ui.ID.Render(b.ID))
header.WriteString(" ")
header.WriteString(ui.RenderStatusWithColor(b.Status, statusColor, isArchive))

// Display type
if b.Type != "" {
typeCfg := cfg.GetType(b.Type)
typeColor := "gray"
if typeCfg != nil {
typeColor = typeCfg.Color
}
header.WriteString(" ")
header.WriteString(ui.RenderTypeWithColor(b.Type, typeColor))
}

if b.Priority != "" {
priorityCfg := cfg.GetPriority(b.Priority)
priorityColor := "gray"
Expand Down