Kaitlyn
6751f8924b
add mobile and public shell stories
2024-09-12 11:07:28 -04:00
Kaitlyn
7ecf853039
organize storybook files
2024-09-12 10:46:56 -04:00
Kaitlyn
edd9a236cf
update breaches path
2024-09-12 10:46:56 -04:00
Kaitlyn
e80e39e801
fix rebase error
2024-09-12 10:46:46 -04:00
Kaitlyn
a07980ace7
explicitly type breach as any
2024-09-12 10:46:34 -04:00
Kaitlyn
5cd946c25d
remove old typedef
2024-09-12 10:46:33 -04:00
Kaitlyn
c1c95082ea
MNTOR-3435 - breaches js to ts
2024-09-12 10:46:24 -04:00
Vincent
8df290c4bd
Migrate utils/hibp.js to TypeScript
...
This removes the `Breach` type in functions/universal/breaches,
which was created when first introducing TypeScript and the flow
of data was still unclear, but by now had overlap with other types
and no clear provenance.
Instead, there are now three breach-related types, that represent
where the data came from:
- HibpGetBreachesResponse: this is an array of breach elements as
returned from the HIBP API, unprocessed.
Properties are in PascalCase, so are a
breach's data classes.
- BreachRow: this is a breach's data as stored in our database,
along with some data we added to it, such as a favicon
URL. Properties are snake_case, and data classes are
lowercased and kebab-cased by the
formatDataClassesArray function.
- HibpLikeDbBreach: this is a breach's data fetched from the
database, but stored in an object meant to look
like the ones in HibpGetBreachesResponse. In
other words, it contains the same data as
BreachRow (including lowercased, kebab-cased
data classes), but on PascalCase properties.
The latter is somewhat of a historical artefact, because we used
to try to load breaches from our database, then if our database
didn't contain any breaches yet, fetch them live from the HIBP API
and continue working with that.
We no longer do that: now, even after fetching them from the HIBP
API, we do a new query to get them from the database and process
them into HibpLikeDbBreach, so that we can assume a consisent data
structure everywhere we work with breaches.
2024-09-12 10:45:34 -04:00
Vincent
b0d848befd
Convert DB connection code to TypeScript
2024-09-12 11:15:28 +01:00
Vincent
0a23e91e95
Remove unused file
2024-09-12 11:15:28 +01:00
Vincent
e4573d52d0
Port S3 util module to TypeScript
2024-09-12 11:15:28 +01:00
Vincent
ed65b4a745
Move error object tests to TypeScript
2024-09-12 11:15:28 +01:00
Vincent
9ef9e27afc
Convert email sending utils to TypeScript
2024-09-12 11:15:28 +01:00
Vincent
3bf71b0c17
Convert dockerflow.js to TypeScript
2024-09-12 11:15:28 +01:00
Vincent
731d1aa750
Only load scan results if a scan ran
...
`getLatestOnerepScan` either returns `null` or a scan, so a check
for !== "undefined" will always be true.
In practice, that should have the same results, since fetching
scan results should still return an empty array, but not running
the query in the first place is more efficient.
2024-09-11 10:21:34 +01:00
dependabot[bot]
bd762fbe2d
chore(deps-dev): bump @faker-js/faker from 8.4.1 to 9.0.0 ( #5030 )
...
* chore(deps-dev): bump @faker-js/faker from 8.4.1 to 9.0.0
Bumps [@faker-js/faker](https://github.com/faker-js/faker ) from 8.4.1 to 9.0.0.
- [Release notes](https://github.com/faker-js/faker/releases )
- [Changelog](https://github.com/faker-js/faker/blob/next/CHANGELOG.md )
- [Commits](https://github.com/faker-js/faker/compare/v8.4.1...v9.0.0 )
---
updated-dependencies:
- dependency-name: "@faker-js/faker"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps-dev): bump @faker-js/faker from 8.4.1 to 9.0.0
Bumps [@faker-js/faker](https://github.com/faker-js/faker ) from 8.4.1 to 9.0.0.
- [Release notes](https://github.com/faker-js/faker/releases )
- [Changelog](https://github.com/faker-js/faker/blob/next/CHANGELOG.md )
- [Commits](https://github.com/faker-js/faker/compare/v8.4.1...v9.0.0 )
---
updated-dependencies:
- dependency-name: "@faker-js/faker"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* cast createRandomHibpListing as unknown for faker type changes
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
2024-09-10 13:54:45 -07:00
Robert Helmer
526fd41bd6
land patched package lock for SWC ( #5041 )
2024-09-10 11:24:21 -07:00
dependabot[bot]
a968e9949c
chore(deps): bump the sentry group across 1 directory with 3 updates
...
Bumps the sentry group with 1 update in the / directory: [@sentry/nextjs](https://github.com/getsentry/sentry-javascript ).
Updates `@sentry/nextjs` from 8.28.0 to 8.30.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.28.0...8.30.0 )
Updates `@sentry/node` from 8.28.0 to 8.30.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.28.0...8.30.0 )
Updates `@sentry/utils` from 8.28.0 to 8.30.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.28.0...8.30.0 )
---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: sentry
- dependency-name: "@sentry/node"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: sentry
- dependency-name: "@sentry/utils"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: sentry
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 17:10:13 +00:00
dependabot[bot]
1eccd77935
chore(deps): bump the aws-sdk group with 2 updates
...
Bumps the aws-sdk group with 2 updates: [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3 ) and [@aws-sdk/lib-storage](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/lib/lib-storage ).
Updates `@aws-sdk/client-s3` from 3.637.0 to 3.645.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases )
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.645.0/clients/client-s3 )
Updates `@aws-sdk/lib-storage` from 3.637.0 to 3.645.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases )
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-storage/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.645.0/lib/lib-storage )
---
updated-dependencies:
- dependency-name: "@aws-sdk/client-s3"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: aws-sdk
- dependency-name: "@aws-sdk/lib-storage"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: aws-sdk
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 17:04:32 +00:00
dependabot[bot]
06ea417248
chore(deps): bump body-parser and express
...
Bumps [body-parser](https://github.com/expressjs/body-parser ) and [express](https://github.com/expressjs/express ). These dependencies needed to be updated together.
Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases )
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md )
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3 )
Updates `express` from 4.19.2 to 4.20.0
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.20.0 )
---
updated-dependencies:
- dependency-name: body-parser
dependency-type: indirect
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 16:58:21 +00:00
dependabot[bot]
d78f65774d
chore(deps): bump node from 22.6-alpine to 20.9-alpine ( #5010 )
...
* chore(deps): bump node from 22.6-alpine to 22.7-alpine
Bumps node from 22.6-alpine to 22.7-alpine.
---
updated-dependencies:
- dependency-name: node
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: version alignment
* Downgrade to Node LTS
* downgrade to LTS Node 20.9.0 and NPM 10.1.0
* downgrade to LTS Node 20.9.0 and NPM 10.1.0
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mansaj <jozhou@mozilla.com>
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
2024-09-10 09:40:08 -07:00
Vincent
6bda262b9b
Move feature flag DB code into relevant module
...
This reverts commit affaaab60c
.
It is now possible, since our cron jobs run TypeScript as well.
2024-09-10 13:56:50 +01:00
Vincent
5284d57df5
Remove some unused functions
2024-09-10 13:56:50 +01:00
Vincent
036b8c2369
Remove unused devDependencies
2024-09-10 13:56:50 +01:00
dependabot[bot]
6002f9f3a7
chore(deps-dev): bump fast-check from 3.21.0 to 3.22.0
...
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check ) from 3.21.0 to 3.22.0.
- [Release notes](https://github.com/dubzzz/fast-check/releases )
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/packages/fast-check/CHANGELOG.md )
- [Commits](https://github.com/dubzzz/fast-check/commits/v3.22.0/packages/fast-check )
---
updated-dependencies:
- dependency-name: fast-check
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 12:49:08 +00:00
dependabot[bot]
f0a39b759f
chore(deps): bump the nextjs group across 1 directory with 3 updates
...
Bumps the nextjs group with 3 updates in the / directory: [@next/third-parties](https://github.com/vercel/next.js/tree/HEAD/packages/third-parties ), [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next ) and [next](https://github.com/vercel/next.js ).
Updates `@next/third-parties` from 14.2.7 to 14.2.9
- [Release notes](https://github.com/vercel/next.js/releases )
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js )
- [Commits](https://github.com/vercel/next.js/commits/v14.2.9/packages/third-parties )
Updates `eslint-config-next` from 14.2.7 to 14.2.9
- [Release notes](https://github.com/vercel/next.js/releases )
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js )
- [Commits](https://github.com/vercel/next.js/commits/v14.2.9/packages/eslint-config-next )
Updates `next` from 14.2.7 to 14.2.9
- [Release notes](https://github.com/vercel/next.js/releases )
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js )
- [Commits](https://github.com/vercel/next.js/compare/v14.2.7...v14.2.9 )
---
updated-dependencies:
- dependency-name: "@next/third-parties"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: nextjs
- dependency-name: eslint-config-next
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: nextjs
- dependency-name: next
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: nextjs
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 12:37:12 +00:00
Florian Zia
daf32be7d2
Merge pull request #5029 from mozilla/dependabot/npm_and_yarn/playwright/test-1.47.0
...
chore(deps-dev): bump @playwright/test from 1.46.1 to 1.47.0
2024-09-10 14:05:50 +02:00
Florian Zia
7621ca9290
Merge branch 'main' into dependabot/npm_and_yarn/playwright/test-1.47.0
2024-09-10 13:45:30 +02:00
Florian Zia
6986dd75ee
Merge pull request #5035 from mozilla/mntor-3521
...
Separate middle name and suffix in the sign up flow (MNTOR-3521)
2024-09-10 13:44:25 +02:00
Florian Zia
e86cbcaf47
chore: Update optional field conditions for broker scan
2024-09-10 13:38:14 +02:00
Florian Zia
64d7693510
chore: Update optional field conditions for broker scan
2024-09-10 13:08:26 +02:00
Florian Zia
f3f2c98f8f
chore: Update comment
2024-09-10 13:05:41 +02:00
Vincent
d32fe6307e
In the flag UI, only show flags that the code uses
...
"Deleting" a flag then involves actually removing it from the
codebase. For users of the UI, it should no longer be the case that
flags are listed where enabling/disabling them doesn't do anything.
2024-09-10 10:58:26 +01:00
dependabot[bot]
d298532b80
chore(deps-dev): bump @playwright/test from 1.46.1 to 1.47.0
...
Bumps [@playwright/test](https://github.com/microsoft/playwright ) from 1.46.1 to 1.47.0.
- [Release notes](https://github.com/microsoft/playwright/releases )
- [Commits](https://github.com/microsoft/playwright/compare/v1.46.1...v1.47.0 )
---
updated-dependencies:
- dependency-name: "@playwright/test"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 22:39:32 +00:00
dependabot[bot]
04c161a10a
chore(deps): bump @types/node from 22.4.1 to 22.5.4
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 22.4.1 to 22.5.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 22:38:11 +00:00
dependabot[bot]
fdbfa66714
chore(deps-dev): bump tsx from 4.17.0 to 4.19.0
...
Bumps [tsx](https://github.com/privatenumber/tsx ) from 4.17.0 to 4.19.0.
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.17.0...v4.19.0 )
---
updated-dependencies:
- dependency-name: tsx
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 22:32:50 +00:00
dependabot[bot]
d1fbe067b4
chore(deps-dev): bump @types/k6 from 0.52.0 to 0.53.1
...
Bumps [@types/k6](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/k6 ) from 0.52.0 to 0.53.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/k6 )
---
updated-dependencies:
- dependency-name: "@types/k6"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 22:26:40 +00:00
Florian Zia
cb63eb7f77
chore: Show optional broker scan info fields depending on experiment variant
2024-09-09 17:47:27 +02:00
Florian Zia
3a1bcffe40
feat: Add variants to the welcome-scan-optional-info experiment
2024-09-09 14:50:55 +02:00
mozilla-pontoon
bb887a89e9
Import translations from l10n repository (2024-09-07)
2024-09-09 09:19:23 +01:00
dependabot[bot]
fba15aad40
chore(deps): bump @google-cloud/pubsub from 4.5.0 to 4.7.0
...
Bumps [@google-cloud/pubsub](https://github.com/googleapis/nodejs-pubsub ) from 4.5.0 to 4.7.0.
- [Release notes](https://github.com/googleapis/nodejs-pubsub/releases )
- [Changelog](https://github.com/googleapis/nodejs-pubsub/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googleapis/nodejs-pubsub/compare/v4.5.0...v4.7.0 )
---
updated-dependencies:
- dependency-name: "@google-cloud/pubsub"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-05 17:05:32 +00:00
mansaj
6f6d021c18
Merge pull request #4988 from mozilla/MNTOR-1800-2
...
MNTOR-1800: unsubscribe from free monthly report
2024-09-05 09:19:06 -07:00
Joey Zhou
a26ecb9066
chore: review comments
2024-09-05 09:12:35 -07:00
Joey Zhou
cbf0e3c651
fix: setter
2024-09-05 09:01:42 -07:00
Joey Zhou
60b2c4438a
Merge branch 'main' into MNTOR-1800-2
2024-09-05 09:00:54 -07:00
mansaj
cb4ea8b598
Merge pull request #4972 from mozilla/MNTOR-1800
...
MNTOR-1800: Part 1 - new table for subscriber email preferences
2024-09-05 08:45:47 -07:00
mansaj
4f43ae9f8c
Merge branch 'main' into MNTOR-1800
2024-09-05 08:39:46 -07:00
Joey Zhou
028b3cee20
fix: logs
2024-09-05 08:03:18 -07:00
Joey Zhou
19b164336c
fix: add getEmailPreferenceForPrimaryEmail back
2024-09-05 07:58:44 -07:00
Kaitlyn Andres
76f5218034
Convert subscriber.js into Typescript ( #4924 )
...
* convert stats.js to typescript
* remove unnecessary type
* convert subscribers.js
* fix path
* fix path
* remove params and put back useful comments
* remove null type accepted for updateFxaData
* remove check for null subscriber value
* remove outdated comment
* add comment as to why eslint-disable for no misuse promises is added
* remove null type
* typecast app const to nmb
* stringify fxa profile json argument
* remove updatedUser not null condition
* fix unit tests
* Restore JSDoc comments, without type annotations
Revert "remove params and put back useful comments"
This reverts commit cbfe221514
, but
removes the type annotations from the original JSDoc comments,
which are no longer necessary now that the file is in TypeScript.
* Re-attach comment to the code it's about
* Complete half comments
* Slightly more accurate type
* Tighten up subscriber-related types
This also required adding some runtime code to handle cases where
a query returned undefined that wasn't handled before, but was now
made explicit by the types.
* Use explicit number parsing function
* Remove invalid assertion
`currentFxAProfile` could be `null`, so make sure we explicitly
deal with that case.
---------
Co-authored-by: Vincent <git@vincenttunru.com>
2024-09-05 08:43:10 -04:00