Social relationships between users: one-way follows, two-way connections that both users accept, and blocking that removes existing follows and connections. Every relationship action is logged. It adds an admin statistics page and a user page for managing one's own connections.
Use it when
- Your community app needs follow and friend-request features
- Users must be able to block each other
What it gives you
- Follows (one-way, no consent)
- Connections (two-way, request and accept)
- Blocking that removes follows and connections
- History log of relationship actions
- Admin statistics page and user LiveView with tabs
Example
PhoenixKitUserConnections.follow(current_user, other_user)
PhoenixKitUserConnections.block(current_user, other_user, "reason")
User Connections news
-
User Connections 0.4.0: Own migrations, PhoenixKit 3 support and recipient-only accept
User Connections 0.4.0 builds its own six tables, works with PhoenixKit 3.x, and lets only the recipient accept or reject a connection request.
-
User Connections 0.3.0: Module card stats and fixes for tabs, blocks and requests
User Connections 0.3.0 adds counts to its Modules card, fixes the My Connections tab links, long block reasons and two users connecting at once.
-
User Connections 0.2.3: My Connections tabs built on the shared tab strip
User Connections 0.2.3 draws the My Connections tabs with PhoenixKit's shared tab component. It needs PhoenixKit 2.13.5 or later to work.
-
User Connections 0.2.2: Reports its own version number again
User Connections 0.2.2 fixes the version the module reports about itself, which said 0.2.0 in the 0.2.1 package. No change for a running site.
-
User Connections 0.2.1: Dependency update only
User Connections 0.2.1 only bumps its version for the PhoenixKit 2.2.0 dependency refresh. No change in the module's code or on a running site.
Install
1
Add to mix.exs
{:phoenix_kit_user_connections, "~> 0.4"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_user_connections
- Releases
-
- 0.4.0
- 0.3.0
- 0.2.3
- Admin
-
/admin/connections - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Platform & tools.
Dashboards
Build admin dashboard pages from widgets that any module exposes
No other modules needed
Database Explorer
Browse Postgres tables and watch row changes live from the admin
No other modules needed
Hello World
A demo module to copy when building your own PhoenixKit module
No other modules needed
Legal
Generated legal pages, cookie consent banner and consent logging
Needs Publishing
Stats
Collect and chart time-series metrics from external sources over Graphite
No other modules needed
Sync
Pull data between PhoenixKit sites over token-based connections
No other modules needed