Closed Bug 242545 Opened 20 years ago Closed 20 years ago

Bookmark import should give user feedback

Categories

(Camino Graveyard :: Bookmarks, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino0.8

People

(Reporter: stuart.morgan+bugzilla, Assigned: mikepinkerton)

Details

Attachments

(3 files, 4 obsolete files)

Right now, importing bookmarks gives no status response of any kind. A user
might easily think the import failed, especially since the imported folder is
only visible in the bookmark manager (and not the menu).

We should give the user feedback like "Bookmarks successfully imported into
<bookmark folder>" or "Error during bookmark import. Some bookmarks may not have
been imported".
Nominating for 1.0 polish
Target Milestone: --- → Camino1.0
Bumping up to 0.8. A number of people trying 0.8b thought (not surprisingly)
that bookmark import failed. Since the ability to have all the bookmarks they
are used to is vital for many people, this is a big barrier to people trying or
switching to Camino.
Target Milestone: Camino1.0 → Camino0.8
Attached patch gives import feedback (obsolete) — Splinter Review
Changes:
-Import is always a panel, rather than a sheet (since it's unrelated to the
browser window)
-A feedback sheet is displayed after import. On success, it explains where the
user can find their newly imported bookmarks (as it's not immediately obvious)
Attached file updated localizable strings (obsolete) —
Adds localizable strings for import feedback. Removes some unused strings that
look like they were intended for giving user feedback (but apparently never
were).
Attached file slight nib modifications (obsolete) —
Better positioning, adjusted slightly to be better suited to non-sheet display.
Attachment #149140 - Flags: review?(josha)
Attachment #149140 - Flags: review?(qa-mozilla)
Comments:

- please center the bm import window when it comes up (using NSWindow's "center"
method). it should not just be at a somewhat random location in the top left.
- "Select a File" should not have the word "File" capitalized - general convention
- perhaps the open panel for "Select a File..." should appear as a sheet on the
bm import window not another window.
- change the "Open" default button in the open panel (sheet?) to "Import" since
clicking "Open" actually does import, not open the file
- what about instead of showing the user some text in a sheet telling them where
their bookmarks went, instead open a new window, open the bm manager in it, and
hilight the imported bookmarks collection? show don't tell (quote from brion)

Nice work so far. With these changes it'll be perfect I think.
Attachment #149140 - Flags: review?(josha) → review-
> - please center the bm import window when it comes up (using NSWindow's
> "center" method). it should not just be at a somewhat random location
> in the top left.
> - "Select a File" should not have the word "File" capitalized - general
> convention
> - perhaps the open panel for "Select a File..." should appear as a sheet
> on the bm import window not another window.

Sure

> - change the "Open" default button in the open panel (sheet?) to "Import" 
> since clicking "Open" actually does import, not open the file

Is that possible? I'm not seeing any way to modify an NSOpenPanel's buttons.

> - what about instead of showing the user some text in a sheet telling
> them where their bookmarks went, instead open a new window, open the
> bm manager in it, and hilight the imported bookmarks collection? show
> don't tell (quote from brion)

Sounds good to me.

Updated patch soon. Thanks for the good comments.
Attachment #149140 - Flags: review?(qa-mozilla)
use |-setPrompt:| (on NSSavePanel, which a NSOpenPanel derives from) to set the
title of the "OK" button. Had to dig for this myself :)
Severity: minor → normal
Attached patch updated patch (obsolete) — Splinter Review
Addresses all of Josh's comments except making the open panel a sheet. For some
reason, that behaved extremely badly (disconnecting subsequent sheets from the
import panel, leaving a dead input panel sometimes, etc.) and I figured the
difference is minor enough not to be worth them time right now.
Attachment #149140 - Attachment is obsolete: true
Attached file new strings
Removed the confirmation strings, since they are no longer needed.
Attachment #149141 - Attachment is obsolete: true
Attached file newer nib
Fixes capitalization issues, uses an NSWindow instead of NSPanel so that it
shows up in the window menu and thus can't be lost so easily.
Attachment #149142 - Attachment is obsolete: true
Attachment #149534 - Flags: review?(josha)
Attachment #149534 - Flags: review?(qa-mozilla)
Patch should be in "diff -u" format, and it doesn't apply as cleanly as it might:

patching file src/bookmarks/BookmarkViewController.mm
Hunk #1 succeeded at 791 (offset 18 lines).

Haven't compiled it yet.
I really think a progress bar of some kind will be needed when we are loading
large (bug 236373) bookmarks files. We do not want our users to have a
non-fuctional app for more the 4 seconds unless we display some kind of
indicator of how long they have to wait. I know it's not easy, but it's best I
think.

(In reply to comment #13)
> I really think a progress bar of some kind will be needed when we are loading
> large (bug 236373) bookmarks files. We do not want our users to have a
> non-fuctional app for more the 4 seconds unless we display some kind of
> indicator of how long they have to wait. I know it's not easy, but it's best I
> think.

I agree but lets implemet this as a RFE for 1.0.

> Patch should be in "diff -u" format, and it doesn't apply as cleanly
> as it might:

Sorry, I keep forgetting (this is -c). The unclean-ness is probably because
there was a tiny bit of file overlap with my bookmark loading patch. I can post
a new patch if need be.

Jasper:
We can easily add a spinner progress indicator once 10.1 support is gone, so
after this lands I can make a new trunk-only additional patch to add a spinner.
I'd just rather this be self-contained and not get into trunk/branch differences.
Comment on attachment 149534 [details] [diff] [review]
updated patch

This is good enough for 0.8. We'll need something better from the UI point of
view for 1.0.
Attachment #149534 - Flags: review?(qa-mozilla) → review+
I was actually thinking of a real progress bar / barber pole ;)
10.1 also has a spinner, it just looked different, 2 arrows chasing each other :)

It's up to you.
Please repost the patch in "diff -u" format. I don't know how to interpret some
of the markings in whatever patch style you used.
Attached patch diff -u versionSplinter Review
Attachment #149534 - Attachment is obsolete: true
Attachment #149534 - Flags: review?(josha)
Comment on attachment 149657 [details] [diff] [review]
diff -u version

diff -u version, as requested.
Attachment #149657 - Flags: review?(josha)
Attachment #149657 - Flags: review?(josha) → review+
Attachment #149657 - Flags: superreview?(pinkerton)
Comment on attachment 149657 [details] [diff] [review]
diff -u version

sr=pink

landed on trunk and branch
Attachment #149657 - Flags: superreview?(pinkerton) → superreview+
fixed, take other improvement ideas to a new bug
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: