Closed Bug 966103 Opened 10 years ago Closed 10 years ago

Add a "Sync now" button to the main FxA status screen

Categories

(Firefox for Android Graveyard :: Android Sync, defect)

Firefox 29
All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 36

People

(Reporter: rnewman, Assigned: vivek)

References

Details

Attachments

(3 files, 2 obsolete files)

We already have this in the debug view, but it would be a nice addition.
ibarlow: could we get some mocks for how you'd like this to look?  I am imaging a status message and a button in the status activity; when you Sync, we replace the button with a spinner, etc; but this is your domain.  I'd very much like to land this during this cycle.
Flags: needinfo?(ibarlow)
vivek, are you interested in this?  You did great work on the "Remove Account" menu item in the same activity.

This one would be a little different: this would have a "Sync" spinner icon and a "Sync now" button and a last synced time display.  Sort of like:

+----------+------------------------+
| spinning | Sync now               |
|   icon   | last synced time       |
+----------+------------------------+

1) Sync now starts Sync
2) start Sync spins the icon, grays out Sync now and last synced time
3) Sync stopping stops the icon, enables Sync button, updates last synced time

There's a spinning icon in Fennec that you can, for now, just copy over: it's called tabs_synced_*.xml and an icon.

Look at http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tabs/RemoteTabsContainerPanel.java for how to trigger and listen to Sync status results.

To extract the last Synced time, that will come from SharedPreferences.  We might want to land some code to make this simpler.
Flags: needinfo?(ibarlow)
yes. I'm interested in working on this.
Attachment #8504357 - Flags: review?(nalexander)
Comment on attachment 8504357 [details] [review]
Pull request created in android-sync project

Hey, sorry for the delay, I've been at some job training.  I'm traveling until early next week; I should get to this on Tuesday next.
Comment on attachment 8504357 [details] [review]
Pull request created in android-sync project

Comments on the PR.  This is looking really good.  I have questions and nits, and then I'll want to test myself locally, but it feels close.  Great work, vivek!
Attachment #8504357 - Flags: review?(nalexander) → feedback+
Attached file Sync now pull request updated (obsolete) —
Attachment #8504357 - Attachment is obsolete: true
Attachment #8518976 - Flags: review?(nalexander)
Comment on attachment 8518976 [details] [review]
Sync now pull request updated

This is looking great.  I've requested some small changes and that we split a few things off into separate tickets, but this is almost ready.

Thanks for your work and patience, and for really digging in to the android-sync code base.
Attachment #8518976 - Flags: review?(nalexander) → feedback+
Attached file pull request updated
Attachment #8518976 - Attachment is obsolete: true
Attachment #8520286 - Flags: review?(nalexander)
Blocks: 1096665
Blocks: 1096669
Nick or Richard, could one of you guys screenshot the results of this PR so I can check the UI?
Flags: needinfo?(rnewman)
Nick, could you take care of this? I'm swamped.
Flags: needinfo?(rnewman) → needinfo?(nalexander)
Attached image Sync.Now.Button.png
Flags: needinfo?(nalexander)
Comment on attachment 8520286 [details] [review]
pull request updated

Hi vivek, this is looking great!  I've cleaned up the commits and made some cosmetic changes at https://github.com/mozilla-services/android-sync/pull/505.  I've also fixed a significant issue: the timestamp you're showing is not the last synced timestamp, it's a different thing.  I have asked rnewman for a quick review on this.

I should land this tomorrow or Friday.

Thanks for all your work here; see you in the follow-ups...
Attachment #8520286 - Flags: review?(nalexander) → review+
Assignee: nobody → vivekb.balakrishnan
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/acf1606913a8
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Nitpicking: for consistency "..." should always be "…" in all Mozilla products (single Unicode characters)
(In reply to Francesco Lodolo [:flod] from comment #17)
> Nitpicking: for consistency "..." should always be "…" in all Mozilla
> products (single Unicode characters)

flod: thanks for this.  Right when I landed, I wondered, but had already pulled the trigger.  I'll follow-up.
Flags: needinfo?(nalexander)
Flags: needinfo?(nalexander)
Depends on: 1135007
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: