[People] Import Data Dialog |
||||||
Issue descriptionHey, are we planning to implement chrome://settings/importData ? I don't see it in the mocks or code. It's from the old People section.
,
Oct 26 2016
,
Nov 3 2016
Indeed there is also UI surface within Settings to get there:
,
Nov 3 2016
bettes: I think we need mocks for both the entry point into Import Data, as well as the actual Import Data dialog. (Or subpage) I didn't notice this was a feature missing from MD Settings until I did the audit of legacy URLs...
,
Nov 3 2016
,
Nov 3 2016
tommycli@: got confirmation that bettes@ and tbuckley@ want to keep this a dialog specific instructions from bettes@: > If we can use the same max-height as the cbd (if applicable) > And 512px width i think otherwise, just fill in from existing UIs
,
Nov 3 2016
Thanks. I'll get started on this.
,
Nov 3 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1287354883d7254210f53a13ab7fde856cad3661 commit 1287354883d7254210f53a13ab7fde856cad3661 Author: tommycli <tommycli@chromium.org> Date: Thu Nov 03 20:11:28 2016 MD Settings: Add Import Bookmarks Dialog Strings Straight copy of the strings from Options to Settings. The IDS constants have been renamed. BUG= 659259 Review-Url: https://codereview.chromium.org/2480473002 Cr-Commit-Position: refs/heads/master@{#429681} [modify] https://crrev.com/1287354883d7254210f53a13ab7fde856cad3661/chrome/app/settings_chromium_strings.grdp [modify] https://crrev.com/1287354883d7254210f53a13ab7fde856cad3661/chrome/app/settings_google_chrome_strings.grdp [modify] https://crrev.com/1287354883d7254210f53a13ab7fde856cad3661/chrome/app/settings_strings.grdp [modify] https://crrev.com/1287354883d7254210f53a13ab7fde856cad3661/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
,
Nov 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/bc3a1fed587712156737197e561a88f2ea0bfecc commit bc3a1fed587712156737197e561a88f2ea0bfecc Author: tommycli <tommycli@chromium.org> Date: Fri Nov 04 01:19:47 2016 MD Settings: Copy Import Bookmarks handler to MD Settings Pretty much a verbatim copy with some Settings-specific modifications. BUG= 659259 Review-Url: https://codereview.chromium.org/2480543002 Cr-Commit-Position: refs/heads/master@{#429754} [modify] https://crrev.com/bc3a1fed587712156737197e561a88f2ea0bfecc/chrome/browser/ui/BUILD.gn [modify] https://crrev.com/bc3a1fed587712156737197e561a88f2ea0bfecc/chrome/browser/ui/webui/settings/md_settings_ui.cc [add] https://crrev.com/bc3a1fed587712156737197e561a88f2ea0bfecc/chrome/browser/ui/webui/settings/settings_import_data_handler.cc [add] https://crrev.com/bc3a1fed587712156737197e561a88f2ea0bfecc/chrome/browser/ui/webui/settings/settings_import_data_handler.h
,
Nov 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4a4963ec66964b69df3c677384f6bcf51fe634dc commit 4a4963ec66964b69df3c677384f6bcf51fe634dc Author: tommycli <tommycli@chromium.org> Date: Fri Nov 04 06:10:26 2016 MD Settings: Add an Import Data BrowserProxy. This patch: a) Adds a BrowserProxy for the ImportDataHandler. b) Updates ImportDataHandler to use promises and WebUI events. BUG= 659259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2473053004 Cr-Commit-Position: refs/heads/master@{#429809} [modify] https://crrev.com/4a4963ec66964b69df3c677384f6bcf51fe634dc/chrome/browser/resources/settings/people_page/compiled_resources2.gyp [add] https://crrev.com/4a4963ec66964b69df3c677384f6bcf51fe634dc/chrome/browser/resources/settings/people_page/import_data_browser_proxy.html [add] https://crrev.com/4a4963ec66964b69df3c677384f6bcf51fe634dc/chrome/browser/resources/settings/people_page/import_data_browser_proxy.js [modify] https://crrev.com/4a4963ec66964b69df3c677384f6bcf51fe634dc/chrome/browser/ui/webui/settings/settings_import_data_handler.cc [modify] https://crrev.com/4a4963ec66964b69df3c677384f6bcf51fe634dc/chrome/browser/ui/webui/settings/settings_import_data_handler.h
,
Nov 10 2016
FYI, I'll attempt to advance progress in this bug until @tommycli is back, by implementing the dialog UI first. Then someone (me or @tommycli) can hook it up to the existing ImportDataBrowserProxy.
,
Nov 11 2016
@bettes: As stated at comment#4, a UX decision is needed on how the user can open this dialog. There should probably be a button similar to the old Options "Import bookmarks and settings" somewhere. FYI, I have started implementing this dialog.
,
Nov 11 2016
See screenshot on how the button could look like. I do find it a bit suboptimal though that the first thing the user sees when visiting MD Settings is the "People" section where parts of it are not that common (adding/removing users, importing data from other browsers). I guess that ship has already sailed when we decided to merge the "sync" section with the "people" section, unlike old Options.
,
Nov 11 2016
Use a single line row, with an arrow indicator, positioned as the last row item in the People's section. ------------------------------------ Import bookmarks and settings > ------------------------------------
,
Nov 11 2016
Thanks for the quick response!
,
Nov 14 2016
https://codereview.chromium.org/2500653002/
,
Nov 14 2016
@tbuckley, @bettes: Any ideas on how should the "import successful" message be displayed to the user? See screencast on how old Options does this. Asking because the implementation is coming together quickly (https://codereview.chromium.org/2500653002), and I am getting to the point where the UI dialog is hooked up to the C++.
,
Nov 15 2016
Cool! A few thoughts:
1. Can we avoid flashing between 2 different dialogs of import and success? Instead, can the success UI be in the same dialog as import? (We should have a fixed height already)
2. Remove the "Success!" headline string. Instead, do the following:
Import bookmarks and settings x
____________________________________
( ✓ )
Your bookmarks and settings are ready.
Always show the bookmarks bar --o
|Done|
,
Nov 15 2016
note: this UI is triggered from an empty bookmarks bar (see attached), so: 1) the URL matters and is opened by native UI (so we should test this flow) 2) that's why we show the bookmarks bar toggle/checkbox (as the bookmarks bar may have just become more useful if you imported a bunch of bookmarks)
,
Nov 15 2016
@bettes: Does this match your expectations from comment #18 (see screenshot)? Regarding the height of the dialog, see screencast. I have implemented as one dialog, but the contents are still determining the height. If I add a forced height, then the "success" case ends up having a lot of white-space. Adjusting the size of the dialog based on currently displayed contents seems simpler and better to me, WDYT?
,
Nov 15 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c2a979f3c638e45d6481c68d0cea907d63bb61cb commit c2a979f3c638e45d6481c68d0cea907d63bb61cb Author: dpapad <dpapad@chromium.org> Date: Tue Nov 15 22:15:09 2016 MD Settings: Add import data dialog. BUG= 659259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2500653002 Cr-Commit-Position: refs/heads/master@{#432268} [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/app/settings_strings.grdp [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/extensions/api/settings_private/prefs_util.cc [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/resources/settings/people_page/compiled_resources2.gyp [add] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/resources/settings/people_page/import_data_dialog.html [add] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/resources/settings/people_page/import_data_dialog.js [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/resources/settings/people_page/people_page.html [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/resources/settings/people_page/people_page.js [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/resources/settings/settings_resources.grd [modify] https://crrev.com/c2a979f3c638e45d6481c68d0cea907d63bb61cb/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
,
Nov 16 2016
,
Nov 17 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/411c9f114fd32cde3b27382c78fdaac5d4e0365f commit 411c9f114fd32cde3b27382c78fdaac5d4e0365f Author: dpapad <dpapad@chromium.org> Date: Thu Nov 17 05:06:01 2016 MD Settings: Hook up import data dialog. BUG= 659259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2501783003 Cr-Commit-Position: refs/heads/master@{#432753} [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/app/settings_chromium_strings.grdp [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/app/settings_google_chrome_strings.grdp [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/app/settings_strings.grdp [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/browser/resources/settings/people_page/compiled_resources2.gyp [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/browser/resources/settings/people_page/import_data_dialog.html [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/browser/resources/settings/people_page/import_data_dialog.js [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc [modify] https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f/chrome/browser/ui/webui/settings/settings_import_data_handler.cc
,
Nov 17 2016
,
Nov 17 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/346403640ca91d217eef9108ee5b03c4acfd5839 commit 346403640ca91d217eef9108ee5b03c4acfd5839 Author: dpapad <dpapad@chromium.org> Date: Thu Nov 17 20:12:36 2016 MD Settings: Add ImportDataDialog tests. BUG= 659259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2507253003 Cr-Commit-Position: refs/heads/master@{#432941} [modify] https://crrev.com/346403640ca91d217eef9108ee5b03c4acfd5839/chrome/browser/extensions/api/settings_private/prefs_util.cc [modify] https://crrev.com/346403640ca91d217eef9108ee5b03c4acfd5839/chrome/browser/resources/settings/people_page/import_data_dialog.html [modify] https://crrev.com/346403640ca91d217eef9108ee5b03c4acfd5839/chrome/test/data/webui/settings/cr_settings_browsertest.js [add] https://crrev.com/346403640ca91d217eef9108ee5b03c4acfd5839/chrome/test/data/webui/settings/import_data_dialog_test.js |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by tbuck...@chromium.org
, Oct 26 2016Labels: Hotlist-MD-Settings-People OS-All
Owner: tommycli@chromium.org
Status: Assigned (was: Untriaged)