Skip to content
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

Student Profile: add a 'Upload/Edit Photo' tooltip #8589 #8592

Closed
wants to merge 12 commits into from

Conversation

delevko
Copy link
Contributor

@delevko delevko commented Mar 4, 2018

Fixes #8589

@delevko delevko closed this Mar 4, 2018
@sukanta-27
Copy link
Member

@labirinto You do not need to close the PR when you have a build failure. We can make changes and push to this branch only. read our Process document.

@delevko delevko reopened this Mar 4, 2018
@delevko
Copy link
Contributor Author

delevko commented Mar 5, 2018

Ready for review

@@ -433,7 +433,8 @@ private Const() {
public static final String FEEDBACK_QUESTION_RUBRIC_ASSIGN_WEIGHTS =
"Assign weights to the columns 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. "
+ ".jpg or .png extensions";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@labirinto Is there any special reason for string concatenation of two constant string?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Progyan1997 I guess that is to avoid checkstyle error (Line should have a max of 125 characters)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Progyan1997, yes it was because of checkstyle error. (Good guess @sukanta-27:))

Copy link
Member

@tshradheya tshradheya Mar 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public static final String STUDENT_PROFILE_PICTURE =
                "Upload a profile picture. Max size 5MB.  .jpg or .png extensions";

This would look better though and satisfy checkstyle as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the = should be on the previous line though. Otherwise it will be another checkstyle error.

Copy link
Member

@tshradheya tshradheya Mar 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sukanta-27 haha thanks for pointing out. I edited the next moment after posting. :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tshradheya I guess I responded too quick. 😆

@whipermr5 whipermr5 added the s.Ongoing The PR is being worked on by the author(s) label Mar 6, 2018
@wkurniawan07 wkurniawan07 added s.ToReview The PR is waiting for review(s) and removed s.Ongoing The PR is being worked on by the author(s) labels Mar 7, 2018
@wkurniawan07 wkurniawan07 self-assigned this Mar 7, 2018
@wkurniawan07 wkurniawan07 self-requested a review March 7, 2018 02:41
@@ -29,7 +29,12 @@
type="button"
data-toggle="modal"
data-target="#studentPhotoUploader">
Upload/Edit Photo
<div class=""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • div in a button is not semantically correct. Use span instead.
  • Remove the class attribute instead of having one with empty value.

<div class=""
data-toggle="tooltip"
data-placement="top"
title="Upload a profile picture. Max size 5MB. .jpg or .png extensions.">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-use the tooltip in Const instead of repeating.

@@ -433,7 +433,8 @@ private Const() {
public static final String FEEDBACK_QUESTION_RUBRIC_ASSIGN_WEIGHTS =
"Assign weights to the columns 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. "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweak the message a bit:

Upload a profile picture (.jpg or .png, max size 5 MB)

@whipermr5 whipermr5 added s.Ongoing The PR is being worked on by the author(s) and removed s.ToReview The PR is waiting for review(s) labels Mar 11, 2018
@wkurniawan07
Copy link
Member

@labirinto Closing due to inactivity for a long period. Feel free to request for reopen if you're ready to resume the work here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s.Ongoing The PR is being worked on by the author(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants