-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[#8589] Student Profile: add a 'Upload/Edit Photo' tooltip #9021
[#8589] Student Profile: add a 'Upload/Edit Photo' tooltip #9021
Conversation
Hello! Could you help me? I found in a guide how to run a single test. But I want to run a single test in debugging. How can I do it? How can I run project or single test in debuggin resume? I ask because I have failed unit tests during CI build. |
@YaroslavGnatyuk As you have made UI changes, you will have to run GodMode on the tests that are failing due to your changes. |
@sukanta-27 Thanks , do I have possibility to run tests in debug mode? |
@YaroslavGnatyuk Yes. But don't run the tests on debug mode when you are in GodMode. Read the document linked in my previous comment first before running godmode. And check afterwards to be sure that no unrelated changes have been made. |
@sukanta-27 Could you please review my solution? |
@YaroslavGnatyuk Can add a screenshot first? (As you are doing a UI change, it will help if you add a screenshot of your fix so that we know it is working) |
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.
I guess it makes more sense to add a tooltip for Upload/Edit Photo
button instead of adding it to the profile pic?
@@ -433,7 +433,7 @@ private Const() { | |||
public static final String FEEDBACK_QUESTION_MCQ_ASSIGN_WEIGHTS = | |||
"Assign weights to the choices for calculating statistics."; | |||
|
|||
public static final String STUDENT_PROFILE_PICTURE = "Upload a profile picture"; | |||
public static final String STUDENT_PROFILE_PICTURE = "Upload a profile picture. Max size: 5MB .png .jpg"; |
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.
Can change the message to something like:
Upload a profile picture (.jpg or .png, max size 5 MB)
@sukanta-27 According to issue as I understand tooltip belong to profile pic. But if you think that makes more sense to change tooltip for button I can update my fix. How do you think? |
@YaroslavGnatyuk From what I understood, the issue is about adding a tooltip for |
@sukanta-27 Ok, thank you. I'm going to update the fix today. |
Tooltip appears when cursor on the "Upload/Edit Photo" button on the "Student Profile" page.
@sukanta-27 Hello! I have already updated fix. Could you please review my solution? |
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.
Just a nit. Should be okay after it.
<img id="profilePic" | ||
src="${profile.pictureUrl}" | ||
class="profile-pic" | ||
data-toggle="modal" | ||
data-target="#studentPhotoUploader" | ||
data-edit="${profile.editingPhoto}"> | ||
</div> | ||
<div class=""> | ||
<div class="col-xs-6 col-sm-5 col-md-3 cursor-pointer" |
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.
I think the cursor-pointer
here is unnecessary.
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.
Ok, thaks
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.
@sukanta-27 Done, but the latest build was failed. Something went wrong with - "nvm install node" failed and exited with 3 during.
@sukanta-27 CI build finished without errors. What I should to do next? |
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 👍 Thank you for your contribution.
Before this can get merged, you will have to wait for a final review from @TEAMMATES/seniordevs
So can I take another issue not for beginners? For example some unit tests? |
Go ahead. 👍 |
Ok, thanks! |
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.
Looks like the tooltip can be added to the upload modal as well (as done here). What do you think?
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.
Good to go, really sorry for the long delay!
Fixes #8589
Updated student profile tooltip for photo according to ticket description.