FEATURE: rebranded admin logos settings (#31554)

Redesigned page to update site logos. `AdminBrandingLogoFormComponent`
is attached to the old logos page and the new branding page. In the next
steps, branding will replace the logos page.

A new `AdminConfigAreaCardSection` component was added hidden and less
frequently used settings.

An image placeholder was also needed because many additional logos have
a fallback to the site logo.

Finally, `twitter_summary_large_image` was renamed to
`x_summary_large_image`.

Desktop
![localhost_4200_admin_config_branding
(4)](https://github.com/user-attachments/assets/b6ae5266-72f6-4582-b0ef-4d05545943e8)


Mobile
![localhost_4200_admin_config_branding(iPhone 12 Pro)
(3)](https://github.com/user-attachments/assets/bf329a5c-9ba0-4d88-b30d-e8f1feb02e31)
This commit is contained in:
Krzysztof Kotlarek
2025-03-04 12:51:27 +11:00
committed by GitHub
parent 76e58a55ed
commit dbba838ef4
21 changed files with 1044 additions and 20 deletions

View File

@ -0,0 +1,34 @@
# frozen_string_literal: true
class XSummaryLargeImageBasedOnDeprecatedSetting < ActiveRecord::Migration[7.2]
def up
old_setting =
DB.query_single(
"SELECT value FROM site_settings WHERE name = 'twitter_summary_large_image' LIMIT 1",
).first
if old_setting.present?
DB.exec(
"INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
VALUES('x_summary_large_image', :setting, '18', NOW(), NOW())",
setting: old_setting,
)
end
end
def down
old_setting =
DB.query_single(
"SELECT value FROM site_settings WHERE name = 'x_summary_large_image' LIMIT 1",
).first
if old_setting.present?
DB.exec(
"INSERT INTO site_settings(name, value, data_type, created_at, updated_at)
VALUES('twitter_summary_large_image', :setting, '18', NOW(), NOW())
ON CONFLICT DO UPDATE",
setting: old_setting,
)
end
end
end