Skip to content

Add branding attributes to brands - #3019

Merged
theseanything merged 4 commits into
mainfrom
add-branding-attributes-to-brands
Aug 13, 2026
Merged

Add branding attributes to brands#3019
theseanything merged 4 commits into
mainfrom
add-branding-attributes-to-brands

Conversation

@theseanything

@theseanything theseanything commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Runner keeps each brand's styling and organisation details in a static branding.yml file, so changing a brand's appearance means a code change and a deploy. Brands in forms-admin only store a name and slug.

This stores the branding attribute on the brands model, so super admins can manage them. This gets us a step closer to switch runner to using the brands API instead of its static configuration.

Image assets (logo, favicon, opengraph) are not included for now and will address once we serve assets from S3.
govuk-forms/forms-deploy#2192

image image

@theseanything
theseanything force-pushed the add-branding-attributes-to-brands branch 9 times, most recently from b842bfe to caaef4b Compare August 12, 2026 15:15
The runner keeps each brand's styling and organisation details in a
static branding.yml file, so changing a brand's colours or details
means a code change. Brands in forms-admin only store a name and slug.

Add background colour, border colour, organisation name, organisation
URL and copyright holder columns to brands. All five attributes are
required, colours must be lowercase six digit hex codes and the
organisation URL must start with http:// or https://. Permit the new
attributes in the brands controller so they can be set on create and
update.
The seeded brands were named after real councils, which could be
mistaken for genuine data in local and review environments. They also
had no values for the new branding attributes, which are now required.

Replace them with obviously fictional councils and give them values
for every branding attribute.
Brands now store colours and organisation details, but there was no
way to see or change them in the interface.

Add fields for the new attributes to the new and edit brand forms,
with hint text showing the expected hex colour format, and list the
attributes on the brand details page.
The runner fetches brand configuration from the brands API but only
receives the name and slug, so it still has to look up colours and
organisation details in its local branding.yml file.

Include the branding attributes in the API response so the runner can
use them instead of its static configuration.
@theseanything
theseanything force-pushed the add-branding-attributes-to-brands branch from caaef4b to e029d95 Compare August 12, 2026 15:52
@theseanything
theseanything marked this pull request as ready for review August 12, 2026 15:54
@github-actions

Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-3019.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

@theseanything
theseanything added this pull request to the merge queue Aug 13, 2026
Merged via the queue into main with commit 722a42c Aug 13, 2026
3 checks passed
@theseanything
theseanything deleted the add-branding-attributes-to-brands branch August 13, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants