Open susanev opened 2 years ago
There are a few different ways we could handle this, I think -- some more UI-level (like moving the count a bit closer to the language tab -- and yep, the issue with that was we're using the language chooser here, rather than a more generic tabs component), others more content-level (like really capturing the notion that these examples are all "the same"). Seems like ideally, we'd fix it at the content level, so that 3
just magically turned into a 1
, which would make it easier to reference this content elsewhere as well if we wanted. So I'm happy to take this on as a content thing if y'all are okay with that.
i absolutely support you owning this!
Excellent thanks! I still have to set up a project/board for triaging and prioritizing this sort of thing -- should be able to get to it this week.
overview
right now, the how-to guide counts count the total number of how-to guides across languages. e.g., if a package has 1 how-to-guide that's available in 3 languages the count on the how-to guides tab shows 3 even though you would only ever see 1 or 0 guides available depending on the language you have selected.
we should consider showing the counts on the language tabs instead, but if i remember correctly there was an eng constraint on adding the badges to those tabs.