summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2020-05-11 07:55:15 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-04 07:47:25 +0000
commit4abe3ea9c7c098a035103973fa9d5df69831af9f (patch)
treec17799688f7006650ad08f0c2cfe61216776f23d /addons/mail/static/src/models/thread_cache
parent20b34ae867e927eba2951bd81d73661d21084d17 (diff)
[IMP] survey: animate leaderboard in survey sessions
Purpose ======= This commit intends to improve the animations on the leaderboard during survey sessions. We now show both the ranking of each attendee before and after taking into account the current question scores. It allows attendees to see their position in the leaderboard shifting up / down depending on how well they answered, and adds a bit more interactivity during the session. Specs ===== The code changes to make this happen implied having multiple layers of animations running one after the other. The use of async/await in the JS allowed for a much smoother and less indented code, simplifying the reading. We now have 2 different "bars" to handle: The bar that shows the previous leaderboard position. The bar that shows the current question score. This means we handle both jQuery items and modify their size & transition properties depending on our animation. Unfortunately, all these animations required a lot of testing to find fitting timings, which means using quite a few setTimeout with "magic" delays. These were just the most good looking ones and it feels like naming them with a constant would not really help. We also slightly improved the graphic font size / styling to make it easier to read for potentially far away attendees. Task 2235815 closes odoo/odoo#50991 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache')
0 files changed, 0 insertions, 0 deletions