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

Bugfix FXIOS-10756 App hangs while opening Tab Tray when there are many tabs open #23474

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

Conversation

FilippoZazzeroni
Copy link
Collaborator

@FilippoZazzeroni FilippoZazzeroni commented Nov 29, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

Bug fix App hang while opening the tab tray that is mainly caused by the TabTrayDisplayView.newState being called many times. Optimize scrollToTab method to wait for the collection view layout to finish, instead of forcing layout.
Bug fix swipe gesture to delete tab flashing back to normal position after the tab was dismissed.

Here is the link of the currently tracked app hangs Spreadsheet

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Nov 29, 2024

Messages
📖 Project coverage: 33.94%
📖 Edited 5 files
📖 Created 0 files

Client.app: Coverage: 31.91

File Coverage
TabDisplayPanelViewController.swift 72.41%
TabDisplayView.swift 40.09% ⚠️
SwipeAnimator.swift 15.15% ⚠️
TabTrayViewController.swift 56.2%
TabCell.swift 71.01%

Generated by 🚫 Danger Swift against 4752f98

Copy link
Contributor

mergify bot commented Nov 29, 2024

This pull request has conflicts when rebasing. Could you fix it @FilippoZazzeroni? 🙏

@FilippoZazzeroni
Copy link
Collaborator Author

FilippoZazzeroni commented Nov 29, 2024

@mergify backport release/v134

Copy link
Contributor

mergify bot commented Nov 29, 2024

backport release/v134

🟠 Waiting for conditions to match

  • merged [📌 backport requirement]

@@ -291,15 +291,19 @@ class TabTrayViewController: UIViewController,
}

func newState(state: TabTrayState) {
tabTrayState = state
updateTabCountImage(count: state.normalTabsCount)
defer {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to defer the state?

@lmarceau lmarceau changed the title Bugfix FXIOS App hangs while opening Tab Tray when there are many tabs open Bugfix FXIOS-10756 App hangs while opening Tab Tray when there are many tabs open Dec 2, 2024
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.

3 participants