My Connections: a user's followers, connections, requests and blocks
Describes User Connections 0.4.0.
My Connections is where a signed-in user sees who follows them, whom they follow and whom they are connected with, answers connection requests and lifts blocks.
Where to find it
The page belongs to the site, not the admin. Its tabs link to /profile/connections, but the module doesn’t add that address to your site by itself: a developer has to add the page to the router (see the end of this guide). It works only while the Connections module is on and the user is signed in. Otherwise it sends them to the home page with “Connections module is disabled” or “Please log in”.
The tabs
The tab bar shows a count on each tab. Connections opens first.
- Followers (Your Followers): who follows you, and since when.
- Following (People You Follow): whom you follow. Unfollow stops following that person.
- Connections (Your Connections): the people you are connected with, and when you connected. Remove ends the connection.
- Requests: Incoming Requests to you, with Accept and Reject, and Sent Requests you made, with Cancel. The tab’s count shows how many requests are waiting for you.
- Blocked (Blocked Users): whom you blocked, when, and the reason if one was given. Unblock lifts the block.
Each list says so when it’s empty, for example No followers yet or No pending requests.
Things to know
- Unfollow, Remove, Reject, Cancel and Unblock act at once, without asking first.
- Unblocking doesn’t bring back the follows and connections that the block removed.
- Each tab shows at most 25 people. There is no next page.
- People are shown by their email address.
What it doesn’t do
The page has no way to find people, follow them, send a request or block someone. Those buttons have to be on your site’s own pages, such as a profile page.
For developers
Route the page in your router inside a live session that has the PhoenixKit current user, at the address its tabs use:
live "/profile/connections", PhoenixKitUserConnections.Web.UserConnections, :index