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

Commit 28609c5

Browse files
authored
Merge branch 'matrix-org:develop' into develop
2 parents 9fe64af + b4bcbb2 commit 28609c5

File tree

777 files changed

+22202
-7466
lines changed

Some content is hidden

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

777 files changed

+22202
-7466
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
src/component-index.js
21
test/end-to-end-tests/node_modules/
32
test/end-to-end-tests/element/
43
test/end-to-end-tests/synapse/
54
test/end-to-end-tests/lib/
5+
# Legacy skinning file that some people might still have
6+
src/component-index.js

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module.exports = {
9292
files: [
9393
"src/**/*.{ts,tsx}",
9494
"test/**/*.{ts,tsx}",
95+
"cypress/**/*.ts",
9596
],
9697
extends: [
9798
"plugin:matrix-org/typescript",
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Produce a build of element-web with this version of react-sdk
2+
# and any matching branches of element-web and js-sdk, output it
3+
# as an artifact and run integration tests.
4+
name: Element Web - Build and Test
5+
on:
6+
pull_request:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
env:
11+
# This must be set for fetchdep.sh to get the right branch
12+
PR_NUMBER: ${{github.event.number}}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Build
16+
run: scripts/ci/layered.sh && cd element-web && cp element.io/develop/config.json config.json && CI_PACKAGE=true yarn build
17+
- name: Upload Artifact
18+
uses: actions/upload-artifact@v2
19+
with:
20+
name: previewbuild
21+
path: element-web/webapp
22+
# We'll only use this in a triggered job, then we're done with it
23+
retention-days: 1
24+
cypress:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Download build
30+
uses: actions/download-artifact@v3
31+
with:
32+
name: previewbuild
33+
path: webapp
34+
- name: Run Cypress tests
35+
uses: cypress-io/github-action@v2
36+
with:
37+
# The built in Electron runner seems to grind to a halt trying
38+
# to run the tests, so use chrome.
39+
browser: chrome
40+
start: npx serve -p 8080 webapp
41+
- name: Upload Artifact
42+
if: failure()
43+
uses: actions/upload-artifact@v2
44+
with:
45+
name: cypress-results
46+
path: |
47+
cypress/screenshots
48+
cypress/videos
49+
cypress/synapselogs

.github/workflows/layered-build.yaml

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

.github/workflows/netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Upload Preview Build to Netlify
44
on:
55
workflow_run:
6-
workflows: ["Layered Preview Build"]
6+
workflows: ["Element Web - Build and Test"]
77
types:
88
- completed
99
jobs:

.github/workflows/test_coverage.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# If this is a pull request, make sure we check out its head rather than the
1717
# automatically generated merge commit, so that the coverage diff excludes
1818
# unrelated changes in the base branch
19-
ref: ${{ github.event.type == 'PullRequestEvent' && github.event.pull_request.head.sha || '' }}
19+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}
2020

2121
- name: Yarn cache
2222
uses: c-hive/gha-yarn-cache@v2
@@ -25,10 +25,11 @@ jobs:
2525
run: "./scripts/ci/install-deps.sh --ignore-scripts"
2626

2727
- name: Run tests with coverage
28-
run: "yarn install && yarn reskindex && yarn coverage"
28+
run: "yarn install && yarn coverage"
2929

3030
- name: Upload coverage
3131
uses: codecov/codecov-action@v2
3232
with:
3333
fail_ci_if_error: false
3434
verbose: true
35+
override_commit: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || '' }}

.github/workflows/triage-move-review-requests.yml

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

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@ package-lock.json
1111
/matrix-react-sdk-*.tgz
1212

1313
/.idea
14+
# Legacy skinning file that some people might still have
1415
/src/component-index.js
1516

1617
.DS_Store
1718
*.tmp
1819

1920
.vscode
2021
.vscode/
22+
23+
/cypress/videos
24+
/cypress/downloads
25+
/cypress/screenshots
26+
/cypress/synapselogs
27+
# These could have files in them but don't currently
28+
# Cypress will still auto-create them though...
29+
/cypress/fixtures

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
Changes in [3.42.3](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.3) (2022-04-12)
2+
=====================================================================================================
3+
4+
## ✨ Features
5+
* Release threads as a beta feature ([\#8081](https://github.com/matrix-org/matrix-react-sdk/pull/8081)). Fixes vector-im/element-web#21351.
6+
* More video rooms design updates ([\#8222](https://github.com/matrix-org/matrix-react-sdk/pull/8222)).
7+
* Update video rooms to new design specs ([\#8207](https://github.com/matrix-org/matrix-react-sdk/pull/8207)). Fixes vector-im/element-web#21515, vector-im/element-web#21516 vector-im/element-web#21519 and vector-im/element-web#21526.
8+
* Live Location Sharing - left panel warning with error ([\#8201](https://github.com/matrix-org/matrix-react-sdk/pull/8201)).
9+
* Live location sharing - Stop publishing location to beacons with consecutive errors ([\#8194](https://github.com/matrix-org/matrix-react-sdk/pull/8194)).
10+
* Live location sharing: allow retry when stop sharing fails ([\#8193](https://github.com/matrix-org/matrix-react-sdk/pull/8193)).
11+
* Allow voice messages to be scrubbed in the timeline ([\#8079](https://github.com/matrix-org/matrix-react-sdk/pull/8079)). Fixes vector-im/element-web#18713.
12+
* Live location sharing - stop sharing to beacons in rooms you left ([\#8187](https://github.com/matrix-org/matrix-react-sdk/pull/8187)).
13+
* Allow sending and thumbnailing AVIF images ([\#8172](https://github.com/matrix-org/matrix-react-sdk/pull/8172)).
14+
* Live location sharing - handle geolocation errors ([\#8179](https://github.com/matrix-org/matrix-react-sdk/pull/8179)).
15+
* Show voice room participants when not connected ([\#8136](https://github.com/matrix-org/matrix-react-sdk/pull/8136)). Fixes vector-im/element-web#21513.
16+
* Add margins between labs sections ([\#8169](https://github.com/matrix-org/matrix-react-sdk/pull/8169)).
17+
* Live location sharing - send geolocation beacon events - happy path ([\#8127](https://github.com/matrix-org/matrix-react-sdk/pull/8127)).
18+
* Add support for Animated (A)PNG ([\#8158](https://github.com/matrix-org/matrix-react-sdk/pull/8158)). Fixes vector-im/element-web#12967.
19+
* Don't form continuations from thread roots ([\#8166](https://github.com/matrix-org/matrix-react-sdk/pull/8166)). Fixes vector-im/element-web#20908.
20+
* Improve handling of animated GIF and WEBP images ([\#8153](https://github.com/matrix-org/matrix-react-sdk/pull/8153)). Fixes vector-im/element-web#16193 and vector-im/element-web#6684.
21+
* Wire up file preview for video files ([\#8140](https://github.com/matrix-org/matrix-react-sdk/pull/8140)). Fixes vector-im/element-web#21539.
22+
* When showing thread, always auto-focus its composer ([\#8115](https://github.com/matrix-org/matrix-react-sdk/pull/8115)). Fixes vector-im/element-web#21438.
23+
* Live location sharing - refresh beacon expiry in room ([\#8116](https://github.com/matrix-org/matrix-react-sdk/pull/8116)).
24+
* Use styled mxids in member list v2 ([\#8110](https://github.com/matrix-org/matrix-react-sdk/pull/8110)). Fixes vector-im/element-web#14825. Contributed by @SimonBrandner.
25+
* Delete groups (legacy communities system) ([\#8027](https://github.com/matrix-org/matrix-react-sdk/pull/8027)). Fixes vector-im/element-web#17532.
26+
* Add a prototype of voice rooms in labs ([\#8084](https://github.com/matrix-org/matrix-react-sdk/pull/8084)). Fixes vector-im/element-web#3546.
27+
28+
## 🐛 Bug Fixes
29+
* Fix editing `<ol>` tags with a non-1 start attribute ([\#8211](https://github.com/matrix-org/matrix-react-sdk/pull/8211)). Fixes vector-im/element-web#21625.
30+
* Fix URL previews being enabled when room first created ([\#8227](https://github.com/matrix-org/matrix-react-sdk/pull/8227)). Fixes vector-im/element-web#21659.
31+
* Don't use m.call for Jitsi video rooms ([\#8223](https://github.com/matrix-org/matrix-react-sdk/pull/8223)).
32+
* Scale emoji with size of surrounding text ([\#8224](https://github.com/matrix-org/matrix-react-sdk/pull/8224)).
33+
* Make "Jump to date" translatable ([\#8218](https://github.com/matrix-org/matrix-react-sdk/pull/8218)).
34+
* Normalize call buttons ([\#8129](https://github.com/matrix-org/matrix-react-sdk/pull/8129)). Fixes vector-im/element-web#21493. Contributed by @luixxiul.
35+
* Show room preview bar with maximised widgets ([\#8180](https://github.com/matrix-org/matrix-react-sdk/pull/8180)). Fixes vector-im/element-web#21542.
36+
* Update more strings to not wrongly mention room when it is/could be a space ([\#7722](https://github.com/matrix-org/matrix-react-sdk/pull/7722)). Fixes vector-im/element-web#20243 and vector-im/element-web#20910.
37+
* Fix issue with redacting via edit composer flow causing stuck editStates ([\#8184](https://github.com/matrix-org/matrix-react-sdk/pull/8184)).
38+
* Fix some image/video scroll jumps ([\#8182](https://github.com/matrix-org/matrix-react-sdk/pull/8182)).
39+
* Fix "react error on share dialog" ([\#8170](https://github.com/matrix-org/matrix-react-sdk/pull/8170)). Contributed by @yaya-usman.
40+
* Fix disambiguated profile in threads in bubble layout ([\#8168](https://github.com/matrix-org/matrix-react-sdk/pull/8168)). Fixes vector-im/element-web#21570. Contributed by @SimonBrandner.
41+
* Responsive BetaCard on Labs ([\#8154](https://github.com/matrix-org/matrix-react-sdk/pull/8154)). Fixes vector-im/element-web#21554. Contributed by @luixxiul.
42+
* Display button as inline in room directory dialog ([\#8164](https://github.com/matrix-org/matrix-react-sdk/pull/8164)). Fixes vector-im/element-web#21567. Contributed by @luixxiul.
43+
* Null guard TimelinePanel unmount edge ([\#8171](https://github.com/matrix-org/matrix-react-sdk/pull/8171)).
44+
* Fix beta pill label breaking ([\#8162](https://github.com/matrix-org/matrix-react-sdk/pull/8162)). Fixes vector-im/element-web#21566. Contributed by @luixxiul.
45+
* Strip relations when forwarding ([\#7929](https://github.com/matrix-org/matrix-react-sdk/pull/7929)). Fixes vector-im/element-web#19769, vector-im/element-web#18067 vector-im/element-web#21015 and vector-im/element-web#10924.
46+
* Don't try (and fail) to show replies for redacted events ([\#8141](https://github.com/matrix-org/matrix-react-sdk/pull/8141)). Fixes vector-im/element-web#21435.
47+
* Fix 3pid member info for space member list ([\#8128](https://github.com/matrix-org/matrix-react-sdk/pull/8128)). Fixes vector-im/element-web#21534.
48+
* Set max-width to user context menu ([\#8089](https://github.com/matrix-org/matrix-react-sdk/pull/8089)). Fixes vector-im/element-web#21486. Contributed by @luixxiul.
49+
* Fix issue with falsey hrefs being sent in events ([\#8113](https://github.com/matrix-org/matrix-react-sdk/pull/8113)). Fixes vector-im/element-web#21417.
50+
* Make video sizing consistent with images ([\#8102](https://github.com/matrix-org/matrix-react-sdk/pull/8102)). Fixes vector-im/element-web#20072.
51+
152
Changes in [3.42.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.0) (2022-03-15)
253
=====================================================================================================
354

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,17 @@ tracks lots of state for its child components which it passes into them for visu
5757
rendering via props.
5858

5959
Good separation between the components is maintained by adopting various best
60-
practices that anyone working with the SDK needs to be be aware of and uphold:
60+
practices that anyone working with the SDK needs to be aware of and uphold:
6161

6262
* Components are named with upper camel case (e.g. views/rooms/EventTile.js)
6363

6464
* They are organised in a typically two-level hierarchy - first whether the
6565
component is a view or a structure, and then a broad functional grouping
6666
(e.g. 'rooms' here)
6767

68-
* After creating a new component you must run `yarn reskindex` to regenerate
69-
the `component-index.js` for the SDK (used in future for skinning)
70-
<!-- TODO: Remove this once this approach to skinning is replaced -->
71-
7268
* The view's CSS file MUST have the same name (e.g. view/rooms/MessageTile.css).
7369
CSS for matrix-react-sdk currently resides in
74-
https://github.com/vector-im/element-web/tree/master/src/skins/vector/css/matrix-react-sdk.
70+
https://github.com/matrix-org/matrix-react-sdk/tree/master/res/css.
7571

7672
* Per-view CSS is optional - it could choose to inherit all its styling from
7773
the context of the rest of the app, although this is unusual for any but
@@ -158,9 +154,6 @@ cd matrix-react-sdk
158154
git checkout develop
159155
yarn link matrix-js-sdk
160156
yarn install
161-
162-
# Generate the `component-index.js` file.
163-
yarn reskindex
164157
```
165158

166159
See the [help for `yarn link`](https://classic.yarnpkg.com/docs/cli/link) for

0 commit comments

Comments
 (0)