-
Notifications
You must be signed in to change notification settings - Fork 224
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
Fix some screenshot JSON issues #2454
Fix some screenshot JSON issues #2454
Conversation
@@ -169,7 +169,7 @@ | |||
}, | |||
{ | |||
"title": "Check certificates for validity before a trip", | |||
"anchor": "ios_check_validity_certificate", | |||
"anchor": "android_check_validity_certificate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arguably this is not much better because the screenshots below are actually for iOS; however this is the Android section.
Maybe this section should be removed completely for Android then, in case no screenshots exist for it?
@@ -169,7 +169,7 @@ | |||
}, | |||
{ | |||
"title": "Zertifikate vor einer Reise auf Gültigkeit prüfen", | |||
"anchor": "ios_check_validity_certificate", | |||
"anchor": "android_check_validity_certificate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
I support all you say and your work to 100%, especially the workflow you created! However, it was agreed to not change old screenshot versions, see #1660 (comment). You could certainly discuss with the maintainers whether this agreement could be thought of if there is an automatic checking process, etc. |
Hey @svengabr, please decide how to proceed with this PR. Thanks. |
@Marcono1234 Thanks for the PR, sorry for the delay! |
Fixes some screenshot JSON issues. This is not extensive; there are still remaining issues not fixed by this pull request:
alt
texts (Generate screenshotalt
texts automatically (or omit them) #2453)E.g. version 2.10 using screenshots of version 2.9 (maybe in some cases this is acceptable, since screenshots from the correct version are missing).
assets/img/faq/hr_en
/assets/img/faq/hr_de
This is related to the above. These files are not part of the versioned screenshot folders, therefore either they will become stale, or when updated they will be incorrect for the archived versions referencing them, because back then the screen looked differently.
E.g. the Android screenshots page showing iOS screenshots.
I have created a proof of concept GitHub workflow in https://github.com/Marcono1234/cwa-website/tree/marcono1234/screenshots-json-validation (not properly cleaned up yet) for checking the JSON files for such errors. It also reports the problems in a pull request comment, as seen here (note that normally it would only show some of the issues if the screenshot JSON files were modified). Please let me know if you are interested in this, but keep in mind that the validation scripts for this might add a maintenance burden, and might therefore not be justified for this small improvement they add.