-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
6598 - Add training cards #7628
6598 - Add training cards #7628
Conversation
…nality to cards modal
Hi @garethbowen, I think it'd be good to have feedback at this point. |
Sorry I'm not available to review this this week. I'll have a look next week if you haven't found another volunteer by then! |
Hi @dianabarsan, do you have time to provide feedback? :) |
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.
Sorry for the delay here. I've given it a quick once over, but certainly not a full review. Happy to talk more about some of these concepts, particularly modal vs page, and db performance issues.
…display_forms_in_modal � Conflicts: � webapp/src/ts/services/enketo.service.ts � webapp/tests/karma/ts/selectors/index.spec.ts � webapp/tests/karma/ts/services/enketo.service.spec.ts
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.
Awesome!
I've put a few mostly minor suggestions inline.
This will also need a happy day end-to-end test in webdriverio so we have automatic regression testing.
webapp/src/ts/modals/training-cards/training-cards.component.ts
Outdated
Show resolved
Hide resolved
webapp/src/ts/modals/training-cards/training-cards.component.ts
Outdated
Show resolved
Hide resolved
webapp/src/ts/modals/training-cards/training-cards.component.ts
Outdated
Show resolved
Hide resolved
I've come up with a couple of other questions overnight while thinking about this...
|
Yes, the modal has scroll, but the team will advice to keep pages short as part of the best practices when designing trainings.
Yes, because we're letting training to behave as reports then the docs can be purged, the purge function will need to exclude trainings to prevent that. Also trainings can have a duration in days, so even if the completed training is deleted, it won't display to the user if the training has expired.
Yes, trainings will display when the app re/loads or if a new training is downloaded and it's set to display immediately. I haven't implemented an interval to show trainings again after X minutes, thinking to not disturb the user during other tasks, but this idea isn't completely discarded in the MVP yet, we'll observe user behaviours.
Trainings are display one at the time on re/load Thanks for the questions, I'm going to link the team here in case there's a reconsideration or new ideas :) |
I took the topic to the team (care team channel) and these are the take aways for each topic:
A/ Long content: We should always aim for concise content and for now we can control this. We are willing to iterate more to improve experience after the test proves this solution is effective.
A/ Purging: Good one to consider later, but it shouldn’t block this test.
A/ Canceling: If a user cancels the training it makes sense to show it to them again on reload (instead of after x minutes), we want to observe the user behaviour.
A/ Multiple trainings: We control this for the test. Linking here the other topic about when to display trainings for traceability with team discussion. |
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.
Awesome work! This is a really exciting feature.
Two suggestions inline, but approved pending those fixes.
Description
This PR:
Ticket: #6598
Code review checklist
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.