-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[REVERTED] Fix #12238: Making the question and header sticky in the question editor modal #20127
[REVERTED] Fix #12238: Making the question and header sticky in the question editor modal #20127
Conversation
Assigning @nikitaevg for the first pass review of this PR. Thanks! |
@arjen0203 Quick check -- I just manually linked the issue in the Development section, but why did you tick the first checkbox when that wasn't done? (Wanted to understand if there are any process issues here, 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.
It looks good! But I have a couple concerns, + what Sean said in #12238 (comment)
@@ -142,6 +142,7 @@ export class QuestionSuggestionReviewModalComponent | |||
questionId: string | null = null; | |||
isFirstItem: boolean = true; | |||
isLastItem: boolean = true; | |||
stateContentShouldStayVisibleOnScroll: boolean = true; |
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.
If this value is true by default and never changed, why not inlining it in html?
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.
This is value is now specified inline html
@@ -60,6 +60,7 @@ export class QuestionEditorComponent implements OnInit, OnDestroy { | |||
@Input() question!: Question; | |||
@Input() questionId!: string; | |||
@Input() questionStateData!: State; | |||
@Input() stateContentShouldStayVisibleOnScroll!: boolean; |
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.
If this input is required, what about other usages of the question-editor? In my understanding you should pass this argument there too.
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.
Every usage of question-editor now has it's value specified
Unassigning @nikitaevg since the review is done. |
Hi @arjen0203, it looks like some changes were requested on this pull request by @nikitaevg. PTAL. 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.
One concern.
Hi @arjen0203, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 4 days, it will be automatically closed so that others can take up the issue. |
That fault lies with me, reading the warning warning of the PR being auto-closed I wronly assumed it would be added automatically. But it is clear to me now that it should have been done manually |
5330042
to
8eb9e1f
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.
Proccesed feedback
@@ -60,6 +60,7 @@ export class QuestionEditorComponent implements OnInit, OnDestroy { | |||
@Input() question!: Question; | |||
@Input() questionId!: string; | |||
@Input() questionStateData!: State; | |||
@Input() stateContentShouldStayVisibleOnScroll!: boolean; |
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.
Every usage of question-editor now has it's value specified
@@ -142,6 +142,7 @@ export class QuestionSuggestionReviewModalComponent | |||
questionId: string | null = null; | |||
isFirstItem: boolean = true; | |||
isLastItem: boolean = true; | |||
stateContentShouldStayVisibleOnScroll: boolean = true; |
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.
This is value is now specified inline html
@arjen0203 Never force-push changes to your PR. This will lead to your PR being closed. |
I just read it as I was going over all the steps of the review process again, my apologies, was trying to amend some changes, won't happen again |
PTAL @StephenYu2018, @nikitaevg |
Unassigning @nikitaevg since they have already approved the PR. |
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!
Unassigning @StephenYu2018 since they have already approved the PR. |
Thanks @arjen0203 for fixing this. And Congrats on getting your first PR merged at Oppia !!! |
We need to revert this PR cuz it has introduced a regression #20290 |
Overview
the cause of the bug was, and which PR introduced it]
Essential Checklist
Please follow the instructions for making a code change.
I have written tests for my code.-> Manually tested since it are css changes, proof provided below.Proof that changes are correct
Before:
https://github.com/oppia/oppia/assets/14263008/0def067b-f3a8-4053-b099-c5f890660fdc
After:
https://github.com/oppia/oppia/assets/14263008/a9d35a18-7a09-4c99-8883-1c101308815c
Proof of changes in Arabic language
2024-04-03.15-46-14.mov
PR Pointers