fix(tui): update model selection labels for clarity and consistency
This commit is contained in:
parent
05b14422a1
commit
7d3948830c
2 changed files with 4 additions and 7 deletions
|
|
@ -337,16 +337,13 @@ func (s *appState) selectedModelName() string {
|
||||||
|
|
||||||
func rootModelLabel(selected string) string {
|
func rootModelLabel(selected string) string {
|
||||||
if selected == "" {
|
if selected == "" {
|
||||||
return "Model (no model selected)"
|
return "Model (None)"
|
||||||
}
|
}
|
||||||
return "Model (" + selected + ")"
|
return "Model (" + selected + ")"
|
||||||
}
|
}
|
||||||
|
|
||||||
func rootModelDescription(selected string) string {
|
func rootModelDescription(selected string) string {
|
||||||
if selected == "" {
|
return "Using SPACE to choose your model"
|
||||||
return "no model selected"
|
|
||||||
}
|
|
||||||
return "selected"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func rootChannelLabel(valid bool) string {
|
func rootChannelLabel(valid bool) string {
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ func (s *appState) modelMenu() tview.Primitive {
|
||||||
// Add model entry appended at the end so the models map to rows 1..N
|
// Add model entry appended at the end so the models map to rows 1..N
|
||||||
items = append(items,
|
items = append(items,
|
||||||
MenuItem{
|
MenuItem{
|
||||||
Label: "Add model",
|
Label: "**Add model**",
|
||||||
Description: "Append a new model entry",
|
Description: "Append a new model entry",
|
||||||
Action: func() {
|
Action: func() {
|
||||||
newName := s.nextAvailableModelName("new-model")
|
newName := s.nextAvailableModelName("new-model")
|
||||||
|
|
@ -282,7 +282,7 @@ func refreshModelMenuFromState(menu *Menu, s *appState) {
|
||||||
}
|
}
|
||||||
items = append(items,
|
items = append(items,
|
||||||
MenuItem{
|
MenuItem{
|
||||||
Label: "Add model",
|
Label: "**Add Model**",
|
||||||
Description: "Append a new model entry",
|
Description: "Append a new model entry",
|
||||||
Action: func() {
|
Action: func() {
|
||||||
newName := s.nextAvailableModelName("new-model")
|
newName := s.nextAvailableModelName("new-model")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue