-
Notifications
You must be signed in to change notification settings - Fork 22
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
Enhabce oVirt provider create, view/edit credentials help text fields #785
Enhabce oVirt provider create, view/edit credentials help text fields #785
Conversation
7e73fdc
to
bbc98e2
Compare
@yaacov Done, please check the new screenshot added to the description comment |
bbc98e2
to
b6663e8
Compare
cc:// @RichardHoch @anarnold97 |
@ahadas Based on https://redhat-internal.slack.com/archives/C049WBVTRD2/p1694592350447549?thread_ts=1694517736.539569&cid=C049WBVTRD2, there was an issue with that. It's currently not working for me as well. What is the status of this? @RichardHoch |
905051c
to
533c808
Compare
<Hint> | ||
<HintBody> | ||
{cacertHelperTextMsgs.hint} | ||
<Button |
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.
please move the button inside the hint msg
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.
For supporting a href link, I can't add the link text into the text message, but rather just replace Button
with ExternalLink
and wrap both with the Trans
component.
The text message split is still required, please see the fix.
...oviders/views/details/components/CredentialsSection/components/edit/OvirtCredentialsEdit.tsx
Outdated
Show resolved
Hide resolved
...oviders/views/details/components/CredentialsSection/components/list/OvirtCredentialsList.tsx
Outdated
Show resolved
Hide resolved
9d02c05
to
9c05a4c
Compare
it is supposed to work once the certificate is added to the system certification pool but we didn't test it |
9c05a4c
to
0c44e76
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
const insecureSkipVerifyHelperTextMsgs = { | ||
error: t('Error: this field must be set to a boolean value.'), | ||
success: t("If true (check box is checked), the provider's CA certificate won't be validated."), | ||
hint: t( |
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.
the hint is not a validation help message, e.g. success, warninig, error, it's a hint that is always the same, regardless of the validation state.
please create a new const for it.
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.
The const name insecureSkipVerifyHelperTextMsgs
doesn't include the word 'verify' so I see it as a collection of help text messages for this field and this specific hint is relevant for the insecureSkipVerify
field only (explaining the enable/disable values).
But if you think that separating the help text based on component appearance is better then it's ok as well.
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.
yes, the idea is that you can do insecureSkipVerifyHelperTextMsgs[ callVerificationMethod(text) ]
in cases it makes sense, do the keys of the text array should be the same as the verification options.
hint: t( | ||
'Note: enter the Manager CA certificate. unless it was replaced by a third-party certificate, in which case enter the Manager Apache CA certificate. You can retrieve the Manager CA certificate at: ', | ||
), | ||
hintHyperReference: |
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.
the hint reference is part of the hint text, you can use to create one string that include the reference
<trans> some text <link> some link </link> </transe>
) : ( | ||
<Hint> | ||
<HintBody> | ||
<Trans t={t} ns="plugin__forklift-console-plugin"> |
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.
trans should include the text, this should look:
<HintBody>{hintBody}</HintBody>
description: t( | ||
"If true (check box is checked), the provider's CA certificate won't be validated.", | ||
), | ||
hint: t( |
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.
hint is not specific to specific a field, hint is a form thing, please create a new const for the hint text, or just use it inline
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 15 days. |
Reference: kubev2v#646 Rephrase all oVirt fields help text messages and add tooltips for the following dialogs: 1. Create oVirt provider, 2. oVirt Credentials view/edit modes. The main changes include: 1. Rephrase all help text messages. 2. Support 'warning' validation state for the 'user' field. 3. Add tooltips with a helpIcon for insecureSkipVerify, cacert fields. This fix assumes that leaving the 'cacert' field empty, will trigger verifying the the system CA certificates. Signed-off-by: Sharon Gratch <[email protected]>
0c44e76
to
549afeb
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
|
Reference: #646
Rephrase all oVirt fields help text messages and add hints for the following dialogs:
The main changes include:
user
,password
,insecureSkipVerify
,cacert
fields (name
andurl
fields were already rephrased in separate PRs)user
' field.insecureSkipVerify
,cacert
fields.This fix assumes that leaving the '
cacert
' field empty, will trigger verifying the the system CA certificates.Screenshots
Create
View Credentials
Edit Credentials