Closed Bug 1948764 Opened 7 months ago Closed 3 months ago

[composable toolbar] Configure autocomplete

Categories

(Firefox for Android :: Toolbar, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: petru, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3][composable toolbar])

Attachments

(2 files, 2 obsolete files)

Similarly to the current functionality we should allow configuring the autocomplete functionality when in edit mode.

This does not imply refactoring InlineAutocompleteEditText to a composable.

Blocks: ct-fenix-configuration
No longer blocks: 1948591
Assignee: nobody → petru
Status: NEW → ASSIGNED

Matching configuration from mozac_browser_toolbar_edittoolbar configuration
and ToolbarView which previously set the colors to use.

Whenever the search query or the autocomplete providers are updated the
toolbar will automatically query the autocomplete providers for url
suggestions that start with the current query and display them inline
with the current query but with a different text background.

Users can swipe on the search suggestions list to hide the keyboard.
By keeping the toolbar focused the autocomplete suggestion will remain
displayed.

Observed with manual testing that sometimes the search selector or the
autocomplete would not behave as expected.
Seems like this was happening because middleware.context.store.dispatch
will update the store asynchronously while middleware.context.dispatch
will block until the action has gone through the reducer and all the
registered middlewares ensuring that later actions/store updates will
see the up-to-date state instead of potentially an older state.

Attachment #9492954 - Attachment description: Bug 1948764 - part 4 - Ensure synchronous store updates when updating the search toolbar r=#android-reviewers → Bug 1948764 - part 3 - Ensure synchronous store updates when updating the search toolbar r=#android-reviewers
Attachment #9492953 - Attachment is obsolete: true
Attachment #9492954 - Attachment is obsolete: true
Pushed by plingurar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8d3f74d80d68 https://hg.mozilla.org/integration/autoland/rev/b26bdacbf415 part 1 - Configure the UI for searching in the composable toolbar r=android-reviewers,Roger https://github.com/mozilla-firefox/firefox/commit/3105f3abf303 https://hg.mozilla.org/integration/autoland/rev/daf30d9dbadd part 2 - Configure the UX for searching in the composable toolbar r=android-reviewers,Roger
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: