-
Notifications
You must be signed in to change notification settings - Fork 343
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
UI: Replace legacy modals in ilTestPlayerAbstractGUI #8211
UI: Replace legacy modals in ilTestPlayerAbstractGUI #8211
Conversation
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.
Thank you very much for the PR @lukas-heinrich !
First:
- I was completely unable to get the FeedbackModal to show, when testing.
The code is mostly ok and I've just three small requests:
- Please rename the variable here to snake_case.
- Please do not revert my commit for this line here, but explain precisely when you run into the issue that the
obj_id
is -1. For the moment, I believe that my solution is actually the right one and we need to figure out, how we can get here without having a valid test (and then wanting a test). Please create an issue, if necessary. - Please fix the coding style.
Finally (this nothing you introduced here, but as you are working on this):
- Could you please have a look at why the buttons below the question do not work.
Thanks again and best,
@kergomard
Sorry @lukas-heinrich ! Didn't want to do that: Neither the comment nor closing the PR! |
Hi @kergomard ! Thank you very much for the feedback. I will implement the suggestions and update them in the PR. I also tried to find out why the buttons in the bottom navigation bar are not working. This seems to be due to the browser placing them in the wrong place in the DOM. I was able to trace the behavior back to the fact that modals are rendered in the player's form, which themselves contain other forms. This leads to incorrect behavior because HTML forms are not allowed to have other HTML forms. Best regards, |
01ee1a3
to
2638afb
Compare
Hi @kergomard ! I renamed the variable and moved the modals out of the form as described. With regard to this line of code, I can't tell which solution is the right one. I get the problem that I have also noticed that the pipeline has failed again. I don't really understand why, any hints are welcome. Best, |
Thank you very much @lukas-heinrich ! Now it does work. There is one last thing: The answer feedback modal has a funky background-color. And: Yes, please revert the change and add an issue. I will look into that. After these two changes, I will merge. Best, |
2638afb
to
2832f8f
Compare
Hi @kergomard ! Thank you for your support. I removed the changes and opened a ticket for the issue. The formatting seems to be due to the fact that the feedback modal is an |
Thank you very much @lukas-heinrich . The idea with the roundtrip modal was the right one, as the text in the interruptive modal is always wrapped in an info-box and this box will have a yellow background. ...but there are more issues here:
All this we are not going to fix in a spell and we also don't need to have this done by tomorrow. Could you maybe see with @thojou when you two would have the time, so we can have a look at this together in a call? Maybe @fhelfer and/or @matheuszych would like to join, too? I think this would be the best way to go forward. I would be available tomorrow after around 11ish or then next week. Thanks again and best, |
Hi @lukas-heinrich Could you please:
Thanks and sorry again, |
2832f8f
to
a69f4c8
Compare
… funky formatting
…nd TypeError "Argument must be of type array|bool,SuperGlobalDropInReplacement given" The two fixes should only be hotfixes, as we have already completely revised the use of the RequestDataCollector and $_POST and will soon provide them as PR.
9532c0d
to
c1d01bb
Compare
Hi @kergomard ! Thank you for the feedback! I have visually revised the code and I found a solution for locking the answer while the dialog is already shown. It should now work as expected, I've tried tests with different combinations of with/without feedback and locking modes. Best, |
Thank you very much @lukas-heinrich ! I merge this and will remove some of the comments myself to not torture you any longer with this. Merged and picked to trunk. Best, |
* UI: Replace legacy modals in ilTestPlayerAbstractGUI * UI: Replace interruptive feedback modal with roundtrip modal to avoid funky formatting * refactor: fix property naming, remove unused phpdoc comments * fix: refinery error when trying to submit an empty numeric question and TypeError "Argument must be of type array|bool,SuperGlobalDropInReplacement given" The two fixes should only be hotfixes, as we have already completely revised the use of the RequestDataCollector and $_POST and will soon provide them as PR. * fix: lock answer correctly in mode 'Lock Answers After Moving to Next Question' --------- Co-authored-by: Lukas Eichenauer <[email protected]>
…#8211) * UI: Replace legacy modals in ilTestPlayerAbstractGUI * UI: Replace interruptive feedback modal with roundtrip modal to avoid funky formatting * refactor: fix property naming, remove unused phpdoc comments * fix: refinery error when trying to submit an empty numeric question and TypeError "Argument must be of type array|bool,SuperGlobalDropInReplacement given" The two fixes should only be hotfixes, as we have already completely revised the use of the RequestDataCollector and $_POST and will soon provide them as PR. * fix: lock answer correctly in mode 'Lock Answers After Moving to Next Question' --------- Co-authored-by: Lukas Eichenauer <[email protected]>
…#8211) * UI: Replace legacy modals in ilTestPlayerAbstractGUI * UI: Replace interruptive feedback modal with roundtrip modal to avoid funky formatting * refactor: fix property naming, remove unused phpdoc comments * fix: refinery error when trying to submit an empty numeric question and TypeError "Argument must be of type array|bool,SuperGlobalDropInReplacement given" The two fixes should only be hotfixes, as we have already completely revised the use of the RequestDataCollector and $_POST and will soon provide them as PR. * fix: lock answer correctly in mode 'Lock Answers After Moving to Next Question' --------- Co-authored-by: Lukas Eichenauer <[email protected]>
These changes are part of the Legacy-UI refactoring. This PR revises and brings together #7983 and #7984.
@matheuszych and I replaced the legacy ilModalGUI with the newer Kitchen Sink interruptive and roundtrip Modal. The control of the modal via DOM elements in JavaScript has been replaced by using signals. Class
ilTestPlayerConfirmationModal
and associated template files have been removed as they are no longer needed.In addition, the commit cf00c9d was reverted to fix
lObject::read(): Object with obj_id: -1 (tst) not found!
. The behavior described in the corresponding Mantis ticket has not reappeared here.