Skip to content

Commit

Permalink
chore(ui): change misleading "Protocol Voting" label to "Consensus Up…
Browse files Browse the repository at this point in the history
…grade Voting"
  • Loading branch information
Tasos Bitsios authored and PhearZero committed Jan 14, 2025
1 parent 71ff421 commit 2b5ead2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (m ProtocolViewModel) View() string {
if !isCompact {
rows = append(rows, "")
}
rows = append(rows, style.Blue.Render(" Protocol Voting: ")+strconv.FormatBool(m.Data.Voting))
rows = append(rows, style.Blue.Render(" Consensus Upgrade Voting: ")+strconv.FormatBool(m.Data.Voting))

if isCompact && m.Data.NeedsUpdate {
rows = append(rows, style.Blue.Render(" Upgrade Available: ")+style.Green.Render(strconv.FormatBool(m.Data.NeedsUpdate)))
Expand Down
2 changes: 1 addition & 1 deletion ui/testdata/Test_ProtocolSnapshot/NoVoteOrUpgrade.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
│ │
│ Network: test-v1 │
│ │
│ Protocol Voting: false
│ Protocol Upgrade: No
╰──────────────────────────────────────────────────────────────────────────────╯
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
╭──Protocol────────────────────────────────────────────────────────────────────╮
│ Node: v0.0.0-test │
│ Network: test-v1 │
Protocol Voting: false
Consensus Upgrade Voting: false │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
2 changes: 1 addition & 1 deletion ui/testdata/Test_ProtocolSnapshot/Visible.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
│ │
│ Network: test-v1 │
│ │
Protocol Voting: true
Consensus Upgrade Voting: true │
╰──────────────────────────────────────────────────────────────────────────────╯
2 changes: 1 addition & 1 deletion ui/testdata/Test_ProtocolSnapshot/VisibleSmall.golden
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
╭──Protocol────────────────────────────────────────────────────────────────────╮
│ Node: v0.0.0-test │
│ Network: test-v1 │
Protocol Voting: true
Consensus Upgrade Voting: true │
│ Upgrade Available: true │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
2 changes: 1 addition & 1 deletion ui/viewport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Test_ViewportViewRender(t *testing.T) {
teatest.WaitFor(
t, tm.Output(),
func(bts []byte) bool {
return bytes.Contains(bts, []byte("Protocol Voting"))
return bytes.Contains(bts, []byte("Consensus Upgrade Voting"))
},
teatest.WithCheckInterval(time.Millisecond*100),
teatest.WithDuration(time.Second*3),
Expand Down

0 comments on commit 2b5ead2

Please sign in to comment.