-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat(pair): Display new "Sync your Firefox experience" UI in Backbone
- Loading branch information
Showing
15 changed files
with
590 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions
94
packages/fxa-content-server/app/scripts/lib/glean/cadFirefox.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// AUTOGENERATED BY glean_parser v14.0.1. DO NOT EDIT. DO NOT COMMIT. | ||
|
||
import EventMetricType from '@mozilla/glean/private/metrics/event'; | ||
|
||
/** | ||
* User engaged on the "Connect another device" screen with choice options, | ||
* selecting either of "I already have FF for mobile" or "I don't have FF for | ||
* mobile", which is provided in the 'reason' for this event | ||
* | ||
* Generated from `cad_firefox.choice_engage`. | ||
*/ | ||
export const choiceEngage = new EventMetricType( | ||
{ | ||
category: 'cad_firefox', | ||
name: 'choice_engage', | ||
sendInPings: ['events'], | ||
lifetime: 'ping', | ||
disabled: false, | ||
}, | ||
['reason'] | ||
); | ||
|
||
/** | ||
* User submitted on the "Connect another device" screen with choice options, | ||
* submitting either of "I already have FF for mobile" or "I don't have FF for | ||
* mobile", which is provided in the 'reason' for this event | ||
* | ||
* Generated from `cad_firefox.choice_submit`. | ||
*/ | ||
export const choiceSubmit = new EventMetricType( | ||
{ | ||
category: 'cad_firefox', | ||
name: 'choice_submit', | ||
sendInPings: ['events'], | ||
lifetime: 'ping', | ||
disabled: false, | ||
}, | ||
['reason'] | ||
); | ||
|
||
/** | ||
* User viewed the "Connect another device" screen with choice options to download | ||
* FF for mobile or not | ||
* | ||
* Generated from `cad_firefox.choice_view`. | ||
*/ | ||
export const choiceView = new EventMetricType( | ||
{ | ||
category: 'cad_firefox', | ||
name: 'choice_view', | ||
sendInPings: ['events'], | ||
lifetime: 'ping', | ||
disabled: false, | ||
}, | ||
[] | ||
); | ||
|
||
/** | ||
* User clicked the "Continue to sync" button on the "Download Firefox for mobile" | ||
* screen | ||
* | ||
* Generated from `cad_firefox.sync_device_submit`. | ||
*/ | ||
export const syncDeviceSubmit = new EventMetricType( | ||
{ | ||
category: 'cad_firefox', | ||
name: 'sync_device_submit', | ||
sendInPings: ['events'], | ||
lifetime: 'ping', | ||
disabled: false, | ||
}, | ||
[] | ||
); | ||
|
||
/** | ||
* User viewed the "Download Firefox for mobile" screen after choosing and | ||
* submitting the "I don't have Firefox for mobile" option | ||
* | ||
* Generated from `cad_firefox.view`. | ||
*/ | ||
export const view = new EventMetricType( | ||
{ | ||
category: 'cad_firefox', | ||
name: 'view', | ||
sendInPings: ['events'], | ||
lifetime: 'ping', | ||
disabled: false, | ||
}, | ||
[] | ||
); |
This file contains 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
13 changes: 13 additions & 0 deletions
13
packages/fxa-content-server/app/scripts/models/pairing/form-needs-mobile.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import Backbone from 'backbone'; | ||
|
||
const FormNeedsMobile = Backbone.Model.extend({ | ||
defaults: { | ||
needsMobileConfirmed: false, | ||
}, | ||
}); | ||
|
||
export default FormNeedsMobile; |
Oops, something went wrong.