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

[MOB-7458] - Aligning iOS with Android #704

Merged
merged 7 commits into from
Dec 18, 2023

Conversation

Ayyanchira
Copy link
Member

@Ayyanchira Ayyanchira commented Dec 14, 2023

🔹 Jira Ticket(s)

✏️ Description

Config object
Enum for type
Removal of ViewDelegate and its methods

Config object
Enum for type
Removal of ViewDelegate and its methods
@Ayyanchira Ayyanchira requested a review from evantk91 December 14, 2023 13:14
@Ayyanchira Ayyanchira changed the base branch from anelson/ootb-banner to embedded-messaging December 14, 2023 14:09
1. Clicks now call the action handler and urlHandler of iterableConfig. This means they can open passed url. However, in recent commit, Ive removed the generic delegate methods which removes the didPrimaryButtonPressed and similar callbacks that viewControllers could implement. Now this is more aligned with Android implementation.
2. Sync messages now gets called in manager's init method. We have to try accomplishing the same thing via app's lifecycle activity. Somehow, for the first launch, the manager is not calling sync messages. Hence calling it during initialization
Copy link
Collaborator

@evantk91 evantk91 left a comment

Choose a reason for hiding this comment

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

LGTM at least for today's bug bash.

A few points we need to address before release:

  • notification default is not aligned with Android. The background and border colors differ from the card and banner styles.
  • the second button is defaulting to this weird block button. it should be a button with a transparent background and the same color text as the first button. See the figma.
  • the second button background and border color should be configurable. I will add this to the android side.
  • the card view type should collapse when the image is not provided to align with the android side and the discussion I had with design (stephanie)


public init(backgroundColor: UIColor? = UIColor.white,
borderColor: UIColor? = UIColor.white,
borderWidth: CGFloat? = 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good. But the notification view has different characteristics.

}
}

//TODO: Remove commented lines before release
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove commented lines.

@Ayyanchira
Copy link
Member Author

Will bug bash with this branch so we can work on this before merging into embedded

@evantk91 evantk91 changed the base branch from embedded-messaging to anelson/ootb-banner December 16, 2023 17:07
@evantk91
Copy link
Collaborator

evantk91 commented Dec 17, 2023

LGTM at least for today's bug bash.

A few points we need to address before release:

  • notification default is not aligned with Android. The background and border colors differ from the card and banner styles.
  • the second button is defaulting to this weird block button. it should be a button with a transparent background and the same color text as the first button. See the figma.
  • the second button background and border color should be configurable. I will add this to the android side.
  • the card view type should collapse when the image is not provided to align with the android side and the discussion I had with design (stephanie)
  • point 1 addressed
  • point 2 addressed
  • point 3 button background updated to be configurable. Border color is not configurable. Needs to be looked into.
  • point 4 addressed

Copy link
Collaborator

@evantk91 evantk91 left a comment

Choose a reason for hiding this comment

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

LGTM. merging with base feature branch.

@evantk91 evantk91 merged commit 1db7da5 into anelson/ootb-banner Dec 18, 2023
0 of 2 checks passed
@evantk91 evantk91 deleted the MOB-7458-ootb-aligning-with-android branch December 18, 2023 17:41
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