-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync v2 #1019
Sync v2 #1019
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cezaraugusto I've done a first pass on the code, and same comments as #894 wrt the images. If they can be put in brave-ui alongside where they are used, when they are static, that would be best. If not then they could be placed inside this component instead of the generic brave-core/img directory which we are looking to remove. And we at least don't need to specify then in the GRD or c++ since that is all automatically handled via webpack now.
However I would like to test the functionality further. Is there a test plan, at least for QA? I can't see one on the main sync v2 issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving because PR does not contain native changes I would reject.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2b82f2f
to
9edbbd2
Compare
@darkdh you can see who they are via |
@darkdh @AlexeyBarabash @petemill sync v2 is ready for re-review |
Thanks, @cezaraugusto . Looks fresh comparing to v1. I am not a designer, but maybe the content should be centered vertically. |
@cezaraugusto But when I connect device to existing sync chain, I also have the |
8344f9c
to
272fc6b
Compare
@AlexeyBarabash thanks for reviewing
|
@cezaraugusto @AlexeyBarabash @darkdh Is it possible to add a check for unique device names at the time of joining a sync group? |
feedback regarding main device/this device addressed
} | ||
{ | ||
scanCode | ||
? <ScanCodeModal syncData={syncData} actions={actions} onClose={this.onClickPhoneTabletButton} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ux nit: we are opening a modal on top of another modal, can't we re-use the same modal? Right now this requires two clicks of the close button to get back to the beginning.
@cezaraugusto "main device" should be "this device" which will cover MOST cases where the device names are the same. For linux, are we not able to get the device names? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some ux nits that can be considered for follow-ups.
However, I had an issue with moving a bookmark in to a folder - the other device did not update to move the bookmark. But I guess that is not a problem with the front-end in this PR.
I did also try the no-internet error test and I did not receive an alert at all when I restarted the browser, even though I could not access any web sites in the browser due to no network connection. That is also not in this PR, right @cezaraugusto @darkdh ?
Based on these assumptions, LGTM, but please correct me if I'm wrong.
1
ux nit: table column spacing (and button column could collapse to above / below table)
2
ux nit: This line-height feels extremely cramped and uneven
3
ux nit: we are opening a modal on top of another modal to start the experience. Should we re-use the same modal? Right now this requires two clicks of the close button to get back to the beginning.
4
ux nit: the toggles seem to have an extra couple of blank rows which I presume is from disabled sync types. But this creates an arbitrary amount of space. If we want the button to have margin then we can specify a margin, but I doubt this is the exact space that we want
package.json
Outdated
@@ -272,7 +272,7 @@ | |||
"@types/react-dom": "^16.0.7", | |||
"@types/react-redux": "6.0.4", | |||
"awesome-typescript-loader": "^5.2.0", | |||
"brave-ui": "brave/brave-ui#cee363dd33ec3c7499b7d239384a6f2eb601f981", | |||
"brave-ui": "github:brave/brave-ui#2b8e852f5585342594bfaf29a2d392ba2fe72b81", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to remember not to merge this PR until this brave-ui commit is on brave-ui master.
Steps:
- get this PR approved
- merge brave-ui requirements to brave-ui master
- point this PR at latest brave-ui master
- merge this PR
@bradleyrichter @rossmoody I left some UX feedback above that we should follow-up on |
@petemill offline should trigger an alert. If you can not see that in this PR, then it is a regression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
carrying forward r+ after rebase, not actually reviewed by me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved brave-ui sha change
Cannot see above on mac. Maybe this is my local Linux build issue. |
fix brave/brave-browser#2253
fix brave/brave-browser#2131
fix brave/brave-browser#2128
fix brave/brave-browser#2123
Auditors: @AlexeyBarabash @darkdh
cc @petemill for front-end code review
Notes: Sync v2 flow changed:
Test Plan:
Adding/Syncing devices
user_data_dir_name
on
by default. Bookmarking a page should appear in the connected device within 1 minute which is the time sync takes to fetch updatesRemoving devices
Error cases
No internet
No internet connection.
error dialogWrong passphrase
anthony is the boss
Invalid sync code.
error dialog. He's still the boss tho.Bad behavior from Sync servers
Unable to connect to the Sync servers.
error dialog