fix: change priority code names to match CLI and TUI interfaces

This commit is contained in:
Robin Olsen
2026-03-10 21:58:31 +01:00
parent beb182e3de
commit 3f3767fde7
3 changed files with 12 additions and 12 deletions

View File

@@ -91,15 +91,15 @@ templ TypeBadge(issueType models.IssueType) {
templ PriorityBadge(priority int) {
switch priority {
case 0:
<span class="badge badge-error badge-sm">Critical</span>
<span class="badge badge-ghost badge-sm">Irrelevant</span>
case 1:
<span class="badge badge-warning badge-sm">High</span>
case 2:
<span class="badge badge-info badge-sm">Medium</span>
case 3:
<span class="badge badge-ghost badge-sm">Low</span>
case 2:
<span class="badge badge-info badge-sm">Normal</span>
case 3:
<span class="badge badge-warning badge-sm">High</span>
case 4:
<span class="badge badge-outline badge-sm">Minimal</span>
<span class="badge badge-error badge-sm">Critical</span>
default:
<span class="badge badge-ghost badge-sm">{ fmt.Sprintf("P%d", priority) }</span>
}

View File

@@ -342,27 +342,27 @@ func PriorityBadge(priority int) templ.Component {
ctx = templ.ClearChildren(ctx)
switch priority {
case 0:
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "<span class=\"badge badge-error badge-sm\">Critical</span>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 29, "<span class=\"badge badge-ghost badge-sm\">Irrelevant</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
case 1:
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "<span class=\"badge badge-warning badge-sm\">High</span>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 30, "<span class=\"badge badge-ghost badge-sm\">Low</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
case 2:
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "<span class=\"badge badge-info badge-sm\">Medium</span>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 31, "<span class=\"badge badge-info badge-sm\">Normal</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
case 3:
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "<span class=\"badge badge-ghost badge-sm\">Low</span>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 32, "<span class=\"badge badge-warning badge-sm\">High</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
case 4:
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "<span class=\"badge badge-outline badge-sm\">Minimal</span>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 33, "<span class=\"badge badge-error badge-sm\">Critical</span>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}