-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display if a doc page has been automated on istio.io #7672
Comments
@qwertyuiop888 LG! What does the page that has automated testing look like? |
Since you are already working on it :) |
@qwertyuiop888 Thanks! I was thinking the first page, it could show "Needs Automation" (which could link to the automation page @frankbu mentioned how to contribute to docs to help automate a page). For the 2nd page, it could show "Commands Automated". cc @brian-avery @ericvn for input |
@qwertyuiop888 what do you mean by |
@frankbu thanks for the input! I was debating on words |
@linsun That's the reason I suggested the word We could improve it more by adding hover help over the word |
@frankbu I think we are saying the same thing. Clearly, it needs some explanation of the word(s) chosen. I was more concerned with the pages that needs tests because I think that is the page users will have questions. I don't often question things when there is a green checkbox. :) I'm good with 1 word |
Btw, a tested doc is still not a 100% guarantee that it will work. There can be errors in the text portion of the doc that still can lead the user to run the wrong command, for example. Also, since we don't run the automated test on every platform, it could still be failing on the user's platform. We just need to be clear what exactly |
That looks pretty good, but don't change the text to |
Could we say something like "Tested by hand?" |
@davidhauck I think that should be explained after clicking on the link, for users that wonder: what does the red x or greed checkmark mean? The hover help is also a good place to make it clear that |
I think I prefer a help or warning icon for Alternatively, we only show icon for pages that have been automated. That icon can help users to gain confidence in that page. |
I think encouraging people to help writing tests may be the biggest benefit of this feature, so I definitely don't want to only show the icon for pages that have already been automated. That said, good point, that a red x might be too extreme, since red x usually means something is broken. Maybe a black/white/grey check or x would be better? This is definitely something that I think we might all have different opinions on. It would be nice if we could get some usability experts to review and tell us what color would be best. |
A grey checkmark would be pretty intuitive - that means (basic) tested by hand, while green means (better) automated test. The hover help makes it clear we would prefer automated tests, so people might be inclined to help. |
A grey checkmark, I like it :). seems pretty intuitive it is limited or manual testing. Along with link/hover over texts to explain further, it will be pretty clear. |
The grey checkmark idea sounds good. So a grey checkmark for not automated and a green one for automated. The hover text for not automated could be "this document has only been tested by hand. Help create an automated test" and for tested, like you said, "An automated test is available for this document" |
Black background looks great, but the grey check doesn't look so different from the green one on white background. Can you make the grey check lighter, or maybe thinner? |
I like them both, thank you @qwertyuiop888 for trying it on both backgrounds! |
Maybe you should use a different icon for the grey case. Is there something that would mean "sort of"? I think the exact same icon just with different color might be a problem because it doesn't work for people that are color blind. If we use grey and green check, it really needs to look much lighter (sort of like the difference it black text vs greyed out text). |
The light grey looks great on white background, but on black background it really stands out, maybe even more than green, which is the opposite of what we want :-) Unless you can find a good replacement icon, I would suggest just going ahead with the darker grey implementation and send a PR. Other people will review it then, UI and usability designers will likely have suggestions, since they lots of expertise in this area, i.e., things like support for color blind people and other things we haven't even thought of. So when you implement this, I assume the plan is to show green check for docs with |
+1 on this.
|
The files without the tag do not show it. I'll fix up the code and create a pr in a bit. Thank You Frank and Lin for the feedback! |
It's not clear, or maybe i missed it... where or how those automated tests get run? Do they get run for every build/release of the docs? If i click on the link it just takes me to the test repository but i don't see test (just instructions for how one could generate them). Can we clarify somewhere what happens with the tests or where are they and what their role is in publishing the docs? |
@frankbu @brian-avery and doc team has done a lot of good work on istio.io test automation and there are metadata today in each page to indicate if a doc page has been automated with our new test framework. It is desirable to reflect that in the UI itself so users would have the visibility into that info as they try each page.
@qwertyuiop888 has kindly offered to look into this and been prototyping this.
cc @davidhauck
The text was updated successfully, but these errors were encountered: