Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Follow Widget By Adding Follow Reason Component #9

Open
YosephKS opened this issue Jul 13, 2023 · 0 comments
Open

Enhance Follow Widget By Adding Follow Reason Component #9

YosephKS opened this issue Jul 13, 2023 · 0 comments

Comments

@YosephKS
Copy link

YosephKS commented Jul 13, 2023

Background

Currently, the Follow Widget only displays a simple clean UI w/ user name and follow button.

However, the UI does not provide customization to provide users reasons to follow a particular user, which is very common on web2 socials, e.g. mutual following (Facebook), or working in the same company (LinkedIn) etc.

Technical Requirements

The feature will extend the current Follow widget UI by adding components within Lens Profile and the follow button.

This feature should be optional props to be added on top of the existing props in the Follow Widget.

Talking in the context of React, for how the implementation will look like, it should be possible to add followReasons or something more dev friendly with data structure as follows:

interface FollowReason {
  image?: string;
  text?: string;
}

let followReasons: [FollowReason];

and example value to look like this on

[
  {
    "image": "<lens-logo>",
    "text": "Mutual following stani.lens"
  }
]

Example

This is an example of what it looks like in Converse which is built on top of XMTP, Lens, and Farcaster

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant