Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Conversation

@himanish-star
Copy link
Contributor

fixes : #597

Changes can be seen in the GIF below
ezgif com-crop

syncError=Sync Error

savingChanges=Saving changes
savingChanges=Syncing
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you change a string you also need to change the associated ID
https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Changing_existing_strings

Also make sure to update the reference in comments (if available)

@Natim
Copy link
Collaborator

Natim commented Jan 22, 2018

This is not the proper way of fixing the issue. You can't change the property file like that.

@Natim Natim closed this Jan 22, 2018
@himanish-star
Copy link
Contributor Author

himanish-star commented Jan 22, 2018

@Natim , I was about to fix this. Could you reopen this PR ? I'll try this another way. Or do you want me to file a new PR

@Natim Natim reopened this Jan 22, 2018
@himanish-star himanish-star force-pushed the syncing-instead-of-saving branch from a947815 to f14daef Compare January 22, 2018 11:37
@himanish-star
Copy link
Contributor Author

This is with respect to #597 (comment)

After a note has been edited, footer should say "Syncing…"

I tried searching for the word "Syncing" but I found out "Syncing changes". Thus I have used this as you have told me that I can't edit the property file like that.

Before a note has been edited it should say "Last Synced HH:MM"

Same for this I couldn't find "Last Synced" so I did it with "Synced at" instead.

It does this but also has Save and Saving…

So do you want me to remove this. For now I have removed this , if you want it back then I'll fix this back too 😃
Here's the new GIF
simplescreenrecorder-2018-01-22_16 56 02


If this is not what you want, then could you explain me a bit more 😃

@himanish-star
Copy link
Contributor Author

@Natim , any views on the recent changes ?

@Natim
Copy link
Collaborator

Natim commented Jan 22, 2018

The problem is that now you don't have the saving changes when we are not logged in have you?

@ryanfeeley can you confirm this is correct according to the new specs?

When not logged in

  1. Saving changes...
  2. All changes saved

When sync activated

  1. Syncing changes...
  2. Synced 7:24 PM

@Natim
Copy link
Collaborator

Natim commented Jan 22, 2018

@himanish-star You can use the changesSaved property for All changes saved and syncComplete2 for Synced at 7:24 PM

@Natim
Copy link
Collaborator

Natim commented Jan 22, 2018

If we need to go back to Synced 7:24 PM it is a regression of #467 and @ryanfeeley @vladikoff and @flodolo need to talk to figure out what made that change that I don't remember.

@himanish-star
Copy link
Contributor Author

Ok, @Natim , I have started correcting my work

@Natim
Copy link
Collaborator

Natim commented Jan 22, 2018

Writting the following made me understand why we added the at inside:

# LOCALIZATION NOTE (syncComplete3): {time} is the time of last sync. If this
# structure doesn't work for your locale, you can translate this as "Synced at {time}".
syncComplete3=Synced {time}

@ryanfeeley is that really what we want?

@ryanfeeley
Copy link
Contributor

@Natim Yes, an example like Synced 7:24 PM is perfect. Same for Saved 7:24 PM.

@himanish-star himanish-star force-pushed the syncing-instead-of-saving branch from f14daef to 7f1c46d Compare January 22, 2018 19:47
@himanish-star
Copy link
Contributor Author

himanish-star commented Jan 22, 2018

ezgif com-video-to-gif
This is a new GIF. Please see the changes


The above changes are with respect to
#601 (comment)

@ryanfeeley
Copy link
Contributor

@himanish-star Is it putting the new text at the end (where the cursor is) or the beginning? Hard to tell as it's the same text.

@himanish-star
Copy link
Contributor Author

Well it's putting the text according to the previous caret position. There is an issue already on this #532

Copy link
Collaborator

@Natim Natim left a comment

Choose a reason for hiding this comment

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

Just a little refactoring.

syncingInProcess = true;
}
if (! waitingToReconnect) {
if (! waitingToReconnect && isAuthenticated) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess you can have a if for the !waitingToReconnect and another one for the isAuthenticated condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I just saw this now. Well thanks for changing 😃

@Natim Natim dismissed flodolo’s stale review January 23, 2018 12:23

Review fixed

@Natim Natim merged commit 2f921a0 into mozilla:master Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use syncing instead of saving while logged in

4 participants