feat: Temporary remove percentage until backend reports type in conversation list#85
Conversation
|
PR Review: Temporarily remove percentage until backend reports type (WPB-27239) Nice, focused change. The intent is clear and I like that every workaround is tagged with the 🐞 Potential issues 1. The entire @Ignore("Percentage voting blocked until WPB-27239 is done")
class StatsFormattingServiceTest {This disables all tests in the class — including ones unrelated to percentages (title formatting, mention-offset math, empty-stats handling).
2. Unbounded emoji string in val progressString = (0 until totalVoteCount).joinToString("") { "🟢" }The previous implementation was capped at 3. Leading space when count is 0
🧹 Dead code / stale docs
✅ Nits / positives
Overall this is a small, well-scoped temporary change. The main thing I would push back on is |
|
|
||
| return "$voteDisplay $percentDisplay%" | ||
| val progressString = (0 until totalVoteCount).joinToString("") { "🟢" } | ||
| return "$progressString ($totalVoteCount)" |
There was a problem hiding this comment.
I think displaying "🟢 (1)" to indicate how many people voted is a bit unclear. I'd get rid of the dots in this workaround and just do "x people voted" or "x responses". Keep in mind the case when there's one responder, i.e. 1 person voted and 1 response. To skip that case we could also do "Total votes: x".
@MarianKijewski