blockcore-notes icon indicating copy to clipboard operation
blockcore-notes copied to clipboard

Implement a component for user references

Open Harshil-Jani opened this issue 1 year ago • 5 comments

With the completion of #136 we can now easily refer the users whom we follow. But we need to remember their ID's which is tough to do. It's better to have a component which shows us all the available users from our follow list and also filter them as we type characters next to @.

Harshil-Jani avatar Apr 10 '24 06:04 Harshil-Jani

You mean look at users we fetched events for in the past?

dangershony avatar Apr 10 '24 11:04 dangershony

You mean look at users we fetched events for in the past?

Yes. A component that just allows you to explore the users you follow. You can see the video in PR #139 for more clarity. But it's like for example you want to tag Edward Snowden but you were not sure if his username is Snowden or snowden123 or something. Remembering it exactly is tough. A frontend component which let's you explore all the users you follow or filters out based on the characters we type Eg : Typing "Snow" will return the users matching lexigographically with that usernames will be returned and you can simply select users from the list rather than remembering their entire username.

Harshil-Jani avatar Apr 10 '24 11:04 Harshil-Jani

The search component on the top is suppose to be able to do searches like that, but it appears to be a bit buggy right now. We need such a service yes, but it's probably made partially already for the search component.

sondreb avatar Apr 10 '24 14:04 sondreb

It's different from the global search. This is restricted to the editor component just to put forward the mentions.

But that's actually a good idea and If you think the current state of editor (refer video below) is working correctly, We can implement the same for the searchbar and it would work in similar way.

https://github.com/block-core/blockcore-notes/assets/79367883/ac8ea18f-afd9-4a3c-aecd-96420b626357

Harshil-Jani avatar Apr 10 '24 20:04 Harshil-Jani

We can implement the same for the searchbar and it would work in similar way.

sounds good to me

dangershony avatar Apr 11 '24 23:04 dangershony