Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aspect ratio to frontend collection config #27621

Merged
merged 6 commits into from
Nov 26, 2024
Merged

Conversation

Georges-GNM
Copy link
Contributor

@Georges-GNM Georges-GNM commented Nov 19, 2024

What is the value of this and can you measure success?

Part of this fairground ticket

Requires this DCR PR, as well as this facia-scala-client one which adds the logic to get the aspect ratio from the collection type. Once the facia scala client PR has been approved and the update released, I'll update this branch with the latest version of the library.

Supports aspectRatio as an optional property in the frontend collection config.

Deployed to code and, after relaunching the fairground front, checked we could see the value appear in the pressed json:
image

With the DCR PR, I could also see the expected value come through (rendered here through a div inserted on the front with the following: <div>{collection.collectionType}, aspect ratio: {collection.aspectRatio}</div>

image

@Georges-GNM Georges-GNM merged commit 55da434 into main Nov 26, 2024
6 checks passed
@Georges-GNM Georges-GNM deleted the gl/aspect-ratio branch November 26, 2024 15:54
@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (merged by @Georges-GNM 13 minutes and 30 seconds ago)

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (merged by @Georges-GNM 13 minutes and 44 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants