mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 22:15:35 +00:00
fix(ui): prefer Compose env values and polish error pages
When a managed variable shares a Compose-defined key, show the hardcoded Compose value as read-only and exclude it from managed rows. Render Contact support as a button, use the collapsible component for 419 proxy help, and style its list/code markers.
This commit is contained in:
1 parent
47da47d8e0
commit
e50108a905
8 files changed
+78
-24
No files matched your search
@@ -57,9 +57,22 @@ it('uses login as primary action on session expired page', function () {
|
||||
->toContain('/login')
|
||||
->toContain('Back to login')
|
||||
->toContain('Using a reverse proxy or Cloudflare Tunnel?')
|
||||
->toContain('x-data="{ open: false }"')
|
||||
->toContain('x-on:click="open = !open"')
|
||||
->toContain('livewire.js')
|
||||
->not->toContain('>Dashboard</');
|
||||
});
|
||||
|
||||
it('renders contact support as a button', function () {
|
||||
$exception = new HttpException(404, 'Not found');
|
||||
|
||||
$html = view('errors.404', ['exception' => $exception])->render();
|
||||
|
||||
expect($html)
|
||||
->toContain('href="'.config('constants.urls.contact').'"')
|
||||
->toMatch('/<button[^>]*>\s*Contact support/s');
|
||||
});
|
||||
|
||||
it('shows purified exception message on 500 page', function () {
|
||||
$exception = new RuntimeException('Database connection failed');
|
||||
|
||||
|
||||
Reference in new issue
Block a user