list: stop showing "Unranked" on unranked items
Assisted-by: Claude Sonnet 5.5 via Claude Code
diff --git a/lib/rank_king/views/list/show.rb b/lib/rank_king/views/list/show.rb
index 5b57ff7..d9cdf54 100644
--- a/lib/rank_king/views/list/show.rb
+++ b/lib/rank_king/views/list/show.rb
@@ -97,7 +97,7 @@ module RankKing
li do
span(class: "type-label") { "—" }
plain item.name
- span(class: "type-label") { "Unranked" }
+ span(class: "gl-visually-hidden") { ", Unranked" }
end
end
end
diff --git a/test/test_web.rb b/test/test_web.rb
index cbbf488..4973a14 100644
--- a/test/test_web.rb
+++ b/test/test_web.rb
@@ -236,7 +236,7 @@ class TestWeb < Minitest::Test
body = last_response.body[/role="tabpanel".*/m]
assert_operator body.index("Sushi"), :<, body.index("Pizza")
assert_operator body.index("Pizza"), :<, body.index("Tacos")
- assert_includes body, "Unranked"
+ assert_includes body, %(<span class="gl-visually-hidden">, Unranked</span>)
assert_includes body, "Compare on Taste"
end