You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task/Issue URL:
https://app.asana.com/1/137249556945/project/1208671518894266/task/1211257482984657?focus=true
### Description
Adds pixels for various interactions with the Input Screen and its
buttons.
### Steps to test this PR
- [x] (optional) Setup your logcat filter to: `package:mine
message:Pixel sent: aichat`
- [x] Install the app and ensure that the Input Screen is disabled.
- [x] Click the omnibar to focus it.
- [x] Click the back arrow in the omnibar.
- [x] Verify `m_aichat_legacy_omnibar_back_button_pressed` pixel is
sent.
- [x] Go to Settings -> AI Features and enabled the Input Screen.
- [x] Go back to the browser and click on the omnibar.
- [x] Verify that `m_aichat_experimental_omnibar_text_area_focused`
pixel is sent with `orientation=portrait` params.
- [x] Use the "x" button to clear omnibar text.
- [x] Verify that `m_aichat_experimental_omnibar_clear_button_pressed`
pixel is sent with `mode=search` params.
- [x] Switch to Duck.ai.
- [x] Verify that `m_aichat_experimental_omnibar_mode_switched` pixel is
sent with `direction=to_duckai, had_text=false` params.
- [x] Type text into the input box.
- [x] Click the new line button.
- [x] Verify that
`m_aichat_experimental_omnibar_floating_return_pressed` pixel is sent.
- [x] Switch to Search (do not submit).
- [x] Verify that `m_aichat_experimental_omnibar_mode_switched` pixel is
sent with `direction=to_search, had_text=true` params.
- [x] Click on the floating arrow button to submit the search query.
- [x] Verify that
`m_aichat_experimental_omnibar_floating_submit_pressed` pixel is sent
with `mode=search` params.
- [x] Click on the omnibar.
- [x] Type anything.
- [x] Click the submit button on the floating keyboard.
- [x] Verify that `m_aichat_experimental_omnibar_keyboard_go_pressed`
pixel is sent with `mode=search` params.
- [x] Click on the omnibar.
- [x] Switch to Duck.ai.
- [x] Click on the back arrow in the toolbar.
- [x] Verify that `m_aichat_experimental_omnibar_back_button_pressed`
pixel is sent with `mode=aiChat` params.
- [x] Rotate the device to landscape.
- [x] Click on the omnibar.
- [x] Verify that `m_aichat_experimental_omnibar_text_area_focused`
pixel is sent with `orientation=landscape` params.
Copy file name to clipboardExpand all lines: duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/ui/viewmodel/InputScreenViewModel.kt
0 commit comments