Skip to content

Conversation

CDRussell
Copy link
Member

@CDRussell CDRussell commented Sep 23, 2025

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

Description

Adds UI to the bookmarks import flow, as well as a few more options in internal dev settings for testing them.

  • This is still only accessible via Autofill Dev Settings screen (i.e., doesn't allow for flow to start in production)
Screenshot_20251007_125809

Steps to test this PR

  • Suggested logcat filter: Bookmark-import
  • Perform a clean install on this branch, using internal build type

Pre-import dialog

  • In Autofill Dev Settings, tap on Launch Bookmarks import flow (with preimport dialog)
  • Verify you see the dialog
Screenshot_20251007_125940
  • Verify you can cancel the dialog using the back button, the X button and by tapping outside of it
  • In the dialog, tap Import Now and verify it launches the web flow

Web Flow, cancellations

Carrying on from the previous test

  • Tap the X button, verifying you are prompted if you're sure you want to cancel. Choose Cancel Import
  • Verify the web flow ends, and you still see the pre-import dialog
  • Tap Import Now again, and this time use the back button, confirming you see the cancellation confirmation prompt

Web flow, from a logged out state

You should not be logged in to a Google account already (which should be true if you're following these steps)

  • Launch the web flow, verifying you can see the WebView asking you to sign into your Google account
  • Sign in, verifying the WebView is no longer visible and an in progress page shows instead
  • Wait for the flow to complete
  • (Optionally) You may be asked to sign in as the final step; if this happens, you should see the WebView again for it
  • Verify you see the success screen telling you how many bookmarks were imported

Web flow, from a signed in state

You should be logged in already to a Google account

  • Launch the web flow, verifying you do NOT see the WebView, and instead jump straight to the in-progress flow
  • Wait for the flow to complete
  • (Optionally) You may be asked to sign in as the final step; if this happens, you should see the WebView again for it
  • Verify you see the success screen telling you how many bookmarks were imported

Web flow, dev-only peeking at the WebView

  • Launch the web flow and while in the in-progress screen tap on the overflow debug menu to see the WebView
  • Verify the overlay hides and you can see the WebView automation

@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch 2 times, most recently from a039a47 to 3f8950c Compare September 23, 2025 13:25
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from b3fac77 to a14e381 Compare September 24, 2025 09:18
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch 2 times, most recently from 77c3176 to 791ae21 Compare September 24, 2025 10:44
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 2 times, most recently from 1713a4f to cb2b5cb Compare September 24, 2025 10:49
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch 2 times, most recently from 4614087 to 9f3b412 Compare September 24, 2025 10:54
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from cb2b5cb to bde236b Compare September 24, 2025 10:54
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch from 9f3b412 to 17a6c44 Compare September 24, 2025 10:59
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from bde236b to dfbcd8e Compare September 24, 2025 10:59
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch from 17a6c44 to e890ed7 Compare September 24, 2025 11:18
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 2 times, most recently from 7f7ff4b to 2e9a36c Compare September 24, 2025 13:45
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch from e890ed7 to b217c11 Compare September 24, 2025 13:45
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from 2e9a36c to 7ac6dca Compare September 24, 2025 14:18
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch 2 times, most recently from 0003be7 to a714667 Compare September 25, 2025 13:35
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from 7ac6dca to 49ab43d Compare September 25, 2025 13:35
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch from a714667 to a8e4b48 Compare September 26, 2025 10:49
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 2 times, most recently from 566d0e5 to 2575f8d Compare September 26, 2025 14:15
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_add_bookmarks_webflow branch from a8e4b48 to 8393d44 Compare September 26, 2025 14:15
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from 2575f8d to ad5d7bf Compare September 26, 2025 14:22
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from 289bf6e to 4d28998 Compare October 6, 2025 15:00
@duckduckgo duckduckgo deleted a comment from Copilot AI Oct 6, 2025
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 8 times, most recently from f942c31 to d2f84e9 Compare October 7, 2025 12:30
@CDRussell CDRussell marked this pull request as ready for review October 7, 2025 12:46
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 4 times, most recently from 204a3c4 to 94ccf12 Compare October 8, 2025 15:56
@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 4 times, most recently from 5a34fcc to 591842d Compare October 10, 2025 13:05
Copy link
Contributor

@cmonfortep cmonfortep left a comment

Choose a reason for hiding this comment

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

Some questions about the dev only capabilities I would like to understand.

Leaving some notes around testing in https://app.asana.com/1/137249556945/project/608920331025315/task/1211623356217705?focus=true

~ limitations under the License.
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android"
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 go into internal-module.

Copy link
Member Author

@CDRussell CDRussell Oct 16, 2025

Choose a reason for hiding this comment

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

I don't think it easily can, because the activity still needs to know about the menu and ID. autofill-impl would have to know about autofill-internal (which is the wrong way around)

(could maybe try work around it by having a menu for internal and a stubbed menu for prod, with a real menu item for internal and a fake (invisible) menu item for prod but this sounds worse overall)

Copy link
Member Author

Choose a reason for hiding this comment

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

I have removed the dev-only tooling from this screen entirely; can revisit how to have this available later again if still needed

}

@Parcelize
enum class AutofillImportBookmarksLaunchSource(val value: String) : Parcelable {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this is going to change in upstream PRs but we should not expose AutofillDevSettings in api.
We should also surface the api change in api proposal since touches api module.

Copy link
Member Author

Choose a reason for hiding this comment

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

should not expose AutofillDevSettings in api.

It could be grouped into unknown I guess?

Copy link
Member Author

Choose a reason for hiding this comment

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

Happy to not have it in the API; will address this in later PR

@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch 4 times, most recently from a9aeca5 to 7549223 Compare October 17, 2025 11:09
@CDRussell CDRussell requested a review from cmonfortep October 17, 2025 11:10
@CDRussell
Copy link
Member Author

@cmonfortep i have removed the dev-only capabilities. ready for your re-review.

@CDRussell CDRussell force-pushed the feature/craig/streamline_import_bookmarks_webview_ui branch from 7549223 to d9da8a3 Compare October 17, 2025 12:09
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