Emoji Pack Picker #102

Merged
floatingghost merged 7 commits from Mergan/pleroma-fe:develop into develop 2022-08-03 20:56:57 +00:00
Member

Mergan did a thing?

Didn't clean up though

Also emojis load on-demand when selecting an emoji pack, so I didn't think it would be necessary to load in chunks.

Also the matching by keyword might be faster

Aye

Mergan did a thing? Didn't clean up though Also emojis load on-demand when selecting an emoji pack, so I didn't think it would be necessary to load in chunks. Also the matching by keyword might be faster Aye
Mergan added 1 commit 2022-08-02 21:02:33 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
8c58cb4033
Emoji Picker
Author
Member

imageimageimage

![image](/attachments/43ae92b4-8a9a-4fc1-89f7-f34ebb75855d)![image](/attachments/84ced62b-0606-4434-bc6d-1513c136fbb6)![image](/attachments/c116675c-7210-4441-816f-1c80a25489d7)
Contributor

Hell yeah Mergan let's go

I'll try it out tonight

Hell yeah Mergan let's go I'll try it out tonight
eris added the
Feature
label 2022-08-02 21:42:46 +00:00
nbsp reviewed 2022-08-02 21:44:58 +00:00
nbsp left a comment
Contributor

haven't tested it out yet but a few things just from looking around

haven't tested it out yet but a few things just from looking around
@ -201,1 +186,3 @@
emojis: filterByKeyword(standardEmojis, trim(this.keyword))
first: {
imageUrl: '',
replacement: '🥴'
Contributor

kinda confusing when we're dealing with emoji, i think the default "missing file" sprite or maybe a Ø svg would be appropriate

kinda confusing when we're dealing with emoji, i think the default "missing file" sprite or maybe a Ø svg would be appropriate
Contributor

faExclamation, perhaps?

`faExclamation`, perhaps?
Author
Member

The 🥴 emoji is the icon I chose for the Unicode Emoji Pack. I'm not sure what it returns when a missing file happens, but I left that part mostly intact 🤔

That'd be on emoji_picker.vue 16

The 🥴 emoji is the icon I chose for the Unicode Emoji Pack. I'm not sure what it returns when a missing file happens, but I left that part mostly intact 🤔 That'd be on emoji_picker.vue 16
Contributor

aaahh, i see. disregard this then

aaahh, i see. disregard this then
nbsp marked this conversation as resolved
@ -202,0 +191,4 @@
}
].concat(emojiPacks)
},
sortedEmoji () {
Contributor

think this should probably sort alphabetically by pack name instead of by.. it looks like pack size?

think this should probably sort alphabetically by pack name instead of by.. it looks like pack size?
Author
Member

The emojis come alphabetically ordered by default, but they were in a single pack. All I did was sort them into their respective packs. After that they're aplhabetically ordered within their packs (I think). The order of the packs is a first come first serve on the packing lol

The emojis come alphabetically ordered by default, but they were in a single pack. All I did was sort them into their respective packs. After that they're aplhabetically ordered within their packs (I think). The order of the packs is a first come first serve on the packing lol
Contributor

yeah i think the order of the pack should be passed through a sort

yeah i think the order of the pack should be passed through a sort
Author
Member

I can add it real quick but hmm how do I hmmm does this undo the pull request or what's the procedure

I can add it real quick but hmm how do I hmmm does this undo the pull request or what's the procedure
Contributor

you can send a new commit to the branch and the pr will be updated
or, if you want it to still be one commit, you can git commit --amend and git push --force

you can send a new commit to the branch and the pr will be updated or, if you want it to still be one commit, you can `git commit --amend` and `git push --force`
@ -73,0 +76,4 @@
overflow-x: scroll;
overflow-y: hidden;
// -ms-overflow-style: none;
Contributor

cleanup for later

cleanup for later
Author
Member

Thought it'd look cool without the scroll but I couldn't picture a way to make it intuitive so I left it just in case

Thought it'd look cool without the scroll but I couldn't picture a way to make it intuitive so I left it just in case
Contributor

also, suggestion: making the pack titles clickable in order to collapse them. (would require an up/down arrow on the right side for UX)

also, suggestion: making the pack titles clickable in order to collapse them. (would require an up/down arrow on the right side for UX)
Author
Member

also, suggestion: making the pack titles clickable in order to collapse them. (would require an up/down arrow on the right side for UX)

When a pack is selected it only shows that one.
When searching it shows all packs that contain a match (and I got a surprise! Looks like they become highlighted/deactivated if the emoji is not found in the pack)

> also, suggestion: making the pack titles clickable in order to collapse them. (would require an up/down arrow on the right side for UX) When a pack is selected it only shows that one. When searching it shows all packs that contain a match (and I got a surprise! Looks like they become highlighted/deactivated if the emoji is not found in the pack)
Contributor

hm
i'm sort of envisioning a very complicated thing where
instead of click pack => only shows pack
it's click pack => widget autoscrolls to pack while still being able to view everything else
which lets people just browse the emoji list more easily

it's probably a bit too overengineered for this though 🥴

hm i'm sort of envisioning a very complicated thing where instead of `click pack => only shows pack` it's `click pack => widget autoscrolls to pack while still being able to view everything else` which lets people just browse the emoji list more easily it's probably a bit too overengineered for this though 🥴
Author
Member

hm
i'm sort of envisioning a very complicated thing where
instead of click pack => only shows pack
it's click pack => widget autoscrolls to pack while still being able to view everything else
which lets people just browse the emoji list more easily

it's probably a bit too overengineered for this though 🥴

Looks like that was the original plan but I thought that was needlesly complex. e.g. loading 60 emojis at a time from all packs, slowly scrolling and matching which one.

I think I removed a bit of that functionality on the highlight function (65) on emoji_picker.js

Thought it would be simpler to just show on-demand. I think this might also fix lag when opening the picker? Because it doesn't load everything

> hm > i'm sort of envisioning a very complicated thing where > instead of `click pack => only shows pack` > it's `click pack => widget autoscrolls to pack while still being able to view everything else` > which lets people just browse the emoji list more easily > > it's probably a bit too overengineered for this though 🥴 Looks like that was the original plan but I thought that was needlesly complex. e.g. loading 60 emojis at a time from all packs, slowly scrolling and matching which one. I think I removed a bit of that functionality on the highlight function (65) on emoji_picker.js Thought it would be simpler to just show on-demand. I think this might also fix lag when opening the picker? Because it doesn't load everything
Contributor

yeah that's fair
testing it right now

yeah that's fair testing it right now
nbsp requested changes 2022-08-02 22:08:29 +00:00
nbsp left a comment
Contributor

nitpick but i think the search makes more sense being right at the top of the widget
it being under the pack picker signifies that it searches within the pack, which it doesn't

i still don't know how i feel about not having an "All" option but meh that's fine

nitpick but i think the search makes more sense being right at the top of the widget it being under the pack picker signifies that it searches within the pack, which it doesn't i still don't know how i feel about not having an "All" option but meh that's fine
Mergan added 1 commit 2022-08-02 22:08:39 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
368572fbd0
Sort Custom Emoji Packs by Name
Mergan requested review from nbsp 2022-08-02 22:09:26 +00:00
Author
Member

Ok I pushed the commit did that fix it image

Ok I pushed the commit did that fix it ![image](/attachments/88c3661f-dbc4-46d0-aca7-def0bc7490b9)
Contributor

Ok I pushed the commit did that fix it image

seems so

> Ok I pushed the commit did that fix it ![image](/attachments/88c3661f-dbc4-46d0-aca7-def0bc7490b9) seems so
Author
Member

nitpick but i think the search makes more sense being right at the top of the widget
it being under the pack picker signifies that it searches within the pack, which it doesn't

i still don't know how i feel about not having an "All" option but meh that's fine

image I don't know, it looks kinda weird image

> nitpick but i think the search makes more sense being right at the top of the widget > it being under the pack picker signifies that it searches within the pack, which it doesn't > > i still don't know how i feel about not having an "All" option but meh that's fine ![image](/attachments/1fdaaa76-a395-45db-b53c-7562a1e269dd) I don't know, it looks kinda weird ![image](/attachments/794ee770-b2a0-4f68-a5aa-801dcab2ec7d)
8.5 KiB
123 KiB
Author
Member

nitpick but i think the search makes more sense being right at the top of the widget
it being under the pack picker signifies that it searches within the pack, which it doesn't

i still don't know how i feel about not having an "All" option but meh that's fine
I don't know, it looks kinda weird

image Maybe at the bottom?

> > nitpick but i think the search makes more sense being right at the top of the widget > > it being under the pack picker signifies that it searches within the pack, which it doesn't > > > > i still don't know how i feel about not having an "All" option but meh that's fine > I don't know, it looks kinda weird ![image](/attachments/c33750cf-8754-4f60-bf19-ff095a9a431b) Maybe at the bottom?
104 KiB
Contributor

I'm a fan of the current functionality of the search resultsreplacing the emoji list, is that possible? Or at least the size of it taking up the window and not needing horizontal scrolling.

That small little search bar will be hell if I want to search for something with a lot of results.

I'm a fan of the current functionality of the search resultsreplacing the emoji list, is that possible? Or at least the size of it taking up the window and not needing horizontal scrolling. That small little search bar will be hell if I want to search for something with a lot of results.
Author
Member

I'm a fan of the current functionality of the search resultsreplacing the emoji list, is that possible? Or at least the size of it taking up the window and not needing horizontal scrolling.

That small little search bar will be hell if I want to search for something with a lot of results.

Could ye rephrase that? I didn't quite catch it 😅

> I'm a fan of the current functionality of the search resultsreplacing the emoji list, is that possible? Or at least the size of it taking up the window and not needing horizontal scrolling. > > That small little search bar will be hell if I want to search for something with a lot of results. Could ye rephrase that? I didn't quite catch it 😅
Author
Member

AkkomaGang/pleroma-fe#69 Oops reference

AkkomaGang/pleroma-fe#69 Oops reference
floatingghost reviewed 2022-08-03 13:52:29 +00:00
floatingghost left a comment
Owner

ok my thoughts - it works pretty much as i'd personally expect

the unicode emoji currently clips the scrollbar, so probably needs some internal padding

also comment attached

otherwise is decent|

ok my thoughts - it works pretty much as i'd personally expect the unicode emoji currently clips the scrollbar, so probably needs some internal padding also comment attached otherwise is decent|
@ -190,0 +174,4 @@
customEmojis.forEach((pack, id) => {
emojiPacks.push({
id: id.substring(5),
text: startCase(id.substring(5)),

this here assumes pack: name format, which isn't true for some older emojis - check that id starts with pack: then chop it, or keep as is

for example: https://ihatebeinga.live/api/pleroma/emoji.json

see "aiwave", which is the old-style local pack and doesn't have a pack prefix

this here assumes `pack:` name format, which isn't true for some older emojis - check that id starts with `pack:` then chop it, or keep as is for example: https://ihatebeinga.live/api/pleroma/emoji.json see "aiwave", which is the old-style local pack and doesn't have a `pack` prefix
floatingghost closed this pull request 2022-08-03 13:58:28 +00:00
floatingghost reopened this pull request 2022-08-03 13:58:35 +00:00
Author
Member

No worries comrade.
What follows now?

No worries comrade. What follows now?

the review above probably needs a look over, since some pack formats break

otherwise i think this is gud

the review above probably needs a look over, since some pack formats break otherwise i think this is gud
Mergan added 1 commit 2022-08-03 14:08:08 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
f85841aa80
Replace pack with regex instead of assuming "pack:"
Author
Member

image Uhh

![image](/attachments/52d9d38c-b196-4616-b74e-f3fbc10ffd12) Uhh
5.7 KiB

oh that's cool never mind about that, there's no conflict

oh that's cool never mind about that, there's no conflict

just the unicode padding to remove the scrollbar clip and i'll merge~

just the unicode padding to remove the scrollbar clip and i'll merge~
Author
Member

just the unicode padding to remove the scrollbar clip and i'll merge~

It's the pack representative, right? do ye have an image of how it shows currently? (for reference)

> just the unicode padding to remove the scrollbar clip and i'll merge~ It's the pack representative, right? do ye have an image of how it shows currently? (for reference)

current:
image

expected:
image

setting vertical-align: top on emoji-tabs-item appears to fix this

current: ![image](/attachments/a22c0280-75be-476e-a108-48b5016d05e6) expected: ![image](/attachments/f1703d8b-c937-42e0-8b2e-f6824db2a74a) setting `vertical-align: top` on `emoji-tabs-item` appears to fix this
Author
Member

image Remaking the css a bit to make it cleaner and more consistent. I'm just getting this weird bug with the scrollbar, any ideas?

![image](/attachments/7d02cb5d-a087-4b15-889a-0abd9435dc59) Remaking the css a bit to make it cleaner and more consistent. I'm just getting this weird bug with the scrollbar, any ideas?
Mergan added 1 commit 2022-08-03 15:07:26 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
f351e2e8dc
CSS Cleanup

image

BIG

idk what changed but it seems to now flow massively over and doesn't scrollbar at all

which is especially weird for notifications:
image

![image](/attachments/125ed580-4a99-46f2-9e10-e5bead19092a) BIG idk what changed but it seems to now flow massively over and doesn't scrollbar at all which is especially weird for notifications: ![image](/attachments/60c3f9bf-a161-4750-91bb-98a8f649f027)
116 KiB
170 KiB
Author
Member

Oops let me fix that

Oops let me fix that
Mergan added 1 commit 2022-08-03 15:43:09 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
bc36608a6a
Scrollbar fix
Author
Member

Something something display: block → flex
Looking into it

Something something display: block → flex Looking into it
Author
Member

The easiest solution would be to put a width but I have no idea what it should be

The easiest solution would be to put a width but I have no idea what it should be

the % is based on the outer container - so max-width: 100% should work i think

the `%` is based on the outer container - so `max-width: 100%` _should_ work i think
Author
Member

It doesn't :s

It doesn't :s

ok found why -

in react_button.vue, in the .popover styles, set max-width: 100%

ok found why - in `react_button.vue`, in the `.popover` styles, set `max-width: 100%`
Author
Member

Experimenting...

Experimenting...
Mergan added 1 commit 2022-08-03 17:29:07 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
a28eef7a0a
Added sins
Author
Member

Noone must know of the sins I commited today image

Noone must know of the sins I commited today ![image](/attachments/12e34bc6-24ee-43c6-b88c-4624f24094e8)
3.1 KiB
Author
Member

I wonder if that breaks stickers 🤔

I wonder if that breaks stickers 🤔
Mergan added 1 commit 2022-08-03 17:46:34 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
302d07af35
Fixed Scrollbar (again)
Author
Member

That should do it

That should do it

yep, that works nicely!

thanks a loooot~

yep, that works nicely! thanks a loooot~
floatingghost merged commit aff6caa4c0 into develop 2022-08-03 20:56:57 +00:00
eris referenced this issue from a commit 2022-08-05 23:53:14 +00:00
Beefox referenced this issue from a commit 2022-09-22 00:57:34 +00:00
Sign in to join this conversation.
No description provided.