Add an emoji palette to the compose box#1753
Conversation
|
Automated message from Dropbox CLA bot @umairwaheed, it looks like you've already signed the Dropbox CLA. Thanks! |
|
Works now. The only problem is that when compose box is opened against a particular topic and Emoji icon is clicked, the map doesn't stay visible. |
|
@timabbott, please review. |
|
Looks like the test suite doesn't pass? I just triggered a rerun of the tests to see for sure. |
|
(Also, from a commits perspective, are you imagining we'll squash these together for merging?) |
96c8e1b to
c0249f2
Compare
|
Using |
d98e4cd to
b122341
Compare
|
@timabbott, tests pass now.
You want me to merge these commits? |
|
OK, I merged all the emoji dump changes (after fixing a few bugs). I think we should squash the frontend changes into one commit since they're now just bug fixes on the main commit (I've done that in the tabbott/emoji-map branch if you want to pick up from there). Additionally, we need to address the following:
|
You mean design wise or there is some bug? |
|
I mean an actual bug -- the emoji are clickable in the sprite sheet display but invisible. (I guess you should rebase regardless to drop the backend commits). |
|
working on this |
@timabbott, |
b122341 to
cc5f5c1
Compare
@timabbott, this is fixed now. |
cc5f5c1 to
a7fcd11
Compare
Most likely due to the size of 'sprite.png', it is 1.5MB. |
Done |
|
working on this:
|
569e894 to
4820d2e
Compare
|
@timabbott, caching is done! |
|
awesome! I'll try to find time to review this soon. I'm still thinking about what we can do about the 1.5MB download issue... it might be worth writing a bit of code to download it in the background once the webapp is idle if it isn't cached already, to make the loading delay happen when the user isn't looking. |
c31c7f3 to
95cd782
Compare
|
@timabbott, now the code retrieves the sprite image in the background as well. |
|
ccing @brockwhittaker - You might want to take a look at this PR, from a frontend/design perspective. |
| <div class='notifications top-right'></div> | ||
| </div> | ||
| <!--This is just to retrieve the sprite image from the server and cache it--> | ||
| <div class="emoji emoji-100" style='margin-left: -1000'></div> |
There was a problem hiding this comment.
Hmm. Is there a way we can do this so that the network traffic is deferred until after the page is loaded, and it doesn't take up space in the DOM?
There was a problem hiding this comment.
We can add this element, <div class="emoji emoji-100" style='margin-left: -1000'></div>, through javascript after the page has loaded.
There was a problem hiding this comment.
Done. The image is now cached using Javascript.
95cd782 to
2a737a0
Compare
|
@timabbott, done! |
|
I merged a couple of the simpler backend commits, but I think the emoji dump caching change probably needs work to interact properly with the Also, I think we should include the rest of Otherwise, the caching code looks good! The speed improvement to provisioning is pretty noticable! |
|
sure. working on this. |
2a737a0 to
53af510
Compare
@timabbott, the release tarball comes out correctly. There are no symlinks. |
- Expand a box full of emojis into the compose window for users to graphically select emojis. - Append an emoji to the end of the message when a user clicks the emoji in the emoji box. - Trap the escape key to always close the emoji box before closing anything else if the box is open. - Fixes: zulip#147.
`glue` ingores the + sign in the name of the emoji and creates the css class without it. This causes the emoji pallete to miss '+1' emoji. This commit creates a translation map from emoji name to css class and uses that to create the emoji popover.
53af510 to
ce305f8
Compare
@timabbott done. |
|
Merged, thanks @umairwaheed for getting this finished! (Also, huge thanks to @ibrand for writing the first version of this!). There's still some things that we should improve soon, which I've opened as #1956. |
Still need to test this.