Add 'View all Chats' in chat suggestions #8690
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
… cover binder threshold logic
391c1dc to
25ebfc3
Compare
malmstein
left a comment
There was a problem hiding this comment.
smoke-tested the APK and it works as expected — "View all Chats" appears once the threshold is reached and navigates to chat history cleanly. nice clean wiring through ChatHistoryShortcutAdapter + NativeInputChatSuggestionsBinder, and test coverage on the threshold + ConcatAdapter ordering is solid. main thing flagged below: the pixel name DUCK_CHAT_SETTINGS_SIDEBAR_TAPPED doesn't match the new surface and is going to conflate the settings sidebar tap with the suggestions shortcut tap in analytics — worth a fresh pixel. plus a couple of nits on a magic threshold and duplicated state across two VMs.
|
@GerardPaligot works as expected! |

Task/Issue URL: https://app.asana.com/1/137249556945/task/1214566301692454
Description
Adds a View all Chats shortcut at the bottom of the chat-suggestions list — both in the omnibar chat mode and in the unified input-screen Chat tab — so users with more than 8 stored chats can jump straight to the native chat-history screen without opening the browser menu. The row uses the same icon as the browser-menu Chats entry and inherits the same availability gate (
historyScreen+ native storage + Duck.ai enabled).Steps to test this PR
Note
Prerequisites:
duckChat → historyScreenandduckChat → useNativeStorageChatDataare ON, and Duck.ai itself is enabled.> 8threshold is exercised.Happy path
Guards
historyScreenOFF in Developer Settings → confirm the shortcut is hidden on both surfaces even with 9+ chats.Edge cases
UI changes
Note
Low Risk
UI-only navigation and analytics in Duck.ai suggestions, gated by existing chat-history feature flags with unit test coverage.
Overview
Adds a View all Chats row to Duck.ai chat suggestion lists on the omnibar native input and the unified input screen Chat tab, so users with a long chat list can open the native chat-history screen without the browser menu.
The row is wired through new
onChatHistoryShortcutClickedcallbacks (NativeInputManager,BrowserTabFragment,NativeInputModeWidget). It only shows whenisChatHistoryAvailable()is true and there are more than 8 chat suggestions (ChatHistoryShortcutAdapter.VIEW_ALL_CHATS_THRESHOLD). In the concat list it sits after chat history and before URL / “Search for” rows. Taps fireDUCK_CHAT_SETTINGS_SIDEBAR_TAPPEDand navigate viaLaunchDuckChatHistory/openDuckChatHistory()toDuckChatHistoryNoParams(input screen also exits on launch).Reviewed by Cursor Bugbot for commit 25ebfc3. Bugbot is set up for automated code reviews on this repo. Configure here.