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
feat: make https repo credentials editable in the UI #9782
feat: make https repo credentials editable in the UI #9782
Conversation
c47cb65
to
b7984c5
Compare
Codecov Report
@@ Coverage Diff @@
## master #9782 +/- ##
=======================================
Coverage 45.92% 45.92%
=======================================
Files 229 229
Lines 28278 28278
=======================================
Hits 12987 12987
Misses 13518 13518
Partials 1773 1773 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Hi Yi! Just tried this out and it works great but I have one little nit. When the validation error pops up, usually they are on the line below the input. Here it is in the text input itself, making you not able to click on it to get the cursor (see video below). I would suggest making the validation errors like the other text inputs, as seen in the second picture here. Otherwise looks great so far, I'll continue to look into it code-wise! 😄 simplescreenrecorder-.2.mp4 |
e3a3ede
to
b9f2067
Compare
Hi @reginapizza , thanks for the review. Good catch on that unclickable input field. I actually reused a current e.g. Not clickable input field before my fix here too Regarding the location of this error message, if I make it underneath the input field, it will stretch out the entire section which doesn't look good, so I prefer to keep it inside the input as it's an existing style already. How do you think? *no error message: small and neat section |
input { | ||
z-index: 10; | ||
} | ||
|
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.
@reginapizza Here's the fix for unclickable input field issue.
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.
Great PR Yi, left a small comment
<EditablePanel | ||
values={repo} | ||
validate={input => ({ | ||
password: !input.password && input.username && 'Password is required if username is given.' |
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.
In case where only password is added without the username, there is no validation check and shows success box. That case can also be addressed here.
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.
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.
Maybe better to update both places for better user experience?
4a70b87
to
79dac4a
Compare
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.
LGTM
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.
LGTM
Signed-off-by: CI <michael@crenshaw.dev> Signed-off-by: CI <michael@crenshaw.dev> Signed-off-by: Yi Cai <yicai@redhat.com>
…t in CRD (argoproj#10191) * chore: infer managed resources health from redis instead of storing it in CRD Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> * apply reviewer notes Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com> Signed-off-by: Yi Cai <yicai@redhat.com>
…proj#10361) Signed-off-by: xin.li <xin.li@daocloud.io> Signed-off-by: xin.li <xin.li@daocloud.io> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: Xijun Dai <daixijun1990@gmail.com> Signed-off-by: Xijun Dai <daixijun1990@gmail.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: xin.li <xin.li@daocloud.io> Signed-off-by: xin.li <xin.li@daocloud.io> Signed-off-by: Yi Cai <yicai@redhat.com>
…tation (argoproj#10388) Signed-off-by: Yi Cai <yicai@redhat.com>
…rgoproj#10390) Signed-off-by: jannfis <jann@mistrust.net> Signed-off-by: jannfis <jann@mistrust.net> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
92b0009
to
8bc8002
Compare
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
Signed-off-by: ciiay <yicai@redhat.com> Signed-off-by: Yi Cai <yicai@redhat.com>
…om/ciiay/argo-cd into ui-9108-make-repo-setting-editable
signed-off: @ciiay
fixes: #9108
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
Screenshot: