Skip to content

Conversation

@tomerqodo
Copy link

Benchmark PR from qodo-benchmark#230

@augmentcode
Copy link

augmentcode bot commented Jan 22, 2026

🤖 Augment PR Summary

Summary: Removes the remaining “Inactive Tabs” (FXIOS-14327) implementation from the iOS tab tray.

Changes:

  • Drops inactive-tab UI components (cell/header/footer) and the layout section manager.
  • Removes inactive-tab models/state and related Redux actions/middleware paths.
  • Simplifies the tab tray diffable data source to a single tabs section.
  • Deletes inactive-tab toast variants and related accessibility identifiers.
  • Updates unit/UI tests to reflect the new single-section tab tray indexing.
  • Cleans up the Xcode project file references for removed sources.

Technical Notes: Tab tray scrolling and snapshot/index assumptions now rely on a single .tabs section (no inactive section).

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

// not contain a selected tab. In that case, we should scroll to the bottom of the panel.
// Note: Could optimize further by scrolling to the most recent tab if we had `lastExecutedTime` in our model
return ScrollState(toIndex: state.tabs.count - 1, isInactiveTabSection: false, withAnimation: shouldAnimate)
return ScrollState(toIndex: state.tabs.count, withAnimation: shouldAnimate)
Copy link

Choose a reason for hiding this comment

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

ScrollState(toIndex: state.tabs.count, ...) looks off-by-one (last valid row is count - 1) and can produce an invalid index path / failing tests when scrolling to the “bottom” without a selected tab.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

private func scrollToTab(_ scrollState: TabsPanelState.ScrollState) {
let section: Int = scrollState.isInactiveTabSection ? 0 : 1
let indexPath = IndexPath(row: scrollState.toIndex, section: section)
let indexPath = IndexPath(row: scrollState.toIndex, section: 1)
Copy link

Choose a reason for hiding this comment

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

scrollToTab now hard-codes section: 1, but the data source snapshot only appends the .tabs section (index 0); this likely prevents scrolling (or can hit invalid index paths) after removing the inactive tabs section.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/

import Redux
Copy link

Choose a reason for hiding this comment

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

This file no longer includes the MPL 2.0 header comment that exists in many other source files; worth confirming this removal is intentional and still meets the repo’s licensing/header requirements.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

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