-
Notifications
You must be signed in to change notification settings - Fork 0
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
[fairground] Add new attributes for card UI introduced by new dynamic layouts #94
[fairground] Add new attributes for card UI introduced by new dynamic layouts #94
Conversation
16bae4f
to
821b087
Compare
821b087
to
02af26b
Compare
@waisingyiu has published a preview version of this PR with release workflow run #45, based on commit 02af26b: 1.0.21-PREVIEW.fairgroundnew-card-ui-for-dynamic-containers.2024-07-22T1541.02af26b0 Want to make another preview release?Click 'Run workflow' in the GitHub UI, specifying the fairground/new-card-ui-for-dynamic-containers branch, or use the GitHub CLI command: gh workflow run release.yml --ref fairground/new-card-ui-for-dynamic-containers Want to make a full release after this PR is merged?Click 'Run workflow' in the GitHub UI, leaving the branch as the default, or use the GitHub CLI command: gh workflow run release.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏽
* Define constants for the arrangement of sublinks on a card | ||
*/ | ||
enum SublinksArrangement { | ||
SUBLINKS_ARRANGEMENT_UNSPECIFIED = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious - why do we need unspecified? Is this a protobuf requirement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It provides a way for client code to handle default/fallback values - #31
The constant which is mapped to 0 in an enum
is the default value in protobuf format.
What does this change?
We are going to build new card UIs based on the design of new dynamic containers as part of the homepage redesign project.
This pull request adds new attributes to schema so that MAPI can provide the native apps with directives which UI variant to use to render each card.