Hey folks! A little survey :kotlinnew: What UI d...
# dokka
e
Hey folks! A little survey K What UI do u like more for symbols that have the same declaration and docs in multiplatform projects? 1. ๐Ÿ” merged (if tabs have the same content) 2. ๐Ÿ• divided (even tabs have the same content) 3. ๐Ÿค” my variant (in comments) Please share pros and cons of solution you've chosen. Thanks!
2๏ธโƒฃ 9
1๏ธโƒฃ 5
๐Ÿ” 7
๐Ÿ• 8
๐Ÿค” 3
a
I like merged. Coz it tels me more about how the expect was implemented underneath
๐Ÿ™ 1
โž• 1
m
Wouldn't there be a corresponding
expect
declaration to put the common Kdoc? This is where I would look in the first place
โœ… 1
I don't mind the divided KDoc for actual definitions as it matches the source code. Without context, I wouldn't have guessed the merged tabs were about same documentation
๐Ÿ™ 1
j
second one, I am not designer but the first one with multiple little lines looks really strange. I can't see 3, image is missing
โž• 1
m
I think 3. was meant as "your variant" ๐Ÿ™‚
In case you wanted to add something
j
underline being so thin looks really good, but it is difficult to see the color to avoid having to read the source set, maybe 1px or 2px improve UX, because in this case I prefer better UX than pretty UI
r
It would be nice to show platforms where they aren't present as struck through or something, if those platforms are used elsewhere in the module.
m
I guess that another option would be to use multiple bubbles just like current documentation of stdlib and in case of signatures / descriptions being different just render multiple of those. This will increase the length of the page but will make it easier to navigate via cmd+f or just scrolling (without a need to click).
Version with grouped sourcesets looks nice but i fear that this wonโ€™t be obvious for an outsider (without the circles and verbal description it is not clear why this padding is applied), therefore can be treated as a bug
e
Thanks to all! Let's keep tabs separate to decrease cognitive load
๐Ÿ‘ 2
v
Instead of bubbles which add visual clutter, could you use additional spacing between ungrouped tabs?
๐Ÿค” 1