using codenames for priority levels mapped to digits

This commit is contained in:
viljarb
2026-02-24 11:19:01 +01:00
parent 970c735fa4
commit a8aada1646
7 changed files with 124 additions and 18 deletions

View File

@@ -1,8 +1,6 @@
package dashboard
import (
"fmt"
"github.com/LazyBachelor/LazyPM/internal/models"
"github.com/LazyBachelor/LazyPM/pkg/tui/styles"
"github.com/charmbracelet/bubbles/viewport"
@@ -56,7 +54,7 @@ func (i *IssueDetail) refreshContent() {
)
priorityRow := styles.RowStyle.Render(
styles.LabelStyle.Render("Priority:") + styles.ValueStyle.Render(fmt.Sprintf("%d", i.issue.Priority)),
styles.LabelStyle.Render("Priority:") + styles.ValueStyle.Render(priorityCodeName(i.issue.Priority)),
)
descLabel := styles.LabelStyle.Render("Description:")