Add Nostr Community Group (NIP-29) as a new benefit for members

-  Introduced support for a Nostr Community Group with relay-based chat and events (NIP-29 standard).
- 🌐 Added integration with `group.einundzwanzig.space`, accessible via Flotilla or Nostr clients.
- 📋 Implemented "Copy Community Relay URL" functionality.
-  Updated tests to validate access for active, paid members.
This commit is contained in:
HolgerHatGarKeineNode
2026-07-06 19:19:08 +02:00
parent 29e737b879
commit 630fc08459
3 changed files with 196 additions and 58 deletions
@@ -33,3 +33,22 @@ it('copies the blossom url for active members', function () {
->call('copyBlossomUrl')
->assertHasNoErrors();
});
it('unlocks the nostr community group for active paid members', function () {
$pleb = EinundzwanzigPleb::factory()->active()->withPaidCurrentYear()->create();
NostrAuth::login($pleb->pubkey);
Livewire::test('association.benefits')
->assertSee('Nostr Community-Gruppe')
->assertSee('app.flotilla.social/spaces/group.einundzwanzig.space')
->assertSee('wss://group.einundzwanzig.space');
});
it('copies the community relay url for active members', function () {
$pleb = EinundzwanzigPleb::factory()->active()->withPaidCurrentYear()->create();
NostrAuth::login($pleb->pubkey);
Livewire::test('association.benefits')
->call('copyGroupRelayUrl')
->assertHasNoErrors();
});