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

feat: add new oca branding #1320

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

fc-santos
Copy link
Contributor

@fc-santos fc-santos commented Nov 18, 2024

Summary of Changes

This PR adds a new BrandingOverlayType.Branding11. The default branding is still the BrandingOverlayType.Branding10. Here what the new branding looks like:

When there is an OCA bundle:
image

No OCA bundle:
image

Related Issues

N/A

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this);
  • Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components;
  • Updated documentation as needed for changed code and new or modified features;
  • Added sufficient tests so that overall code coverage is not reduced.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated tests have passed.

PR template adapted from the Python attrs project.

@fc-santos fc-santos marked this pull request as draft November 18, 2024 18:43
}

if (credential) {
if (type === BrandingOverlayType.Branding01) {
return <CredentialCard10 credential={credential as CredentialExchangeRecord} style={style} onPress={onPress} />
} else if (type == BrandingOverlayType.Branding11) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this PR is still in draft but will it eventually have a BrandingOverlayType.Branding12 and use that here, rather than use the 12 card with the 11 overlay type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could do some refactor here @bryce-mcmath but in the oca package there is the Branding01, Branding10 and Branding11. The bifold component that implements each one of these are CredentialCard10 (For the legacy branding), CredentialCard11 (Branding10) and now CredentialCard12 (Branding11).

I'm not sure why the components were not named respectively CredentialCard01, CredentialCard10 in the beginning (maybe due to lint reasons). Maybe we could name them:

Legacy -> CredentialCard01
Branding 1.0 -> CredentialCard10
Branding 1.1 -> CredentialCard11

Let me know what you think. Thanks!

@fc-santos fc-santos marked this pull request as ready for review November 20, 2024 16:35
@jcdrouin21 jcdrouin21 requested review from jleach and MosCD3 November 27, 2024 21:18
Copy link

sonarcloud bot commented Nov 29, 2024

Copy link
Contributor

@cvarjao cvarjao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryce-mcmath , please review when you are back

Copy link
Contributor

@cvarjao cvarjao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@knguyenBC
Copy link
Contributor

knguyenBC commented Dec 5, 2024

It looks like only the style guide RFC will need to be updated. It'll need to be updated to include this other rendering of the OCA bundle as the this new rendering uses the same OCA bundles, but only lays it out differently.

@MosCD3
Copy link
Contributor

MosCD3 commented Dec 12, 2024

@fc-santos Can we have a discussion about this PR. Reach out in discord or slack if you have my connection

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.

5 participants