Show linked domains on cards and fix Email leftovers.
Deploy Ladill Hosting / deploy (push) Successful in 24s

Display hosted_sites on account cards, scope Afia and Settings to hosting,
add hosting_settings for notifications, and remove mailbox UI from the
hosting layout and account pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-06 17:30:40 +00:00
co-authored by Cursor
parent c4bd4efbed
commit 5703a00862
19 changed files with 202 additions and 329 deletions
+2 -7
View File
@@ -5,7 +5,6 @@ namespace Tests\Feature;
use App\Models\EmailTeamMember;
use App\Models\User;
use App\Services\Billing\BillingClient;
use App\Services\Mailbox\MailboxClient;
use App\Services\Payment\WalletPaymentService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Str;
@@ -29,7 +28,7 @@ class AccountPagesTest extends TestCase
public function test_settings_page_renders(): void
{
$this->actingAs($this->user())->get(route('account.settings'))->assertOk()->assertSee('Mailbox defaults');
$this->actingAs($this->user())->get(route('account.settings'))->assertOk()->assertSee('Hosting notifications');
}
public function test_team_page_renders_with_owner(): void
@@ -66,12 +65,8 @@ class AccountPagesTest extends TestCase
$b->shouldReceive('balanceMinor')->andReturn(5000);
$this->app->instance(BillingClient::class, $b);
$m = Mockery::mock(MailboxClient::class);
$m->shouldReceive('forUser')->andReturn([['address' => 'a@x.com', 'is_paid' => true, 'status' => 'active', 'quota_mb' => 10240]]);
$this->app->instance(MailboxClient::class, $m);
$this->actingAs($this->user())->get(route('account.billing'))
->assertOk()->assertSee('Mailbox subscriptions')->assertSee('a@x.com')->assertSee('10 GB');
->assertOk()->assertSee('Spent on hosting');
}
public function test_switch_account_rejects_inaccessible(): void