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 that try sample and show adv option buttons could be clicked without Git URL in different import flows #9290
Fix that try sample and show adv option buttons could be clicked without Git URL in different import flows #9290
Conversation
/kind bug |
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.
Tried out the changes and it looks good. Left a few comments related to the help texts. Will wait for UX to approve the changes
frontend/packages/dev-console/src/components/import/git/GitSection.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/import/git/GitSection.tsx
Outdated
Show resolved
Hide resolved
2ba2b87
to
17a378c
Compare
It is approved by @beaumorley and @parvathyvr in this slack thread, but maybe one of you both could add a comment to this PR as well. Thanks :) |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: debsmita1, jerolimov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
Fixes:
https://issues.redhat.com/browse/ODC-5955
https://issues.redhat.com/browse/ODC-6016
Analysis / Root cause:
With 4.8 we automatically focus the Git URL (the first input field) when the user imports from Git, Dockerfile or Devfile.
When the user clicks then on "Try sample" or "Show advanced Git options" the url field losts his focus. The
onBlur
method then marks the input field astouched
(in formik) and show an error if the url field is empty.This "Required!" error was shown faster then the mentioned buttons handles their event. And because the "Required!" was added as a new label below the input field all buttons and input fields jumps a little but down and the user click on these buttons is ignored.
A second click works fine. Also if the user first lost the focus of the input field, and then select it again.
Solution Description:
Add a help text to the "Git Repo URL" field. This help text was replaced with the error message when the form field is empty (or invalid).
Also fixed a small flicking because
git.isUrlValidating
was set to false before the validation status was set.The help text for the different cases are:
Solution was discussed with UX in slack #tmp-odc-add
Screen shots / Gifs for design review:
Before:
After:
Unit test coverage report:
Just added a new help text. Unit tests are not changed.
Test setup:
Browser conformance: