feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)

Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
Andras BacsaiandShadowArcanist authored and GitHub committed 2026-08-03 23:11:54 +02:00
1 parent 0b843bb07c
commit 8ae56587d5
497 files changed
+44045 -22630

No files matched your search

@@ -11,7 +11,10 @@ use Livewire\Livewire;
uses(RefreshDatabase::class);
beforeEach(function () {
InstanceSettings::updateOrCreate(['id' => 0]);
InstanceSettings::query()->delete();
$settings = new InstanceSettings;
$settings->id = 0;
$settings->save();
$this->team = Team::factory()->create(['personal_team' => false]);
@@ -138,6 +141,21 @@ test('owner can update team MCP setting', function () {
expect($this->team->fresh()->is_mcp_server_enabled)->toBeFalse();
});
test('team index mounts when is_mcp_server_enabled is null on the session team', function () {
$this->actingAs($this->owner);
// Simulate Team::create() without hydrating the DB default into session.
$this->team->setRawAttributes(array_merge(
$this->team->getAttributes(),
['is_mcp_server_enabled' => null],
));
session(['currentTeam' => $this->team]);
Livewire::test(TeamIndex::class)
->assertSuccessful()
->assertSet('is_mcp_server_enabled', true);
});
// --- Team Index Livewire: delete ---
test('member cannot delete team via index', function () {