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

Omnibar position: UI fixes #5003

Merged

Conversation

0nko
Copy link
Member

@0nko 0nko commented Sep 12, 2024

Task/Issue URL: https://app.asana.com/0/1207418217763355/1208269999932720/f

Description

This PR contains multiple design fixes but mainly addresses an issue with a fixes-size websites that were covered by the bottom toolbar.

Fixes issues:

  • Browser menu not shown at the correct position after tapping the menu button with the keyboard open
  • Incorrect autocomplete suggestion icons
  • Bottom toolbar covering up the web content of fixed-sized websites
  • Tapping on a bottom toolbar’s edges leaked clicks to the web view
  • Onboarding dialog and NTP had extra padding at the top when toolbar at the bootom
  • There was a zombie shadow of the toolbar

UI changes

Screen_recording_20240913_015829.mp4

Screenshot_20240910_132343
Screenshot_20240910_132443
Screenshot_20240913_003744
Screenshot_20240913_003843
Screenshot_20240913_003932
Screenshot_20240913_004024
Screenshot_20240913_011751

Copy link
Member Author

0nko commented Sep 12, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @0nko and the rest of your teammates on Graphite Graphite

@0nko 0nko force-pushed the feature/ondrej/omnibar-position-translation branch from 6b11d0b to 39c7a9f Compare September 12, 2024 11:58
@0nko 0nko force-pushed the feature/ondrej/omnibar-postion-fixes branch 2 times, most recently from 4e42bc7 to 30c23f5 Compare September 13, 2024 07:42
@0nko 0nko marked this pull request as ready for review September 13, 2024 12:21
@0nko 0nko requested a review from malmstein September 13, 2024 12:21
@malmstein malmstein self-assigned this Sep 13, 2024
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.

Added some early feedback. Overall the solution looks much better than before, but I’ll hold any more review until the outstanding issues are solved.

@@ -76,6 +76,7 @@ class BottomAppBarBehavior<V : View>(context: Context, attrs: AttributeSet) : Co
) {
super.onNestedPreScroll(coordinatorLayout, child, target, dx, dy, consumed, type)

// don't hide the app bar in the autocomplete suggestions list or the NTP
if (target.id != R.id.autoCompleteSuggestionsList && target.id != com.duckduckgo.newtabpage.impl.R.id.newTabContentScroll) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is targetting specific ids safe? Can we pass the ids as part of the class constructor instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

The behavior is applied in the layout, as well, so probably not. But I’ve since changed this because the only target we really want is the webView. See the latest changes.

@0nko 0nko force-pushed the feature/ondrej/omnibar-postion-fixes branch from d4df09f to 0bb3b70 Compare September 17, 2024 14:32
@0nko 0nko force-pushed the feature/ondrej/omnibar-position-translation branch from 62f9087 to 651f9a4 Compare September 17, 2024 14:33
0nko and others added 17 commits September 19, 2024 10:37
Task/Issue URL: https://app.asana.com/0/0/1208157864474373/f

### Description

### Steps to test this PR

- [ ] Start the omnibar at the top
- [ ] Reload the page and notice the dummy toolbar is shown at the top
- [ ] Change the omnibar to the bottom
- [ ] Reload the page and notice the dummy toolbar is shown at the
bottom
Task/Issue URL:
https://app.asana.com/0/1207418217763355/1208166986247266/f

- [ ] Change the omnibar position to the bottom
- [ ] Start typing in the address bar
- [ ] Notice the suggestions are correctly displayed above the toolbar

| Before  | After |
| ------ | ----- |

![image](https://github.com/user-attachments/assets/dfae5e47-a6e1-4d4d-bc25-4847ef4a0a32)|![image](https://github.com/user-attachments/assets/7ef7a0f9-cc74-41f5-8f28-d1d3462b740f)|
Translate strings to values-es
Translate strings to values-ro
Translate strings to values-tr
Translate strings to values-sk
Translate strings to values-ru
Translate strings to values-et
Translate strings to values-it
Translate strings to values-pl
Translate strings to values-bg
Translate strings to values-lv
Translate strings to values-fi
Translate strings to values-sl
Translate strings to values-nl
Translate strings to values-hr
Translate strings to values-hu
Translate strings to values-nb
Translate strings to values-sv
Translate strings to values-da
Translate strings to values-el
Translate strings to values-fr
Translate strings to values-lt
Translate strings to values-pt
Translate strings to values-cs
Translate strings to values-es
Translate strings to values-ro
Translate strings to values-tr
Translate strings to values-sk
Translate strings to values-ru
Translate strings to values-et
Translate strings to values-it
Translate strings to values-pl
Translate strings to values-bg
Translate strings to values-lv
Translate strings to values-fi
Translate strings to values-sl
Translate strings to values-nl
Translate strings to values-hr
Translate strings to values-hu
Translate strings to values-nb
Translate strings to values-sv
Translate strings to values-da
Translate strings to values-el
Translate strings to values-fr
Translate strings to values-lt
Translate strings to values-pt
Translate strings to values-cs
@0nko 0nko force-pushed the feature/ondrej/omnibar-position-translation branch from 651f9a4 to f6557ca Compare September 19, 2024 09:00
@0nko 0nko force-pushed the feature/ondrej/omnibar-postion-fixes branch from 81f856a to 5489ecb Compare September 19, 2024 09:00
Base automatically changed from feature/ondrej/omnibar-position-translation to feature/ondrej/omnibar-position September 19, 2024 10:33
@0nko 0nko merged commit 04e15a0 into feature/ondrej/omnibar-position Sep 19, 2024
5 of 6 checks passed
@0nko 0nko deleted the feature/ondrej/omnibar-postion-fixes branch September 19, 2024 10:33
0nko added a commit that referenced this pull request Sep 19, 2024
Task/Issue URL:
https://app.asana.com/0/1207418217763355/1208269999932720/f

This PR contains multiple design fixes but mainly addresses an issue
with a fixes-size websites that were covered by the bottom toolbar.

Fixes issues:

- Browser menu not shown at the correct position after tapping the menu
button with the keyboard open
- Incorrect autocomplete suggestion icons
- Bottom toolbar covering up the web content of fixed-sized websites
- Tapping on a bottom toolbar’s edges leaked clicks to the web view
- Onboarding dialog and NTP had extra padding at the top when toolbar at
the bootom
- There was a zombie shadow of the toolbar

https://github.com/user-attachments/assets/c5a7ae9a-f543-433b-9ef7-562f17f3af39

![Screenshot_20240910_132343](https://github.com/user-attachments/assets/d7c864aa-0912-4ca7-b046-aa14b97a8202)

![Screenshot_20240910_132443](https://github.com/user-attachments/assets/48a78d4a-5860-4e00-a0dc-922aae7d3ef5)

![Screenshot_20240913_003744](https://github.com/user-attachments/assets/3cffb693-7eac-413f-a304-436e6b3795fa)

![Screenshot_20240913_003843](https://github.com/user-attachments/assets/63b1f5a9-fd03-4cbd-a089-5c6dae18ae04)

![Screenshot_20240913_003932](https://github.com/user-attachments/assets/8e6f9172-1833-4899-a544-1ec922926740)

![Screenshot_20240913_004024](https://github.com/user-attachments/assets/054fea28-267b-4d7f-a91b-c4e4df26d021)

![Screenshot_20240913_011751](https://github.com/user-attachments/assets/28a5ed01-91b7-480d-80cc-644d6a4e94f1)

---------

Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com>
Co-authored-by: David González <malmstein@gmail.com>
0nko added a commit that referenced this pull request Sep 23, 2024
Task/Issue URL:
https://app.asana.com/0/1207418217763355/1208269999932720/f

This PR contains multiple design fixes but mainly addresses an issue
with a fixes-size websites that were covered by the bottom toolbar.

Fixes issues:

- Browser menu not shown at the correct position after tapping the menu
button with the keyboard open
- Incorrect autocomplete suggestion icons
- Bottom toolbar covering up the web content of fixed-sized websites
- Tapping on a bottom toolbar’s edges leaked clicks to the web view
- Onboarding dialog and NTP had extra padding at the top when toolbar at
the bootom
- There was a zombie shadow of the toolbar

https://github.com/user-attachments/assets/c5a7ae9a-f543-433b-9ef7-562f17f3af39

![Screenshot_20240910_132343](https://github.com/user-attachments/assets/d7c864aa-0912-4ca7-b046-aa14b97a8202)

![Screenshot_20240910_132443](https://github.com/user-attachments/assets/48a78d4a-5860-4e00-a0dc-922aae7d3ef5)

![Screenshot_20240913_003744](https://github.com/user-attachments/assets/3cffb693-7eac-413f-a304-436e6b3795fa)

![Screenshot_20240913_003843](https://github.com/user-attachments/assets/63b1f5a9-fd03-4cbd-a089-5c6dae18ae04)

![Screenshot_20240913_003932](https://github.com/user-attachments/assets/8e6f9172-1833-4899-a544-1ec922926740)

![Screenshot_20240913_004024](https://github.com/user-attachments/assets/054fea28-267b-4d7f-a91b-c4e4df26d021)

![Screenshot_20240913_011751](https://github.com/user-attachments/assets/28a5ed01-91b7-480d-80cc-644d6a4e94f1)

---------

Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com>
Co-authored-by: David González <malmstein@gmail.com>
0nko added a commit that referenced this pull request Sep 23, 2024
Task/Issue URL:
https://app.asana.com/0/1207418217763355/1208269999932720/f

This PR contains multiple design fixes but mainly addresses an issue
with a fixes-size websites that were covered by the bottom toolbar.

Fixes issues:

- Browser menu not shown at the correct position after tapping the menu
button with the keyboard open
- Incorrect autocomplete suggestion icons
- Bottom toolbar covering up the web content of fixed-sized websites
- Tapping on a bottom toolbar’s edges leaked clicks to the web view
- Onboarding dialog and NTP had extra padding at the top when toolbar at
the bootom
- There was a zombie shadow of the toolbar

https://github.com/user-attachments/assets/c5a7ae9a-f543-433b-9ef7-562f17f3af39

![Screenshot_20240910_132343](https://github.com/user-attachments/assets/d7c864aa-0912-4ca7-b046-aa14b97a8202)

![Screenshot_20240910_132443](https://github.com/user-attachments/assets/48a78d4a-5860-4e00-a0dc-922aae7d3ef5)

![Screenshot_20240913_003744](https://github.com/user-attachments/assets/3cffb693-7eac-413f-a304-436e6b3795fa)

![Screenshot_20240913_003843](https://github.com/user-attachments/assets/63b1f5a9-fd03-4cbd-a089-5c6dae18ae04)

![Screenshot_20240913_003932](https://github.com/user-attachments/assets/8e6f9172-1833-4899-a544-1ec922926740)

![Screenshot_20240913_004024](https://github.com/user-attachments/assets/054fea28-267b-4d7f-a91b-c4e4df26d021)

![Screenshot_20240913_011751](https://github.com/user-attachments/assets/28a5ed01-91b7-480d-80cc-644d6a4e94f1)

---------

Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com>
Co-authored-by: David González <malmstein@gmail.com>
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