oppia
oppia copied to clipboard
Class name change in profile-page.component.js file to avoid class name collision
Overview
- This PR fixes or fixes part of #15988.
- This PR does the following: Class name change in profile-page.component.js file to avoid class name collision
Essential Checklist
- [x] The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
- [x] The linter/Karma presubmit checks have passed locally on your machine.
- [x] "Allow edits from maintainers" is checked. (See here for instructions on how to enable it.)
- This lets reviewers restart your CircleCI tests for you.
- [x] The PR is made from a branch that's not called "develop".
Proof that changes are correct
Before: Note that the div on localhost and oppia.org has the same class name, but the style is different. oppia.org is styled responsive and localhost is not.
After: Made class name changes from "oppia-profile-picture-container" to "oppia-editor-profile-picture-container", no longer superimposing one css style over another
Proof of changes on mobile phone

References:
- Chrome: https://developer.chrome.com/docs/devtools/device-mode/
PR Pointers
- Make sure to follow the instructions for making a code change.
- If you need a review or an answer to a question, and don't have permissions to assign people, leave a comment like the following: "{{Question/comment}} @{{reviewer_username}} PTAL". Oppiabot will help assign that person for you.
- For what code owners will expect, see the Code Owner's wiki page.
- Make sure your PR follows conventions in the style guide, otherwise this will lead to review delays.
- Never force push. If you do, your PR will be closed.
- Some of the e2e tests are flaky, and can fail for reasons unrelated to your PR. We are working on fixing this, but in the meantime, if you need to restart the tests, please check the "If your build fails" wiki page.
Hi @ashutoshc8101, could you please add the appropriate changelog label to this pull request? Thanks!
CI tests are failing due to flakiness, I believe. The errors are not related to the changes of this PR.
Can you please rerun the test?
Hi @karenbanci, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks!
@karenbanci #15653 brought up this issue which seems weird to me because it only moved the styles from the component.html file to a CSS file. Can you investigate how moving these styles brought about this issue? Your approach is acceptable but it does not fix the original problem nor does it track how #15653 brought it up.
@karenbanci #15653 brought up this issue which seems weird to me because it only moved the styles from the component.html file to a CSS file. Can you investigate how moving these styles brought about this issue? Your approach is acceptable but it does not fix the original problem nor does it track how #15653 brought it up.
Removing these styles does fix the UI bug.
@karenbanci #15653 brought up this issue which seems weird to me because it only moved the styles from the component.html file to a CSS file. Can you investigate how moving these styles brought about this issue? Your approach is acceptable but it does not fix the original problem nor does it track how #15653 brought it up.
@ashutoshc8101 I fixed the problem, the print you quoted is not referring to this PR, I ask you to check my modifications here https://github.com/oppia/oppia/pull/15990/files
Hi @karenbanci, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks!
Assigned @ashutoshc8101 since it looks like they need to take the next step. @karenbanci please make sure to assign people when you want them to take action, since most people use the list of PRs they're assigned to as their TODO list. See this note at the bottom of the first comment in the PR:
If you need a review or an answer to a question, and don't have permissions to assign people, leave a comment like the following: "{{Question/comment}} @{{reviewer_username}} PTAL". Oppiabot will help assign that person for you.
Hi @karenbanci, there is a new change in develop which needs to be in your PR. Please update your branch with the latest changes in develop. For instructions, refer to this link. Thanks!
@U8NWXD Sorry, but I'm not allowed to assign something
I'm having problem with this test @seanlip PTAL

Is this a flaky test?
Hi @karenbanci, possibly -- a list of flaky tests can be found here: https://github.com/orgs/oppia/projects/35. This one might be related to the italiano one.
@ShivamJhaa could you please advise?
Thanks for checking!
Unassigning @karenbanci since a re-review was requested. @karenbanci, please make sure you have addressed all review comments. Thanks!
Also, @karenbanci, re assigning folks, the message that @U8NWXD quoted explains how to do it. You can just leave a comment like "{{Question/comment}} @{{reviewer_username}} PTAL" and Oppiabot will sort it out for you.
@aks681, I'm also assigning you per our discussion in case you can give some feedback on the approach here. Thanks!
Hi @karenbanci, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks!
Hi @karenbanci, possibly -- a list of flaky tests can be found here: https://github.com/orgs/oppia/projects/35. This one might be related to the italiano one.
@ShivamJhaa could you please advise?
Thanks for checking!
Yes, looks like a flake (same as the italiano). Updated the issue to include this case as well. Thanks.
Unassigning @aks681 since they have already approved the PR.
Unassigning @ashutoshc8101 since they have already approved the PR.
Hi @aks681, this PR is ready to be merged. Author of this PR does not have permissions to merge this PR. Before you merge it, please make sure that there are no pending comments that require action from the author's end. Thanks!
Note: @aks681 mentioned this to me in chat: "I didn't change the css style itself, just moved it to .css file. There is another class with same name in oppia.css at max-width 610px, which is what I think causes the issue as that may have got overwritten when everything was in .css file"
Also @karenbanci it looks like you have all approvals so I'm merging this. Thanks for your PR and for fixing the issue!
@aks681 @seanlip Thank you