Skip to content

Integrate emoji picker #808

Closed
Closed

Description

@YousefED

Describe the solution you'd like
An emoji picker that works similar to the one in Notion:

emoji

Main requirements:
[ ] Easy to update with new emojis, possibly use a library like https://www.npmjs.com/package/emoji-mart, https://www.npmjs.com/package/react-input-emoji, or different
[ ] As seen in the gif above, the focus should remain on the editor, while the user filters. Perhaps it needs to be implemented as a custom suggestion menu, but that currently doesn't have support for keyboard nav to left / right, so that would need to be added. It might be necessary to create your own version of SuggestionMenuController for this (and share common code nicely)
[ ] Should be accessible (both keyboard navigation and screen reader support would be ideal)
[ ] Component should be selectable both via the slash menu, and when the user types a trigger character (:)

This will require to get up to speed with the codebase and understand how suggestions work internally, so I don't recommend this issue for beginners

Activity

  1. YousefED commented on Jun 5, 2024

    @YousefED
    CollaboratorAuthor

    /bounty 100

  2. algora-pbc commented on Jun 5, 2024

    @algora-pbc

    💎 $100 bounty • BlockNote

    Steps to solve:

    1. Start working: Comment /attempt #808 with your implementation plan
    2. Submit work: Create a pull request including /claim #808 in the PR body to claim the bounty
    3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

    Thank you for contributing to TypeCellOS/BlockNote!

    Add a bounty • Share on socials

    Attempt Started (GMT+0) Solution
    🟢 @Bhavyajain21 Jun 5, 2024, 9:38:20 AM WIP
    🟢 @syedbarimanjan Jun 5, 2024, 12:36:58 PM WIP
    🟢 @hunxjunedo Jun 17, 2024, 7:48:20 PM #854
  3. Bhavyajain21 commented on Jun 5, 2024

    @Bhavyajain21

    Please assign @YousefED

  4. Bhavyajain21 commented on Jun 5, 2024

    @Bhavyajain21

    /attempt

    Algora profile Completed bounties Tech Active attempts Options
    @Bhavyajain21 11 bounties from 3 projects
    Rust, TypeScript,
    JavaScript & more
    Cancel attempt
  5. syedbarimanjan commented on Jun 5, 2024

    @syedbarimanjan

    /attempt #808
    @YousefED I am thinking of using emoji-mart as it is best suited for this and creating an element named AccessibleSuggestionMenuController which will use the useSuggestionMenuKeyboardNavigation hook for adding keyboard navigation. can you confirm that this will be alright or should i attempt it some other way. Thanks.

    Edit: and i am creating a new file in packages/core/src/extensions/SuggestionMenu named getDefaultEmojiMenuItems.ts where i will get the emojis from the emoji-mart return them.

    ps: can i get assigned.

    Algora profile Completed bounties Tech Active attempts Options
    @syedbarimanjan 3 bounties from 3 projects
    TypeScript, Go,
    JavaScript
    Cancel attempt
  6. syedbarimanjan commented on Jun 7, 2024

    @syedbarimanjan

    I implemented it and then suddenly got a better idea on how to do it so it wil take some more time.

  7. hunxjunedo commented on Jun 17, 2024

    @hunxjunedo
    Contributor

    /attempt #808
    hey @YousefED 👋 , It's been almost 2 weeks. Meanwhile I've been looking into it and have almost reached an optimal working solution. I'm in a position of creating a pull request today Inshallah, can I please get assigned so I can proceed with the pull request ?

    Algora profile Completed bounties Tech Active attempts Options
    @hunxjunedo 1 bounty from 1 project
    JavaScript
    Cancel attempt
  8. YousefED commented on Jun 18, 2024

    @YousefED
    CollaboratorAuthor

    @syedbarimanjan any update on this? Otherwise I'll assign another attempt later this week

  9. syedbarimanjan commented on Jun 19, 2024

    @syedbarimanjan

    @syedbarimanjan any update on this? Otherwise I'll assign another attempt later this week

    I am working on it, trying to integrate emoji-mart picker as it has all the functionality we need. If that is not possible then i will have to create the picker myself which means alot of more code to maintain.

  10. YousefED commented on Jun 19, 2024

    @YousefED
    CollaboratorAuthor

    @syedbarimanjan any update on this? Otherwise I'll assign another attempt later this week

    I am working on it, trying to integrate emoji-mart picker as it has all the functionality we need. If that is not possible then i will have to create the picker myself which means alot of more code to maintain.

    Alright, thanks for the update!

  11. syedbarimanjan commented on Jun 19, 2024

    @syedbarimanjan

    @hunxjunedo if you have a working fix create a pr till tonight.

  12. hunxjunedo commented on Jun 19, 2024

    @hunxjunedo
    Contributor

    @hunxjunedo if you have a working fix create a pr till tonight.

    @YousefED I'm going with that, you okay with this ? Coming back in abt 12 hours.
    Should I create a PR even if the issue is still assigned to someone else ?

  13. syedbarimanjan commented on Jun 19, 2024

    @syedbarimanjan

    @hunxjunedo if you have a working fix create a pr till tonight.

    @YousefED I'm going with that, you okay with this ? Coming back in abt 12 hours. Should I create a PR even if the issue is still assigned to someone else ?

    I will restart working on it at night so if you already have a working solution you can raise a pr.

  14. hunxjunedo commented on Jun 19, 2024

    @hunxjunedo
    Contributor

    @YousefED I've implemented it and prepared to raise the pull request. Should I proceed or wait till I get assigned ?

    Screencast.from.19-06-2024.20.11.04.webm
  15. YousefED commented on Jun 19, 2024

    @YousefED
    CollaboratorAuthor
  16. hunxjunedo commented on Jun 19, 2024

    @hunxjunedo
    Contributor

    If you have it ready you can raise a pr as syed suggests. Then ill review
    that tomorrow or friday and decide how to move fwd

    On Wed, 19 Jun 2024 at 17:48, Hunain Ahmed @.***> wrote:

    @YousefED https://github.com/YousefED I've implemented it and prepared
    to raise the pull request. Should I proceed or wait till I get assigned ?

    —
    Reply to this email directly, view it on GitHub
    #808 (comment),
    or unsubscribe
    https://github.com/notifications/unsubscribe-auth/AAC2BWOV5ALHMX5NZKEJT5DZIGR6NAVCNFSM6AAAAABI2KJG7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGAYTSNRQGY
    .
    You are receiving this because you were mentioned.Message ID:
    @.***>

    Alright, doing it as soon as I get to a computer.

  17. algora-pbc commented on Jun 20, 2024

    @algora-pbc

    💡 @hunxjunedo submitted a pull request that claims the bounty. You can visit your bounty board to reward.

  18. hunxjunedo commented on Jun 20, 2024

    @hunxjunedo
    Contributor

    @YousefED I've raised a PR, kindly review it.

  19. fridaystreet commented on Jun 21, 2024

    @fridaystreet
    Contributor

    We have an emoji-mart based tiptap plugin we built that we are now using in blocknote, works as is in blocknote. We've just added a blocknote sidemenu button helper component.

    Features:

    1. It has the emoji picker on typing : (which honours the skin colour) This utilises the frequently used feature of emoji-mart to prioritise the list shown, so before you type any search chars after the : you get you frequent items.

    We listed them long ways with the shorcodes and shorthand so you could start to learn the codes over time

    Screenshot 2024-06-21 at 12 53 26 pm Screenshot 2024-06-21 at 12 53 34 pm
    1. It has full the emoji-mart picker so you chen you can change skin theme settings, see the recent used etc. Open this menu by adding the smile icon to side menu or slash menu
    Screenshot 2024-06-21 at 12 52 25 pm
    1. It has a text input rule to pick up when emojis are just typed shothand not with shortcodes eg :-) and will automatiucllay turn them into emojis after hitting space while typing.
    Screenshot 2024-06-21 at 12 53 52 pm Screenshot 2024-06-21 at 12 53 57 pm
  20. ayush-oswal commented on Jun 26, 2024

    @ayush-oswal

    Hey @YousefED is this still open?

  21. algora-pbc commented on Jul 17, 2024

    @algora-pbc

    🎉🎈 @hunxjunedo has been awarded $100! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions