feat(brand): add header background color to brand resource

This commit is contained in:
2026-09-29 14:22:21 -03:00
parent 794acc4814
commit 4bdd3effcc
2 changed files with 3 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ class BrandResource extends JsonResource
return [
'nombre' => $this->nombre,
'primary_color' => $this->primary_color,
'header_bg_color' => $this->header_bg_color,
'footer_bg_color' => $this->footer_bg_color,
'header_logo' => $this->headerLogo?->getTemporaryUrl(1440),
'footer_logo' => $this->footerLogo?->getTemporaryUrl(1440),

View File

@@ -53,6 +53,7 @@ class AdminAppBrandControllerTest extends TestCase
$tenant = $this->tenant('acme', $websiteType, [
'nombre' => 'Acme',
'primary_color' => '#112233',
'header_bg_color' => '#223344',
'footer_bg_color' => '#445566',
'header_logo_id' => $header->id,
'footer_logo_id' => $footer->id,
@@ -73,6 +74,7 @@ class AdminAppBrandControllerTest extends TestCase
->assertOk()
->assertJsonPath('data.nombre', 'Acme')
->assertJsonPath('data.primary_color', '#112233')
->assertJsonPath('data.header_bg_color', '#223344')
->assertJsonPath('data.footer_bg_color', '#445566')
->assertJsonCount(2, 'data.banner_images');