Skip to content

Commit e4c4bd0

Browse files
committed
Merge branch 'release-candidate' into release
2 parents 301d829 + b2e7a8f commit e4c4bd0

File tree

116 files changed

+1093
-647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1093
-647
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @AntonLantukh @dbudzins

.github/workflows/release-create-release-candidate-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
git config --global user.email 'ott-release-script@jwplayer.com'
2424
git fetch origin ${{ github.ref_name }}
2525
git merge origin/${{ github.ref_name }}
26-
yarn && yarn i18next
26+
yarn && yarn workspace @jwp/ott-web run i18next
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
2929

.github/workflows/web-test-deploy-preview-and-lighthouse.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ defaults:
1010
jobs:
1111
build_and_preview:
1212
name: Build and preview
13+
if: '! github.event.pull_request.head.repo.fork '
1314
runs-on: ubuntu-latest
1415
outputs:
1516
output1: ${{ steps.firebase_hosting_preview.outputs.details_url }}
@@ -29,6 +30,7 @@ jobs:
2930

3031
lhci:
3132
name: Lighthouse
33+
if: '! github.event.pull_request.head.repo.fork '
3234
runs-on: ubuntu-latest
3335
needs: build_and_preview
3436
steps:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
## [6.2.0](https://github.com/jwplayer/ott-web-app/compare/v6.1.2...v6.2.0) (2024-06-13)
2+
3+
4+
### Features
5+
6+
* **auth:** disable social login features ([f504e8f](https://github.com/jwplayer/ott-web-app/commit/f504e8f481730ce21e48abf0c31a5e54a31cba1c))
7+
* extend minimum browser support using APP_LEGACY_BUILD env-var ([1794113](https://github.com/jwplayer/ott-web-app/commit/1794113cce60dbb02ff5ab999b132b354d14a661))
8+
* **payment:** show external payment explanation ([7efffc7](https://github.com/jwplayer/ott-web-app/commit/7efffc797e37d244ca2c3f2a81d88187bbe6dfe6))
9+
* **profiles:** remove profiles from the web app ([e507314](https://github.com/jwplayer/ott-web-app/commit/e50731405626bdbe0f29fde61402bac34d669af8))
10+
* **project:** implement i18next-parser-workspaces cli ([2fa5bfd](https://github.com/jwplayer/ott-web-app/commit/2fa5bfd34ffad9561cb598a9cbd7ea57043de807))
11+
* **project:** make button states consistent ([#546](https://github.com/jwplayer/ott-web-app/issues/546)) ([07c8c55](https://github.com/jwplayer/ott-web-app/commit/07c8c55b35e848a1a3c771556fce12f26e84b0e6))
12+
* **project:** support live channel without tv guide ([92564d4](https://github.com/jwplayer/ott-web-app/commit/92564d42b7a43661d4a94b7ca7029ea91b3b1104))
13+
* **project:** use content type for live events ([6e6b2d6](https://github.com/jwplayer/ott-web-app/commit/6e6b2d64de729fe3f59f991039ffd8a3c56ef827))
14+
15+
16+
### Bug Fixes
17+
18+
* **a11y:** ensure label is present for buttons in busy state ([a388e48](https://github.com/jwplayer/ott-web-app/commit/a388e488c8e10fab8cb13cf26687d2c643e6555e))
19+
* **a11y:** hide focus outline when not tabbing ([3d1cbf1](https://github.com/jwplayer/ott-web-app/commit/3d1cbf16e010c595c1af72eaa35af50fee8045ac))
20+
* **a11y:** make related videos section semantically correct ([57e2641](https://github.com/jwplayer/ott-web-app/commit/57e2641f92cf5db8a5ccd7d9d0cce34123c5d675))
21+
* **epg:** live tag overlap issues ([448c196](https://github.com/jwplayer/ott-web-app/commit/448c19660e83b665c8fb45cd4b7e34021219ed22))
22+
* generic consent_required validation message ([7146972](https://github.com/jwplayer/ott-web-app/commit/71469721cacb6224e080910e5491da7935f5eea9))
23+
* generic required validation message & show after submission ([70c34c5](https://github.com/jwplayer/ott-web-app/commit/70c34c54cb6d5770cd670034fceaf26f9b91e5e6))
24+
* **payment:** waiting for payment not working for jwp ppv ([8d92adc](https://github.com/jwplayer/ott-web-app/commit/8d92adc3f666a2cfe512401fc405e8cfcb4af6cd))
25+
* **project:** hide live event date for live channels ([6009ef5](https://github.com/jwplayer/ott-web-app/commit/6009ef55c9966cecd37a5986bb2e50912e3db65c))
26+
* **project:** remove focus outline around app ([a706d0e](https://github.com/jwplayer/ott-web-app/commit/a706d0e2f99fa35f4033c9b7b7b7d6e85c546a83))
27+
* **project:** restrict text length to avoid scrolling issue ([#538](https://github.com/jwplayer/ott-web-app/issues/538)) ([18a1990](https://github.com/jwplayer/ott-web-app/commit/18a19903cddaa3d88eb2047fe01b530ac6a1efb1))
28+
129
## [6.1.2](https://github.com/jwplayer/ott-web-app/compare/v6.1.1...v6.1.2) (2024-05-21)
230

331

i18next-parser.config.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

knip.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ const config: KnipConfig = {
3737
'@babel/core', // Required peer dependency for babel plugins
3838
'@types/luxon', // Used in tests
3939
'babel-plugin-transform-typescript-metadata', // Used to build with decorators for ioc resolution
40+
'core-js', // Conditionally imported at build time
4041
'eslint-plugin-codeceptjs', // Used by apps/web/test-e2e/.eslintrc.cjs
42+
'i18next-parser',
4143
'luxon', // Used in tests
4244
'playwright', // Used in test configs
4345
'sharp', // Requirement for @vite-pwa/assets-generator
4446
'tsconfig-paths', // Used for e2e test setup
45-
'virtual:pwa-register', // Service Worker code is injected at build time,
47+
'virtual:pwa-register', // Service Worker code is injected at build time
48+
'virtual:polyfills', // Polyfills are conditionally injected
4649
],
4750
},
4851
'configs/eslint-config-jwp': {

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jwp/ott",
3-
"version": "6.1.2",
3+
"version": "6.2.0",
44
"private": true,
55
"license": "Apache-2.0",
66
"repository": "https://github.com/jwplayer/ott-web-app.git",
@@ -21,9 +21,8 @@
2121
"format:eslint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\" --fix",
2222
"format:prettier": "prettier --write \"{**/*,*}.{js,ts,jsx,tsx}\"",
2323
"format:stylelint": "stylelint --fix '**/*.{css,scss}'",
24-
"i18next": "i18next 'platforms/*/src/**/*.{ts,tsx}' 'packages/*/src/**/*.{ts,tsx}' && node ./scripts/i18next/generate.js",
2524
"i18next-diff": "npx ts-node ./scripts/i18next/diff-translations",
26-
"i18next-update": "npx ts-node ./scripts/i18next/update-translations.ts && yarn i18next",
25+
"i18next-update": "npx ts-node ./scripts/i18next/update-translations.ts && yarn workspace @jwp/ott-web run i18next",
2726
"lint": "run-p -c lint:*",
2827
"lint:eslint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
2928
"lint:prettier": "prettier --check \"{**/*,*}.{js,ts,jsx,tsx}\"",
@@ -43,7 +42,7 @@
4342
"csv-parse": "^5.4.0",
4443
"eslint": "^8.57.0",
4544
"husky": "^6.0.0",
46-
"i18next-parser": "^8.0.0",
45+
"i18next-parser-workspaces": "^0.2.0",
4746
"knip": "^5.0.3",
4847
"lint-staged": "^15.1.0",
4948
"npm-run-all": "^4.1.5",

packages/common/src/constants.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ export const CONTENT_TYPE = {
3636
series: 'series',
3737
// Separate episode page
3838
episode: 'episode',
39-
// Page with a list of channels
39+
// Page with a list of live channels
4040
live: 'live',
41-
// Separate channel page
41+
// Live channel (24x7)
4242
liveChannel: 'livechannel',
43+
// Temporary live stream that starts at a specific time
44+
liveEvent: 'liveevent',
4345
// Static page with markdown
4446
page: 'page',
4547
// Page with shelves list

packages/common/src/controllers/AccountController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export default class AccountController {
419419
let pendingOffer: Offer | null = null;
420420

421421
if (!activeSubscription && !!retry && retry > 0) {
422-
const retryDelay = 1500; // Any initial delay has already occured, so we can set this to a fixed value
422+
const retryDelay = 1500; // Any initial delay has already occurred, so we can set this to a fixed value
423423

424424
return await this.reloadSubscriptions({ delay: retryDelay, retry: retry - 1 });
425425
}

packages/common/src/controllers/CheckoutController.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,11 @@ export default class CheckoutController {
242242
const { getAccountInfo } = useAccountStore.getState();
243243

244244
const { customerId } = getAccountInfo();
245-
246-
assertModuleMethod(this.checkoutService.getSubscriptionSwitches, 'getSubscriptionSwitches is not available in checkout service');
247-
assertModuleMethod(this.checkoutService.getOffer, 'getOffer is not available in checkout service');
248-
249245
const { subscription } = useAccountStore.getState();
250246

251-
if (!subscription) return null;
247+
if (!subscription || !this.checkoutService.getSubscriptionSwitches) return null;
248+
249+
assertModuleMethod(this.checkoutService.getOffer, 'getOffer is not available in checkout service');
252250

253251
const response = await this.checkoutService.getSubscriptionSwitches({
254252
customerId: customerId,

0 commit comments

Comments
 (0)