-
Notifications
You must be signed in to change notification settings - Fork 229
feat(pair): Send Tab variant and origin-driven messaging on /pair, Backbone & React #20403
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
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 48 additions & 26 deletions
74
packages/fxa-content-server/app/scripts/templates/pair/auth_complete.mustache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,50 @@ | ||
| <div class="card"> | ||
| <header class="mb-9"> | ||
| <h1 id="pair-auth-complete-header" class="card-header">{{#t}}Device connected{{/t}}</h1> | ||
| </header> | ||
|
|
||
| <section> | ||
| <div class="error"></div> | ||
|
|
||
| <div class="{{ graphicId }}" role="img" aria-label="{{#t}}Successfully connected{{/t}}"></div> | ||
|
|
||
| <h2 id="device-os" class="text-base"> | ||
| {{#unsafeTranslate}} | ||
| You are now syncing with: <span>%(deviceFamily)s on %(deviceOS)s</span> | ||
| {{/unsafeTranslate}} | ||
| </h2> | ||
|
|
||
| <p class="my-5">{{#t}}Now you can access your open tabs, passwords, and bookmarks on all your devices.{{/t}}</p> | ||
|
|
||
| <div class="flex"> | ||
| {{#hasFirefoxViewSupport}} | ||
| <button id="open-firefox-view" class="cta-primary cta-xl">{{#t}}See tabs from synced devices{{/t}}</button> | ||
| {{/hasFirefoxViewSupport}} | ||
| {{^hasFirefoxViewSupport}} | ||
| <button id="open-connected-services" class="cta-primary cta-xl">{{#t}}Manage devices{{/t}}</button> | ||
| {{/hasFirefoxViewSupport}} | ||
| </div> | ||
| </section> | ||
| {{#isSendTab}} | ||
| <header class="mb-5"> | ||
| <h1 id="pair-auth-complete-header" class="card-header">{{#t}}You’re ready to send some tabs{{/t}}</h1> | ||
| </header> | ||
|
|
||
| <section> | ||
| <div class="error"></div> | ||
|
|
||
| <div class="{{ graphicId }}" role="img" aria-label="{{#t}}Successfully connected{{/t}}"></div> | ||
|
|
||
| <p class="text-sm mt-4"> | ||
| {{#unsafeTranslate}} | ||
| <span>%(deviceFamily)s for %(deviceOS)s</span> is connected. | ||
| {{/unsafeTranslate}} | ||
| </p> | ||
|
|
||
| <p class="text-sm mt-2">{{#t}}You’re free to instantly send open tabs, passwords, and bookmarks between devices.{{/t}}</p> | ||
| </section> | ||
| {{/isSendTab}} | ||
|
|
||
| {{^isSendTab}} | ||
| <header class="mb-9"> | ||
| <h1 id="pair-auth-complete-header" class="card-header">{{#t}}Device connected{{/t}}</h1> | ||
| </header> | ||
|
|
||
| <section> | ||
| <div class="error"></div> | ||
|
|
||
| <div class="{{ graphicId }}" role="img" aria-label="{{#t}}Successfully connected{{/t}}"></div> | ||
|
|
||
| <h2 id="device-os" class="text-base"> | ||
| {{#unsafeTranslate}} | ||
| You are now syncing with: <span>%(deviceFamily)s on %(deviceOS)s</span> | ||
| {{/unsafeTranslate}} | ||
| </h2> | ||
|
|
||
| <p class="my-5">{{#t}}Now you can access your open tabs, passwords, and bookmarks on all your devices.{{/t}}</p> | ||
|
|
||
| <div class="flex"> | ||
| {{#hasFirefoxViewSupport}} | ||
| <button id="open-firefox-view" class="cta-primary cta-xl">{{#t}}See tabs from synced devices{{/t}}</button> | ||
| {{/hasFirefoxViewSupport}} | ||
| {{^hasFirefoxViewSupport}} | ||
| <button id="open-connected-services" class="cta-primary cta-xl">{{#t}}Manage devices{{/t}}</button> | ||
| {{/hasFirefoxViewSupport}} | ||
| </div> | ||
| </section> | ||
| {{/isSendTab}} | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this be
receiveinstead ofsend?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.
I ran this by Ross and Laurel - sounds like for now at least we want to leave it since we always talk about "sending" tabs instead of "receiving" them. I suggested "where you want to send your tabs", but this sentence was approved by Content so I'm going to leave it. This is a great flag though!