mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-03 14:18:12 +00:00
refactor(application): extract status and internal access components
Move internal hostname loading and breadcrumb status into dedicated Livewire components with live refresh. Merge public/internal access into one Access section, bind Enter to save on the unsaved bar, and drop x-teleport wrappers from popup and global search.
This commit is contained in:
@@ -88,7 +88,7 @@ it('supports timed compact popup notifications', function () {
|
||||
->toContain("localStorage.setItem(this.storageKey, 'compact')")
|
||||
->toContain("localStorage.setItem(this.storageKey, 'icon')")
|
||||
->toContain('localStorage.removeItem(key)')
|
||||
->toContain('<template x-teleport="body">')
|
||||
->not->toContain('<template x-teleport="body">')
|
||||
->toContain('compact = true')
|
||||
->toContain('@click="restore()"')
|
||||
->toContain('@click.stop="minimizeToIcon()"')
|
||||
@@ -113,6 +113,22 @@ it('refreshes configuration changes when the event is received', function () {
|
||||
->assertSee('Build command');
|
||||
});
|
||||
|
||||
it('shows domain changes when the domain page dispatches a configuration change', function () {
|
||||
$application = configurationCheckerApplication($this->environment);
|
||||
markConfigurationCheckerApplicationDeployed($application);
|
||||
|
||||
$component = Livewire::test(ConfigurationChecker::class, ['resource' => $application->refresh()])
|
||||
->assertSet('isConfigurationChanged', false);
|
||||
|
||||
$application->update(['fqdn' => 'https://changed.example.com']);
|
||||
|
||||
$component
|
||||
->dispatch('configurationChanged')
|
||||
->assertSet('isConfigurationChanged', true)
|
||||
->assertSee('Domains')
|
||||
->assertSee('https://changed.example.com');
|
||||
});
|
||||
|
||||
it('shows an unapplied configuration warning after a directory mount is added', function () {
|
||||
$application = configurationCheckerApplication($this->environment);
|
||||
markConfigurationCheckerApplicationDeployed($application);
|
||||
|
||||
Reference in New Issue
Block a user