-
Notifications
You must be signed in to change notification settings - Fork 667
OCPBUGS-2430: Add missing Quick Start translation #12171
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
OCPBUGS-2430: Add missing Quick Start translation #12171
Conversation
a42c87f to
a4c4546
Compare
|
@jerolimov: This pull request references Jira Issue OCPBUGS-2430, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@jerolimov: This pull request references Jira Issue OCPBUGS-2430, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/jira refresh |
|
@jerolimov: This pull request references Jira Issue OCPBUGS-2430, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@jerolimov: This pull request references Jira Issue OCPBUGS-2430, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Checked getResource calls in https://github.com/patternfly/patternfly-quickstarts
a4c4546 to
66035ae
Compare
|
@jerolimov: This pull request references Jira Issue OCPBUGS-2430, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
@jerolimov: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Thanks @jerolimov this looks good, would have liked to see empty state with page heading but i see here in pf it just returns EmptyBox https://github.com/patternfly/patternfly-quickstarts/blob/c00e128724d4ae31f6ee22bf369810f27f929243/packages/module/src/QuickStartCatalogPage.tsx#L156-L158 |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: invincibleJai, jerolimov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jerolimov: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-2430 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |





Fixes:
https://issues.redhat.com/browse/OCPBUGS-2430
Analysis / Root cause:
@invincibleJai reported in the customization form code review #12159 (comment) that nothing is rendered when no Quick Start is found or all Quick Starts are disabled. While debugging I noticed that the PatternFly component handles this already:
https://github.com/patternfly/patternfly-quickstarts/blob/e7ddc87bb040733029c0f5be7873542b41d4871e/packages/module/src/QuickStartCatalogPage.tsx#L156-L158
https://github.com/patternfly/patternfly-quickstarts/blob/e7ddc87bb040733029c0f5be7873542b41d4871e/packages/module/src/ConsoleInternal/components/utils/status-box.tsx#L26-L38
But it doesn't render anything. The underlying issue is that the translations for "No {{label}} found" was found. PF QuickStarts doesn't show anything in this case. I opened a ticket that this should return the not translated version in that case: patternfly/patternfly-quickstarts#194
Solution Description:
To fix this on our side, and also to translate these values I've added some missed Quick Start strings.
Just searched for
getResourcecalls in https://github.com/patternfly/patternfly-quickstartsScreenshots:
Before when no Quick Starts were found:
With this PR when no Quick Starts were found:
Other languages will not show anything until the translation is added or patternfly/patternfly-quickstarts#194 is fixed/merged.
Before with missing translation in the sidebar:
With this PR:
No Quick start flicker with new translation, but without changes at the loaded state:
without-ts-change.mp4
With updated loading/loaded state:
with-ts-change.mp4
Unit test coverage report:
Unchanged
Test setup:
Disable all quick starts, on a local bridge you need to create the
config.yamlmanually and start the bridge like this:Browser conformance: