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

[fairground] Add new attributes for card UI introduced by new dynamic layouts #94

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

waisingyiu
Copy link
Contributor

@waisingyiu waisingyiu commented Jul 22, 2024

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.

@waisingyiu waisingyiu changed the title Add new attributes to support new card UI introduced by new dynamic l… [fairground] Add new attributes to support new card UI introduced by new dynamic l… Jul 22, 2024
@waisingyiu waisingyiu force-pushed the fairground/new-card-ui-for-dynamic-containers branch from 16bae4f to 821b087 Compare July 22, 2024 15:10
@waisingyiu waisingyiu changed the title [fairground] Add new attributes to support new card UI introduced by new dynamic l… [fairground] Add new attributes for card UI introduced by new dynamic layouts Jul 22, 2024
@waisingyiu waisingyiu marked this pull request as ready for review July 22, 2024 15:16
@waisingyiu waisingyiu requested a review from a team as a code owner July 22, 2024 15:16
@waisingyiu waisingyiu force-pushed the fairground/new-card-ui-for-dynamic-containers branch from 821b087 to 02af26b Compare July 22, 2024 15:39
@gu-scala-library-release
Copy link
Contributor

@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

Copy link
Member

@ab-gnm ab-gnm left a 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;
Copy link
Member

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?

Copy link
Contributor Author

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.

@waisingyiu waisingyiu merged commit c5ee428 into main Jul 23, 2024
9 checks passed
@waisingyiu waisingyiu deleted the fairground/new-card-ui-for-dynamic-containers branch July 23, 2024 13:33
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