Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit a4f7b30

Browse files
committed
Merge remote-tracking branch 'origin/develop' into staging
2 parents 5dfcd2b + 7448bd5 commit a4f7b30

File tree

755 files changed

+6457
-8377
lines changed

Some content is hidden

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

755 files changed

+6457
-8377
lines changed

.eslintrc.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ module.exports = {
4646

4747
"import/no-duplicates": ["error"],
4848
// Ban matrix-js-sdk/src imports in favour of matrix-js-sdk/src/matrix imports to prevent unleashing hell.
49+
// Ban compound-design-tokens raw svg imports in favour of their React component counterparts
4950
"no-restricted-imports": [
5051
"error",
5152
{
5253
paths: [
54+
{
55+
name: "@testing-library/react",
56+
message: "Please use jest-matrix-react instead",
57+
},
5358
{
5459
name: "matrix-js-sdk",
5560
message: "Please use matrix-js-sdk/src/matrix instead",
@@ -92,6 +97,8 @@ module.exports = {
9297
"!matrix-js-sdk/src/crypto-api",
9398
"!matrix-js-sdk/src/types",
9499
"!matrix-js-sdk/src/testing",
100+
"!matrix-js-sdk/src/utils/**",
101+
"matrix-js-sdk/src/utils/internal/**",
95102
"matrix-js-sdk/lib",
96103
"matrix-js-sdk/lib/",
97104
"matrix-js-sdk/lib/**",
@@ -119,7 +126,6 @@ module.exports = {
119126
"!matrix-js-sdk/src/extensible_events_v1/PollEndEvent",
120127
"!matrix-js-sdk/src/extensible_events_v1/InvalidEventError",
121128
"!matrix-js-sdk/src/crypto",
122-
"!matrix-js-sdk/src/crypto/aes",
123129
"!matrix-js-sdk/src/crypto/keybackup",
124130
"!matrix-js-sdk/src/crypto/deviceinfo",
125131
"!matrix-js-sdk/src/crypto/dehydration",
@@ -149,6 +155,10 @@ module.exports = {
149155
message:
150156
"This regex doesn't actually test for emoji. See the docs at https://emojibase.dev/docs/regex/ and prefer our own EMOJI_REGEX from HtmlUtils.",
151157
},
158+
{
159+
group: ["@vector-im/compound-design-tokens/icons/*"],
160+
message: "Please use @vector-im/compound-design-tokens/assets/web/icons/* instead",
161+
},
152162
],
153163
},
154164
],

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
backport:
1212
name: Backport
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
# Only react to merged PRs for security reasons.
1515
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
1616
if: >

.github/workflows/end-to-end-tests-netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
report:
1616
if: github.event.workflow_run.conclusion != 'cancelled'
1717
name: Report results
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
environment: Netlify
2020
permissions:
2121
statuses: write

.github/workflows/end-to-end-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ env:
4545
jobs:
4646
build:
4747
name: "Build Element-Web"
48-
runs-on: ubuntu-latest
48+
runs-on: ubuntu-22.04
4949
if: inputs.skip != true
5050
steps:
5151
- name: Checkout code
@@ -95,7 +95,7 @@ jobs:
9595
name: "Run Tests ${{ matrix.runner }}/${{ strategy.job-total }}"
9696
needs: build
9797
if: inputs.skip != true
98-
runs-on: ubuntu-latest
98+
runs-on: ubuntu-22.04
9999
permissions:
100100
actions: read
101101
issues: read
@@ -162,7 +162,7 @@ jobs:
162162
name: end-to-end-tests
163163
needs: playwright
164164
if: always()
165-
runs-on: ubuntu-latest
165+
runs-on: ubuntu-22.04
166166
steps:
167167
- uses: actions/checkout@v4
168168
if: inputs.skip != true

.github/workflows/netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
deploy:
1111
if: github.event.workflow_run.conclusion != 'cancelled' && github.event.workflow_run.event == 'pull_request'
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313
environment: Netlify
1414
steps:
1515
- name: 📝 Create Deployment

.github/workflows/notify-element-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
notify-element-web:
99
name: "Notify Element Web"
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
# Only respect triggers from our develop branch, ignore that of forks
1212
if: github.repository == 'element-hq/matrix-react-sdk'
1313
steps:

.github/workflows/playwright-image-updates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- cron: "0 6 * * *" # Every day at 6am UTC
66
jobs:
77
update:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
steps:
1010
- uses: actions/checkout@v4
1111

.github/workflows/pull_request_base_branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
check_base_branch:
77
name: Check PR base branch
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
steps:
1010
- uses: actions/github-script@v7
1111
with:

.github/workflows/static_analysis.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
jobs:
1919
ts_lint:
2020
name: "Typescript Syntax Check"
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2222
steps:
2323
- uses: actions/checkout@v4
2424

@@ -67,7 +67,7 @@ jobs:
6767
6868
rethemendex_lint:
6969
name: "Rethemendex Check"
70-
runs-on: ubuntu-latest
70+
runs-on: ubuntu-22.04
7171
steps:
7272
- uses: actions/checkout@v4
7373

@@ -77,7 +77,7 @@ jobs:
7777

7878
js_lint:
7979
name: "ESLint"
80-
runs-on: ubuntu-latest
80+
runs-on: ubuntu-22.04
8181
steps:
8282
- uses: actions/checkout@v4
8383

@@ -95,7 +95,7 @@ jobs:
9595

9696
style_lint:
9797
name: "Style Lint"
98-
runs-on: ubuntu-latest
98+
runs-on: ubuntu-22.04
9999
steps:
100100
- uses: actions/checkout@v4
101101

@@ -113,7 +113,7 @@ jobs:
113113

114114
workflow_lint:
115115
name: "Workflow Lint"
116-
runs-on: ubuntu-latest
116+
runs-on: ubuntu-22.04
117117
steps:
118118
- uses: actions/checkout@v4
119119

@@ -131,7 +131,7 @@ jobs:
131131

132132
analyse_dead_code:
133133
name: "Analyse Dead Code"
134-
runs-on: ubuntu-latest
134+
runs-on: ubuntu-22.04
135135
steps:
136136
- uses: actions/checkout@v4
137137

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929
jobs:
3030
jest:
3131
name: Jest
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-22.04
3333
strategy:
3434
fail-fast: false
3535
matrix:
@@ -93,7 +93,7 @@ jobs:
9393
name: jest-tests
9494
needs: jest
9595
if: always()
96-
runs-on: ubuntu-latest
96+
runs-on: ubuntu-22.04
9797
steps:
9898
- if: needs.jest.result != 'skipped' && needs.jest.result != 'success'
9999
run: exit 1
@@ -111,7 +111,7 @@ jobs:
111111

112112
app-tests:
113113
name: Element Web Integration Tests
114-
runs-on: ubuntu-latest
114+
runs-on: ubuntu-22.04
115115
steps:
116116
- uses: actions/checkout@v4
117117
with:

0 commit comments

Comments
 (0)