Commit Graph

1298 Commits

Author SHA1 Message Date
Meg Viar
f894cbcfc5 Bug 1779422 - Make push state updates configurable in aboutWelcome r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D152061
2022-07-22 17:09:17 +00:00
Csoregi Natalia
52f52b1095 Backed out changeset 1a66d46b4b28 (bug 1779422) for causing fxms failures. CLOSED TREE 2022-07-22 18:39:58 +03:00
Meg Viar
a2828e0a11 Bug 1779422 - Make push state updates configurable in aboutWelcome r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D152061
2022-07-22 14:34:00 +00:00
Dão Gottwald
e514aabc62 Bug 1780568 - --newtab-element-hover-color needs more contrast, especially on dark backgrounds. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D152403
2022-07-22 13:36:12 +00:00
scott
0bbeca25d3 Bug 1779643 - Pocket newtab remove old border and hero css and options r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D151872
2022-07-22 04:31:45 +00:00
Barret Rennie
a8e3bb32ff Bug 1779950 - Keep FxMS test corpus up-to-date for make-schemas.py r=nalexander
The fxms schema job has been updated with a script that writes out the test
corpus for the test. This means we no longer need to keep these JSON files in
tree, since the test will automatically generate them.

Differential Revision: https://phabricator.services.mozilla.com/D151985
2022-07-21 00:47:46 +00:00
Barret Rennie
d99b4d74d4 Bug 1779142 - Support generating multiple schemas in make-schemas.py r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D151568
2022-07-21 00:47:45 +00:00
Barret Rennie
6c9a4ed36a Bug 1775187 - Refactor out common elements of FxMS schema r=Mardak
The following propertie have been refactored out into the top-level message
schema so that they don't have to be repeated in each template's schema:

- `frequency`
- `groups`
- `id`
- `priority`

A definition for the `trigger` property has been added to the common schemas as
`MessageTrigger` so that messages that require triggering can reference this
definition.

Each template schema now requires only its template (as a const value or enum)
and its content, as well as any additional top-level properties that are
message specific (e.g., `order` for `WhatsNewMessage`).

`id`, `content`, and `template` properties are required for all messages.
Individual template schemas do not need to mark `content` and `template` as
required since they are required by the top-level schema. Messages that
require triggering or targeting must define those properties.

Differential Revision: https://phabricator.services.mozilla.com/D150705
2022-07-21 00:47:45 +00:00
Barret Rennie
e30f98e555 Bug 1779109 - Add a schema for protections_panel template r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D151560
2022-07-21 00:47:44 +00:00
Barret Rennie
8fbde5b119 Bug 1775187 - Refactor out localizableText and localizedText from FxMS schemas r=nalexander,dmose
Several kinds of FxMS messages support a common pattern of taking either a
string or an object containing a string ID, allowing for both raw strings and
translated string IDs to be used in messages. This patch refactors that pattern
out into a common definition (localizedText and localizableText) in a common
schema which other schemas can then reference.

Our schema bundling script has been updated to bundle these definitions from
the common schema as top-level definitions (and subsequently rewrite the
references from FxMSCOmmon.schema.json to the generated schema) because Nimbus
and Experimenter only support a single schema file per feature.

To ensure compatability with Experimenter, all our in-tree messages have been
extracted into a test corpus that is validated with the Experimenter JSON
Schema validator. A future patch in this series will clean this up so we don't
need to have separate copies of messages in the tree.

We are now also validating all messages from the CFRMessageProvider with our
in-tree JSON Schema validator that Nimbus uses. The OnboardingMessageProvider
and PanelTestProvider tests have also been updated so that all three are using
the same testing infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D150704
2022-07-21 00:47:44 +00:00
Nick Alexander
232384a3e0 Bug 1780299 - Add isBackgroundTaskMode and backgroundTaskName to ASRouterTargeting. r=barret
These will allow targeting Nimbus experiments and Firefox Messaging
System messages only to background tasks.

Differential Revision: https://phabricator.services.mozilla.com/D152289
2022-07-20 19:15:18 +00:00
Nick Alexander
6e9303448d Bug 1775128 - Add toast_notification message template for displaying (native) toast notifications. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D150073
2022-07-20 02:58:42 +00:00
scott
acb6544ac6 Bug 1778351 - Removing some old Pocket newtab experiment code. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D151666
2022-07-19 17:32:56 +00:00
Gavin Suntop
22efb6479f Bug 1776768 - fixing option expand collapse animation r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D152126
2022-07-18 21:29:05 +00:00
Jason Prickett
e31905c4cb Bug 1779048 - Adding PIN and OTHER as promo types in PbNewTab message schema r=pdahiya,barret
Differential Revision: https://phabricator.services.mozilla.com/D151664
2022-07-15 15:52:04 +00:00
negin
9ab72cd40c Bug 1754471 - Remove Whats New Panel from devtools r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D151392
2022-07-13 20:57:04 +00:00
scott
9d63b57239 Bug 1779459 - Pocket newtab update "more topics" link in topics widget r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D151752
2022-07-13 18:23:08 +00:00
scott
e21d9b5651 Bug 1779008 - Pocket newtab recent saves section, handle edge cases for certain props on certain stories. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D151513
2022-07-12 20:02:08 +00:00
Barret Rennie
3b75183455 Bug 1776478 - Support empty messages in the FxMS experiment schema r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D150691
2022-07-12 00:27:18 +00:00
Meg Viar
48c38db878 Bug 1777507 - Adjust Multistage Spotlight container style to handle new MR 50-50 template designs r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D151170
2022-07-11 20:35:52 +00:00
Butkovits Atila
5d193db1cf Backed out changeset 8fe694b12df5 (bug 1776478) as requested by Barret. CLOSED TREE 2022-07-11 23:16:02 +03:00
Barret Rennie
c6fa8e2893 Bug 1776478 - Support empty messages in the FxMS experiment schema r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D150691
2022-07-11 19:36:17 +00:00
Barret Rennie
acd1cb8603 Bug 1778422 - Fix secondary buttons in ExtensionDoorhanger.schema.json r=emcminn
Additionally, the secondary property is actually an array of objects, not an object.

Differential Revision: https://phabricator.services.mozilla.com/D151194
2022-07-09 01:17:05 +00:00
Barret Rennie
7b181b5725 Bug 1778592 - Fix template uniqueness check in make-schemas.py r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D151338
2022-07-09 01:17:05 +00:00
Barret Rennie
a91de82338 Bug 1778368 - Add Python jsonschema tests for FxMS schema r=dmose
To ensure that we don't ship a schema that breaks Experimenter, we now have
in-tree tests that validate FxMS messages against our schema using the same
JSON Schema evaluator (python-jsonchema).

Our test corpus is the same as test_PanelTestProvider.js. We cannot have
PanelTestProvider.jsm fetch the messages from the JSON due to fetch() not being
supported in the newtab npm tests.

Differential Revision: https://phabricator.services.mozilla.com/D151169
2022-07-09 01:17:05 +00:00
scott
abd0669b17 Bug 1776237 - Pocket newtab recent saves hide last item if on last row. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D150809
2022-07-07 01:27:33 +00:00
Meg Viar
5435e7b1c9 Bug 1776686 - Add progress bar style to step indicator for MR new user onboarding r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D150399
2022-07-06 20:05:42 +00:00
Barret Rennie
66549c9869 Bug 1778368 - Patch relative refs into absolute refs in the FxMS mega schema r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D151159
2022-07-06 19:54:39 +00:00
Meg Viar
f0d0a750b5 Bug 1774061 - MR new user onboarding to have 50-50 split template r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D150185
2022-07-06 14:48:57 +00:00
scott
75329af4b9 Bug 1777539 - Pocket newtab remove load more button and last card features r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D150789
2022-07-05 19:57:22 +00:00
scott
905f931ec2 Bug 1776202 - Pocket newtab recent saves adding my list link to top right of section r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D150500
2022-07-01 16:20:38 +00:00
scott
af929cc0de Bug 1776770 - Pocket newtab recent saves pref work r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D150579
2022-06-30 03:29:13 +00:00
Barret Rennie
ad911a3922 Bug 1771073 - Make make-schemas.py executable r=dmose
Depends on D147332

Differential Revision: https://phabricator.services.mozilla.com/D150398
2022-06-29 23:01:37 +00:00
Barret Rennie
b3e2605f2b Bug 1771073 - Correct FxMS features and keep them up to date with tests r=dmose,pdahiya
The Nimbus Features corresponding to FxMS messaging surfaces are actually
intended to map to FxMS message groups, which can accept *any* FxMS message.
The features have been updated with schemas that accept any FxMS message.

As part of this, all FxMS schemas have been updated with an `$id` so that they
can be bundled into feature schemas and have their internal `$ref`s work.
(Otherwise, a `$ref` would be relative to the top-level schema instead of the
sub-schema).

Schemas for individual message types are no longer exposed as resource:// URIs,
except in tests, as indivual schemas are no longer required at runtime.

Additionally, each FxMS schema has had its `template` field become required and
requires a constant value for that schema (e.g., Spotlight requires a template
value of "spotlight").

A test has been added to ensure that if any of the messaging surfaces schemas
change that the feature schemas are also updated. The feature schemas can be
regenerated via:

```
cd ./browser/components/newtab/content-src/asrouter/schemas
../../../../../../mach make-schemas.py
```

Differential Revision: https://phabricator.services.mozilla.com/D147332
2022-06-29 23:01:37 +00:00
Gavin Suntop
f474ac4942 Bug 1774484 - Add controls for recent article visibility r=thecount,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D150165
2022-06-27 16:08:38 +00:00
scott
309d065815 Bug 1774473 - Pocket newtab recent saves section. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D150196
2022-06-24 20:41:32 +00:00
scott
cc4ab52a2b Bug 1774472 - Pocket newtab split cardgrid into sections. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D149700
2022-06-23 23:49:55 +00:00
Marian-Vasile Laza
c52db672e4 Backed out changeset 4d1df2afaf99 (bug 1774472) for causing newtab failures. 2022-06-23 22:06:41 +03:00
scott
36e61de688 Bug 1774472 - Pocket newtab split cardgrid into sections. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D149700
2022-06-23 18:11:22 +00:00
Meg Viar
4c527f9886 Bug 1772025 - Add targeting for users who have private Firefox browser pinned r=pdahiya,barret
Differential Revision: https://phabricator.services.mozilla.com/D148446
2022-06-22 18:30:03 +00:00
Scott
3e691f1733 Bug 1771546 - Pocket newtab colletion/topics card. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D147548
2022-06-10 23:44:31 +00:00
Meg Viar
18b8999d5a Bug 1771899 - Spotlight's fancy/gradient title is not visible when selected if the Dark theme is enabled r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D148435
2022-06-08 12:28:49 +00:00
Meg Viar
18fbb156c1 Bug 1762189 - Include localized app marketplace Icons in langpacks r=barret,glandium
Differential Revision: https://phabricator.services.mozilla.com/D143540
2022-06-07 23:23:33 +00:00
Dão Gottwald
4d7d917a57 Bug 1772364 - Rename monochromatic/ to colorways/. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D148135
2022-06-03 06:33:14 +00:00
Dão Gottwald
9b95430d59 Bug 1771961 - Align preexisting colorways with new directory structure r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D147784
2022-06-02 07:51:34 +00:00
Scott
73a592ea16 Bug 1767445 - Pocket newtab topics widget r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D146327
2022-05-20 22:04:46 +00:00
Barret Rennie
f86903b198 Bug 1768727 - Make messaging systems more backwards compatible and update schemas to match in-flight messages r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D146028
2022-05-12 21:39:18 +00:00
Punam Dahiya
f8991ed533 Bug 1767618 - Adjust about:welcome background container minimum width r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D145811
2022-05-11 02:06:55 +00:00
Scott
81040cee89 Bug 1767448 - Pocket newtab available screen height and width for card pings. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D145334
2022-05-10 21:03:36 +00:00
manisha27
d5457eeb7d Bug 1765452 - Move and Rename the trending icon. r=desktop-theme-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D144251
2022-05-09 22:33:03 +00:00