Skip to content

Conversation

@0nko
Copy link
Member

@0nko 0nko commented Oct 31, 2025

Task/Issue URL: https://app.asana.com/1/137249556945/project/1207418217763355/task/1211565479656355?focus=true

Description

This PR adds the last integration of the split omnibar to the address bar:

  • When the split omnibar type is selected, the top omnibar buttons are hidden
  • The mock toolbar must show the split omnibar when loading

Steps to test this PR

Omnibar button

  • Enable the splitOmnibar flag
  • Go to Settings -> Appearance
  • Select the split omnibar
  • Go back to the browser
  • Notice the buttons next to the address bar are gone

Mock split toolbar

  • Restart the app
  • While the app is loading, notice the mock top bar and bottom navigation bar are displayed until the app's loaded

@0nko 0nko mentioned this pull request Oct 31, 2025
20 tasks
@0nko 0nko changed the title Hide the icon container for split omnibar Split Omnibar: Address bar integration Oct 31, 2025
@0nko 0nko marked this pull request as ready for review October 31, 2025 21:09
@0nko 0nko requested a review from LukasPaczos October 31, 2025 21:09
@0nko 0nko force-pushed the feature/ondrej/split-omnibar-bottom-navigation branch from 09fe074 to b658d9f Compare November 3, 2025 10:38
@0nko 0nko force-pushed the feature/ondrej/split-omnibar-address-bar branch from 6a5cb77 to 539390e Compare November 3, 2025 10:38
@0nko 0nko mentioned this pull request Nov 3, 2025
12 tasks
@0nko 0nko force-pushed the feature/ondrej/split-omnibar-bottom-navigation branch from 1837d54 to 34b46fd Compare November 3, 2025 18:10
@0nko 0nko force-pushed the feature/ondrej/split-omnibar-address-bar branch from 539390e to 697f6fb Compare November 3, 2025 18:10
Base automatically changed from feature/ondrej/split-omnibar-bottom-navigation to develop November 3, 2025 18:34
@0nko 0nko force-pushed the feature/ondrej/split-omnibar-address-bar branch from 065ac0e to 7b19df7 Compare November 3, 2025 18:36
@0nko 0nko requested review from malmstein and removed request for LukasPaczos November 3, 2025 18:44
Copy link
Contributor

@malmstein malmstein left a comment

Choose a reason for hiding this comment

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

Let’s avoid creating more flags that duplicate what’s already existing.

private val _viewState = MutableStateFlow(
ViewState(
showChatMenu = duckAiFeatureState.showOmnibarShortcutInAllStates.value,
showButtons = settingsDataStore.omnibarType != OmnibarType.SPLIT,
Copy link
Contributor

Choose a reason for hiding this comment

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

there is already a showTabsMenu, showFireIcon and showBrowserMenu, why not use those instead? showButtons is not really clear what it means

Copy link
Contributor

Choose a reason for hiding this comment

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

I’d use the existing flags to decide if the container needs to be shown or not. Bonus points if doing that also prevents the Transition in renderButtons to run if the buttons are not visible.

* If the remote feature is not present defaults to `false`
*/
@Toggle.DefaultValue(DefaultFeatureValue.FALSE)
@Toggle.DefaultValue(DefaultFeatureValue.INTERNAL)
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be false by default, otherwise you’re turning this on for all internal users

binding = binding,
isUnifiedOmnibarEnabled = omnibarFeatureRepository.isUnifiedOmnibarFlagEnabled,
)
configureNavigationBar()
Copy link
Contributor

Choose a reason for hiding this comment

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

what’s the reason for this change?

Copy link
Member Author

@0nko 0nko Nov 4, 2025

Choose a reason for hiding this comment

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

To initialize the navigation bar earlier and reduce the flickering when loading. It helped a bit but did not fully work. I found the actual reason, so reverting (not that it really matters).

@0nko 0nko requested a review from malmstein November 4, 2025 07:39
@0nko
Copy link
Member Author

0nko commented Nov 4, 2025

@malmstein Thanks. Ready for another round.

@0nko 0nko force-pushed the feature/ondrej/split-omnibar-address-bar branch from e25a604 to 643feee Compare November 4, 2025 08:07
@0nko 0nko force-pushed the feature/ondrej/split-omnibar-address-bar branch from 7ebd273 to b136ce0 Compare November 4, 2025 16:35
@0nko 0nko mentioned this pull request Nov 4, 2025
15 tasks
@malmstein malmstein self-assigned this Nov 4, 2025
Copy link
Contributor

@malmstein malmstein left a comment

Choose a reason for hiding this comment

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

works great, thanks @0nko !

@0nko 0nko merged commit 0973926 into develop Nov 5, 2025
13 of 14 checks passed
@0nko 0nko deleted the feature/ondrej/split-omnibar-address-bar branch November 5, 2025 10:43
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