-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnimbus.fml.yaml
559 lines (539 loc) · 18 KB
/
nimbus.fml.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
---
channels:
- developer
- beta
- release
features:
general-app-features:
description: The feature that contains feature flags for the entire application
variables:
pull-to-refresh:
description: "This property defines whether or not the feature is enabled"
type: GeneralFeature
default:
{
"status": true
}
report-site-issue:
description: "This property defines whether or not the feature is enabled"
type: GeneralFeature
default:
{
"status": false
}
shake-to-restore:
description: "This property defines whether or not the feature is enabled"
type: GeneralFeature
default:
{
"status": false
}
defaults:
- channel: beta
value: {
"pull-to-refresh": {
"status": true
},
"report-site-issue": {
"status": true
},
"shake-to-restore": {
"status": true
}
}
- channel: developer
value: {
"pull-to-refresh": {
"status": true
},
"report-site-issue": {
"status": true
},
"shake-to-restore": {
"status": true
}
}
start-at-home-feature:
description: The controls for Start at Home feature
variables:
setting:
description: "This property provides a default setting for the startAtHomeFeature"
type: StartAtHome
default: after-four-hours
defaults:
- channel: beta
value: {
"setting": after-four-hours
}
- channel: developer
value: {
"setting": after-four-hours
}
search:
description: The search feature
variables:
awesome-bar:
description: "This property is covers the properties related to the awesome-bar"
type: AwesomeBar
default:
{
"use-page-content": false,
"search-highlights": false,
"position": {
"is-position-feature-enabled": true,
"is-bottom": true
}
}
spotlight:
description: "This property is covers the properties related to the spotlight"
type: Spotlight
default:
{
"enabled": false,
"description": "",
"use-html-content": true,
"icon": "letter",
"keep-for-days": null
}
defaults:
- channel: beta
value: {
"awesome-bar": {
"search-highlights": true,
"position": {
"is-position-feature-enabled": true,
"is-bottom": true
}
}
}
- channel: developer
value: {
"awesome-bar": {
"search-highlights": true,
"position": {
"is-position-feature-enabled": true,
"is-bottom": true
}
}
}
nimbus-validation:
description: "A feature that does not correspond to an application feature suitable for showing
that Nimbus is working."
variables:
settings-title:
description: The title of displayed in the Settings screen and app menu.
type: String
default: "app_menu_settings_title"
settings-title-punctuation:
description: The emoji displayed in the Settings screen title.
type: String
default: ""
settings-icon:
description: The drawable displayed in the app menu for Settings
type: String
default: "menu-Settings"
homescreenFeature:
description: The homescreen that the user goes to when they press home or new tab.
variables:
sections-enabled:
description: "This property provides a lookup table of whether or not the given section should be enabled.
If the section is enabled, it should be toggleable in the settings screen, and on by default."
type: Map<HomeScreenSection, Boolean>
default:
{
"top-sites": true,
"jump-back-in": true,
"recently-saved": true,
"recent-explorations": true,
"pocket": false
}
sponsored-tiles:
description: "This property defines the sponsored tile feature on the
homepage, which is not a section therein."
type: SponsoredTiles
default:
{
"status": false,
"max-number-of-tiles": 0
}
wallpaper-feature:
description: "This property defines the wallpaper feature on the
homepage, which is not a section therein."
type: GeneralFeature
default:
{
"status": false,
}
defaults:
- channel: developer
value: {
"sections-enabled": {
"top-sites": true,
"jump-back-in": true,
"recently-saved": true,
"recent-explorations": true,
"pocket": false
},
"sponsored-tiles": {
"status": false,
"max-number-of-tiles": 0
},
"wallpaper-feature": {
"status": false
}
}
- channel: beta
value: {
"sections-enabled": {
"top-sites": true,
"jump-back-in": true,
"recently-saved": true,
"recent-explorations": true,
"pocket": false
},
"sponsored-tiles": {
"status": false,
"max-number-of-tiles": 0
},
"wallpaper-feature": {
"status": false
}
}
search-term-groups-feature:
description: The feature that controls whether or not search term groups are enabled.
variables:
grouping-enabled:
description: "This property provides a lookup table of whether or not the given grouping should be enabled."
type: Map<SearchTermGroups, Boolean>
default:
{
"history-groups": true,
"tab-tray-groups": false,
}
defaults:
- channel: beta
value: {
"grouping-enabled": {
"history-groups": true,
"tab-tray-groups": true,
}
}
- channel: developer
value: {
"grouping-enabled": {
"history-groups": true,
"tab-tray-groups": true,
}
}
tabTrayFeature:
description: The tab tray screen that the user goes to when they open the tab tray.
variables:
sections-enabled:
description: "This property provides a lookup table of whether or not the given section should be enabled.
If the section is enabled, it should be toggleable in the settings screen, and on by default."
type: Map<TabTraySection, Boolean>
default:
{
"inactive-tabs": false,
}
defaults:
- channel: beta
value: {
"sections-enabled": {
"inactive-tabs": true
}
}
- channel: developer
value: {
"sections-enabled": {
"inactive-tabs": true
}
}
messaging:
description: |
Configuration for the messaging system.
In practice this is a set of growable lookup tables for the
message controller to piece together.
variables:
message-under-experiment:
description: Id or prefix of the message under experiment.
type: Option<String>
default: null
messages:
description: A growable collection of messages, where the Key is the message identifier and the value is its associated MessageData.
type: Map<String, MessageData>
default: {}
triggers:
description: >
A collection of out the box trigger
expressions. Each entry maps to a
valid JEXL expression.
type: Map<String, String>
default: {}
styles:
description: >
A map of styles to configure message
appearance.
type: Map<String, StyleData>
default: {}
actions:
type: Map<String, String>
description: A growable map of action URLs.
default: {}
on-control:
type: ControlMessageBehavior
description: What should be displayed when a control message is selected.
default: show-next-message
defaults:
- value:
triggers:
USER_RECENTLY_INSTALLED: days_since_install < 7
USER_RECENTLY_UPDATED: days_since_update < 7 && days_since_install != days_since_update
USER_TIER_ONE_COUNTRY: ('US' in locale || 'GB' in locale || 'CA' in locale || 'DE' in locale || 'FR' in locale)
USER_EN_SPEAKER: "'en' in locale"
USER_DE_SPEAKER: "'de' in locale"
USER_FR_SPEAKER: "'fr' in locale"
DEVICE_ANDROID: os == 'Android'
DEVICE_IOS: os == 'iOS'
ALWAYS: "true"
NEVER: "false"
actions:
OPEN_SETTINGS: ://deep-link?url=settings/general
OPEN_SETTINGS_NEW_TAB: ://deep-link?url=settings/newtab
OPEN_SETTINGS_HOMESCREEN: ://deep-link?url=settings/homepage
OPEN_SETTINGS_WALLPAPERS: ://deep-link?url=settings/wallpaper
OPEN_SETTINGS_EMAIL: ://deep-link?url=settings/mailto
OPEN_SETTINGS_SEARCH_ENGINE: ://deep-link?url=settings/search
OPEN_SETTINGS_PRIVACY: ://deep-link?url=settings/clear-private-data
OPEN_SETTINGS_FXA: ://deep-link?url=settings/fxa
OPEN_SETTINGS_THEME: ://deep-link?url=settings/theme
VIEW_BOOKMARKS: ://deep-link?url=homepanel/bookmarks
VIEW_TOP_SITES: ://deep-link?url=homepanel/top-sites
VIEW_READING_LIST: ://deep-link?url=homepanel/reading-list
VIEW_HISTORY: ://deep-link?url=homepanel/history
VIEW_DOWNLOADS: ://deep-link?url=homepanel/downloads
ENABLE_PRIVATE_BROWSING: ://deep-link?url=homepanel/new-private-tab
MAKE_DEFAULT_BROWSER: ://deep-link?url=default-browser/system-settings
styles:
DEFAULT:
priority: 50
max-display-count: 5
PERSISTENT:
priority: 50
max-display-count: 20
SURVEY:
priority: 55
max-display-count: 10
WARNING:
priority: 60
max-display-count: 10
URGENT:
priority: 100
max-display-count: 10
types:
objects:
GeneralFeature:
description: "The configuration for the a feature that can be enabled or disabled"
fields:
status:
type: Boolean
description: Whether or not the feature is enabled
default: false
AwesomeBar:
description: "Represents the awesome bar object"
fields:
use-page-content:
description: "Whether or not to use page content"
type: Boolean
default: false
required: true
search-highlights:
description: "Whether or not search highlights are enabled"
type: Boolean
default: false
position:
description: "This property defines whether or not the feature is
enabled, and the position of the search bar"
type: SearchBarPositionFeature
default:
{
"is-position-feature-enabled": true,
"is-bottom": true
}
SearchBarPositionFeature:
description: "The configuration for the bottom search bar on the homescreen"
fields:
is-position-feature-enabled:
type: Boolean
description: Whether or not the feature is enabled
default: true
is-bottom:
type: Boolean
description: Whether or not the default position is at the bottom
default: true
SponsoredTiles:
description: "The configuration for the sponsored tile on the homescreen"
fields:
status:
type: Boolean
description: Whether or not the feature is enabled
default: false
max-number-of-tiles:
type: Int
description: The maximum number of sponsored tiles a user can see
default: 0
MessageData:
description: >
An object to describe a message. It uses human
readable strings to describe the triggers, action and
style of the message as well as the text of the message
and call to action.
fields:
action:
type: String
description: >
A URL of a page or a deeplink.
This may have substitution variables in.
# This should never be defaulted.
default: ""
title:
type: Option<String>
description: "The title text displayed to the user"
default: null
text:
type: String
description: "The message text displayed to the user"
# This should never be defaulted.
default: ""
is-control:
type: Boolean
description: "Indicates if this message is the control message, if true shouldn't be displayed"
default: false
button-label:
type: Option<String>
description: >
The text on the button. If no text
is present, the whole message is clickable.
default: null
style:
type: String
description: >
The style as described in a
`StyleData` from the styles table.
default: DEFAULT
trigger:
type: List<String>
description: >
A list of strings corresponding to
targeting expressions. The message will be
shown if all expressions `true`.
default: []
surface:
type: MessageSurfaceId
description: Each message will tell us the surface it is targeting with this.
# To start, we default to the new-tab-card
default: new-tab-card
StyleData:
description: >
A group of properities (predominantly visual) to
describe the style of the message.
fields:
priority:
type: Int
description: >
The importance of this message.
0 is not very important, 100 is very important.
default: 50
max-display-count:
type: Int
description: >
How many sessions will this message be shown to the user
before it is expired.
default: 5
Spotlight:
description: "An object representing the spotlight"
fields:
enabled:
type: Boolean
description: "Describes whether spotlight is enabled"
default: false
required: true
description:
type: String
default: ""
description: "Is the description of spotlight"
required: true
use-html-content:
type: Boolean
default: true
description: "Describes whether spotlight should use html content"
required: true
icon:
type: IconType
default: letter
description: "Describes the icon of spotlight"
keep-for-days:
type: Option<Int>
default: null
description: "Number of days to keep"
required: true
enums:
IconType:
description: The different types of icons
variants:
screenshot:
description: A screenshot icon
favicon:
description: A favicon icon
letter:
description: A letter icon
MessageSurfaceId:
description: >
For messaging, we would like to have a message tell us which surface its associated with.
This is a label that matches across both Android and iOS.
variants:
new-tab-card:
description: This is the card that appears at the top on the Firefox Home Page.
Unknown:
description: A message has NOT declared its target surface.
StartAtHome:
description: The identifiers for the different types of options for StartAtHome
variants:
disabled:
description: App always opens to the last tab the user was on.
after-four-hours:
description: App opens to a new homepage tab after four hours of inactivity
always:
description: App opens to a new homepage tab after five minutes of inactiviny
HomeScreenSection:
description: The identifiers for the sections of the homescreen.
variants:
top-sites:
description: The frecency and pinned sites.
recently-saved:
description: The sites the user has bookmarked recently.
jump-back-in:
description: The tabs the user was looking immediately before being interrupted.
recent-explorations:
description: The tab groups
pocket:
description: The pocket section. This should only be available in the US.
TabTraySection:
description: The identifiers for the sections of the tab tray.
variants:
inactive-tabs:
description: Tabs that have been automatically closed for the user.
SearchTermGroups:
description: The identifiers for the different types of search term groups.
variants:
history-groups:
description: Grouping for items in History and RecentlyVisited
tab-tray-groups:
description: Grouping for items in the Tab Tray and in JumpBackIn
ControlMessageBehavior:
description: An enum to influence what should be displayed when a control message is selected.
variants:
show-next-message:
description: The next eligible message should be shown.
show-none:
description: The surface should show no message.