FoundKey-0x7f/packages/client
Michał Sidor 8840724a7c Show reacting people next to reaction buttons
This change replaces the reaction count on the reaction buttons under
the post with micro avatars of the people reacting. This makes the
whole thing feel more personal IMHO.

Performance concerns: because the posts by themselves only contain
reaction counts, this means executing an extra API call is done to
fetch the list of users who reacted. This was already being done when
hovering a reaction button, and my Raspberry Pi is doing pretty fine
despite this patch.

Further development was done to lazify the API call, so now
reaction avatars are now fetched only when the reaction bar
slides into view. This should lower the load a bit.

Borrowed some ideas from code at https://medium.com/js-dojo/lazy-rendering-in-vue-to-improve-performance-dcccd445d5f

TODO: check there might be a glitch when adding a reaction
because it is already in view
2022-10-16 15:08:24 +01:00
..
.vscode improve ide support 2021-11-18 23:52:41 +09:00
@types Fix theme import (#8749) 2022-05-28 21:59:23 +09:00
assets bye room 2022-01-07 17:06:47 +09:00
src Show reacting people next to reaction buttons 2022-10-16 15:08:24 +01:00
.eslintrc.js Update .eslintrc.js 2022-07-13 13:26:48 +02:00
package.json Show reacting people next to reaction buttons 2022-10-16 15:08:24 +01:00
tsconfig.json revert tsconfig declaration to false 2022-09-03 17:50:33 -04:00
vite.config.ts Trim the browser targets list in the transpilation config 2022-10-16 15:08:24 +01:00
vite.json5.ts refactor: use Vite to build instead of webpack (#8575) 2022-05-01 22:51:07 +09:00