🛠️ Refactor service components: Add dynamic type filters, restructure landing page UI, and introduce ServiceForm for improved form handling and validations

This commit is contained in:
HolgerHatGarKeineNode
2025-12-07 01:06:20 +01:00
parent aef4deedd6
commit 14f717a2b9
10 changed files with 414 additions and 312 deletions

View File

@@ -15,8 +15,11 @@ it('creates a self hosted service', function () {
->set('name', 'My Node')
->set('type', SelfHostedServiceType::Mempool->value)
->set('url_clearnet', 'https://example.com')
->set('contact_url', 'https://contact.example.com')
->set('contact', ['url' => 'https://contact.example.com'])
->call('save');
expect(SelfHostedService::where('name', 'My Node')->exists())->toBeTrue();
$service = SelfHostedService::where('name', 'My Node')->first();
expect($service->getFirstMedia('logo'))->toBeNull();
});