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

REPLAY-1516 Unsupported ViewController placeholder #1243

Merged

Conversation

maciejburda
Copy link
Member

@maciejburda maciejburda commented Apr 11, 2023

What and why?

Adds placeholders for certain view controllers.

How?

It's done by figuring out the private view class for each unsupported VC.
In that case we ignore it and put a placeholder wireframe in place.
testActivity()
testSafari()

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests
  • Run integration tests
  • Run smoke tests

@maciejburda
Copy link
Member Author

Add snapshot test

@maciejburda maciejburda force-pushed the maciey/REPLAY-1516-unsupported-viewcontroller-support branch from c131e4a to 7f48846 Compare April 12, 2023 11:32
@maciejburda maciejburda marked this pull request as ready for review April 12, 2023 14:27
@maciejburda maciejburda requested a review from a team as a code owner April 12, 2023 14:27
@maciejburda maciejburda force-pushed the maciey/REPLAY-1516-unsupported-viewcontroller-support branch from 4b8e08e to 31b781f Compare April 13, 2023 10:02
@maciejburda
Copy link
Member Author

As discussed - removed snapshot tests for these

@maciejburda maciejburda force-pushed the maciey/REPLAY-1516-unsupported-viewcontroller-support branch from 31b781f to c02076c Compare April 14, 2023 09:38
Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

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

I get the idea 👌, but backward iteration over responder chain for each view is too slow (it adds +20% to main thread time in some measured cases). We need a different approach IMO - I left one suggestion.

@maciejburda maciejburda force-pushed the maciey/REPLAY-1516-unsupported-viewcontroller-support branch from c02076c to f7393fa Compare April 20, 2023 12:14
@maciejburda
Copy link
Member Author

Depends on this:
#1257

@maciejburda maciejburda force-pushed the maciey/REPLAY-1516-unsupported-viewcontroller-support branch 3 times, most recently from 296238f to 949ad27 Compare April 26, 2023 17:18
@maciejburda maciejburda force-pushed the maciey/REPLAY-1516-unsupported-viewcontroller-support branch from 949ad27 to c5b1e04 Compare April 28, 2023 09:47
@maciejburda maciejburda requested a review from ncreated April 28, 2023 09:47
Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

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

💪 It looks good in overall 👌. I left few suggestions, with spotting two places in tests that will become flaky ❄️ once we start comparing snapshot images on CI (coming pretty soon).

@maciejburda
Copy link
Member Author

maciejburda commented May 4, 2023

Thanks for great review!

I was exploring static content, but unfortunately it's only possible for web view (but not safari vc).

Made some changes. Pushing soon :)

Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

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

👏 🤜 🤛

Comment on lines +97 to +99
private protocol AnyUIHostingViewController: AnyObject {}
@available(iOS 13.0, *)
extension UIHostingController: AnyUIHostingViewController {}
Copy link
Member

Choose a reason for hiding this comment

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

Nice 🥇

@maciejburda maciejburda merged commit cbe3ab7 into develop May 4, 2023
@maciejburda maciejburda deleted the maciey/REPLAY-1516-unsupported-viewcontroller-support branch May 4, 2023 13:41
@ncreated ncreated mentioned this pull request May 17, 2023
6 tasks
@ncreated ncreated mentioned this pull request May 24, 2023
6 tasks
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