adding assignee to tui

This commit is contained in:
viljarb
2026-03-11 18:40:21 +01:00
parent a30c822529
commit c72b15f721
8 changed files with 116 additions and 19 deletions

View File

@@ -66,11 +66,19 @@ func (i *IssueDetail) refreshContent() {
styles.LabelStyle.Render("Priority:") + styles.ValueStyle.Render(priorityCodeName(i.issue.Priority)),
)
assignee := i.issue.Assignee
if assignee == "" {
assignee = "—"
}
assigneeRow := styles.RowStyle.Render(
styles.LabelStyle.Render("Assignee:") + styles.ValueStyle.Render(assignee),
)
descLabel := styles.LabelStyle.Render("Description:")
descContent := styles.ValueStyle.Render(i.issue.Description)
var parts []string
parts = append(parts, titleRow, idRow, typeRow, statusRow, priorityRow, descLabel, descContent)
parts = append(parts, titleRow, idRow, typeRow, statusRow, priorityRow, assigneeRow, descLabel, descContent)
// Comments section
commentsLabel := styles.LabelStyle.Render("Comments:")