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

Commit 3147fa0

Browse files
authored
Merge branch 'develop' into EventTile_line
2 parents 446b43e + 7208953 commit 3147fa0

File tree

91 files changed

+2796
-1102
lines changed

Some content is hidden

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

91 files changed

+2796
-1102
lines changed

.github/workflows/element-build-and-test.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,23 @@ jobs:
2323
cache: 'yarn'
2424

2525
- name: Fetch layered build
26-
run: scripts/ci/layered.sh
26+
id: layered_build
27+
run: |
28+
scripts/ci/layered.sh
29+
JSSDK_SHA=$(git -C matrix-js-sdk rev-parse --short=12 HEAD)
30+
REACT_SHA=$(git rev-parse --short=12 HEAD)
31+
VECTOR_SHA=$(git -C element-web rev-parse --short=12 HEAD)
32+
echo "::set-output name=VERSION::$VECTOR_SHA-react-$REACT_SHA-js-$JSSDK_SHA"
2733
2834
- name: Copy config
2935
run: cp element.io/develop/config.json config.json
3036
working-directory: ./element-web
3137

3238
- name: Build
33-
run: CI_PACKAGE=true yarn build
39+
env:
40+
CI_PACKAGE: true
41+
VERSION: "${{ steps.layered_build.outputs.VERSION }}"
42+
run: yarn build
3443
working-directory: ./element-web
3544

3645
- name: Upload Artifact
@@ -61,6 +70,12 @@ jobs:
6170
# to run the tests, so use chrome.
6271
browser: chrome
6372
start: npx serve -p 8080 webapp
73+
record: true
74+
env:
75+
# pass the Dashboard record key as an environment variable
76+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
77+
# pass GitHub token to allow accurately detecting a build vs a re-run build
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6479

6580
- name: Upload Artifact
6681
if: failure()

.github/workflows/netlify.yaml

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,36 @@ on:
77
types:
88
- completed
99
jobs:
10-
build:
10+
deploy:
1111
runs-on: ubuntu-latest
12-
if: >
13-
${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' }}
12+
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
1413
steps:
1514
- name: "🔍 Read PR number"
1615
id: readctx
17-
# we need to find the PR number that corresponds to the branch, which we do by
18-
# searching the GH API
16+
# We need to find the PR number that corresponds to the branch, which we do by searching the GH API
1917
# The workflow_run event includes a list of pull requests, but it doesn't get populated for
2018
# forked PRs: https://docs.github.com/en/rest/reference/checks#create-a-check-run
2119
run: |
2220
head_branch='${{github.event.workflow_run.head_repository.owner.login}}:${{github.event.workflow_run.head_branch}}'
23-
echo "head branch: $head_branch"
21+
echo "Head branch: $head_branch"
2422
pulls_uri="https://api.github.com/repos/${{ github.repository }}/pulls?head=$(jq -Rr '@uri' <<<$head_branch)"
2523
pr_number=$(curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "$pulls_uri" |
2624
jq -r '.[] | .number')
2725
echo "PR number: $pr_number"
2826
echo "::set-output name=prnumber::$pr_number"
2927
28+
- name: Create Deployment ID
29+
uses: altinukshini/[email protected]
30+
id: deployment
31+
with:
32+
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
33+
pr: true
34+
pr_id: ${{ steps.readctx.outputs.prnumber }}
35+
transient_environment: true
36+
environment: Netlify
37+
initial_status: in_progress
38+
ref: ${{ github.event.workflow_run.head_sha }}
39+
3040
# There's a 'download artifact' action but it hasn't been updated for the
3141
# workflow_run action (https://github.com/actions/download-artifact/issues/60)
3242
# so instead we get this mess:
@@ -69,12 +79,25 @@ jobs:
6979
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
7080
timeout-minutes: 1
7181

72-
- name: Edit PR Description
73-
uses: Beakyn/gha-comment-pull-request@2167a7aee24f9e61ce76a23039f322e49a990409
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
- name: Update deployment status (success)
83+
if: success()
84+
uses: altinukshini/[email protected]
85+
with:
86+
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
87+
environment_url: ${{ steps.netlify.outputs.deploy-url }}
88+
state: "success"
89+
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
90+
pr: true
91+
pr_id: ${{ steps.readctx.outputs.prnumber }}
92+
description: |
93+
Do you trust the author of this PR? Maybe this build will steal your keys or give you malware.
94+
Exercise caution. Use test accounts.
95+
- name: Update deployment status (failure)
96+
if: failure()
97+
uses: altinukshini/[email protected]
7698
with:
77-
pull-request-number: ${{ steps.readctx.outputs.prnumber }}
78-
description-message: |
79-
Preview: ${{ steps.netlify.outputs.deploy-url }}
80-
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.
99+
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
100+
state: "failure"
101+
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
102+
pr: true
103+
pr_id: ${{ steps.readctx.outputs.prnumber }}

CHANGELOG.md

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
Changes in [3.43.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.43.0) (2022-04-26)
2+
=====================================================================================================
3+
4+
## ✨ Features
5+
* Improve performance of switching to rooms with lots of servers and ACLs ([\#8347](https://github.com/matrix-org/matrix-react-sdk/pull/8347)).
6+
* Avoid a reflow when setting caret position on an empty composer ([\#8348](https://github.com/matrix-org/matrix-react-sdk/pull/8348)).
7+
* Add message right-click context menu as a labs feature ([\#5672](https://github.com/matrix-org/matrix-react-sdk/pull/5672)).
8+
* Live location sharing - basic maximised beacon map ([\#8310](https://github.com/matrix-org/matrix-react-sdk/pull/8310)).
9+
* Live location sharing - render users own beacons in timeline ([\#8296](https://github.com/matrix-org/matrix-react-sdk/pull/8296)).
10+
* Improve Threads beta around degraded mode ([\#8318](https://github.com/matrix-org/matrix-react-sdk/pull/8318)).
11+
* Live location sharing - beacon in timeline happy path ([\#8285](https://github.com/matrix-org/matrix-react-sdk/pull/8285)).
12+
* Add copy button to View Source screen ([\#8278](https://github.com/matrix-org/matrix-react-sdk/pull/8278)). Fixes vector-im/element-web#21482. Contributed by @olivialivia.
13+
* Add heart effect ([\#6188](https://github.com/matrix-org/matrix-react-sdk/pull/6188)). Contributed by @CicadaCinema.
14+
* Update new room icon ([\#8239](https://github.com/matrix-org/matrix-react-sdk/pull/8239)).
15+
16+
## 🐛 Bug Fixes
17+
* Fix: "Code formatting button does not escape backticks" ([\#8181](https://github.com/matrix-org/matrix-react-sdk/pull/8181)). Contributed by @yaya-usman.
18+
* Fix beta indicator dot causing excessive CPU usage ([\#8340](https://github.com/matrix-org/matrix-react-sdk/pull/8340)). Fixes vector-im/element-web#21793.
19+
* Fix overlapping timestamps on empty messages ([\#8205](https://github.com/matrix-org/matrix-react-sdk/pull/8205)). Fixes vector-im/element-web#21381. Contributed by @goelesha.
20+
* Fix power selector not showing up in user info when state_default undefined ([\#8297](https://github.com/matrix-org/matrix-react-sdk/pull/8297)). Fixes vector-im/element-web#21669.
21+
* Avoid looking up settings during timeline rendering ([\#8313](https://github.com/matrix-org/matrix-react-sdk/pull/8313)). Fixes vector-im/element-web#21740.
22+
* Fix a soft crash with video rooms ([\#8333](https://github.com/matrix-org/matrix-react-sdk/pull/8333)).
23+
* Fixes call tiles overflow ([\#8096](https://github.com/matrix-org/matrix-react-sdk/pull/8096)). Fixes vector-im/element-web#20254. Contributed by @luixxiul.
24+
* Fix a bug with emoji autocomplete sorting where adding the final "&#58;" would cause the emoji with the typed shortcode to no longer be at the top of the autocomplete list. ([\#8086](https://github.com/matrix-org/matrix-react-sdk/pull/8086)). Fixes vector-im/element-web#19302. Contributed by @commonlawfeature.
25+
* Fix image preview sizing for edge cases ([\#8322](https://github.com/matrix-org/matrix-react-sdk/pull/8322)). Fixes vector-im/element-web#20088.
26+
* Refactor SecurityRoomSettingsTab and remove unused state ([\#8306](https://github.com/matrix-org/matrix-react-sdk/pull/8306)). Fixes matrix-org/element-web-rageshakes#12002.
27+
* Don't show the prompt to enable desktop notifications immediately after registration ([\#8274](https://github.com/matrix-org/matrix-react-sdk/pull/8274)).
28+
* Stop tracking threads if threads support is disabled ([\#8308](https://github.com/matrix-org/matrix-react-sdk/pull/8308)). Fixes vector-im/element-web#21766.
29+
* Fix some issues with threads rendering ([\#8305](https://github.com/matrix-org/matrix-react-sdk/pull/8305)). Fixes vector-im/element-web#21670.
30+
* Fix threads rendering issue in Safari ([\#8298](https://github.com/matrix-org/matrix-react-sdk/pull/8298)). Fixes vector-im/element-web#21757.
31+
* Fix space panel width change on hovering over space item ([\#8299](https://github.com/matrix-org/matrix-react-sdk/pull/8299)). Fixes vector-im/element-web#19891.
32+
* Hide the reply in thread button in deployments where beta is forcibly disabled ([\#8294](https://github.com/matrix-org/matrix-react-sdk/pull/8294)). Fixes vector-im/element-web#21753.
33+
* Prevent soft crash around room list header context menu when space changes ([\#8289](https://github.com/matrix-org/matrix-react-sdk/pull/8289)). Fixes matrix-org/element-web-rageshakes#11416, matrix-org/element-web-rageshakes#11692, matrix-org/element-web-rageshakes#11739, matrix-org/element-web-rageshakes#11772, matrix-org/element-web-rageshakes#11891 matrix-org/element-web-rageshakes#11858 and matrix-org/element-web-rageshakes#11456.
34+
* When selecting reply in thread on a thread response open existing thread ([\#8291](https://github.com/matrix-org/matrix-react-sdk/pull/8291)). Fixes vector-im/element-web#21743.
35+
* Handle thread bundled relationships coming from the server via MSC3666 ([\#8292](https://github.com/matrix-org/matrix-react-sdk/pull/8292)). Fixes vector-im/element-web#21450.
36+
* Fix: Avatar preview does not update when same file is selected repeatedly ([\#8288](https://github.com/matrix-org/matrix-react-sdk/pull/8288)). Fixes vector-im/element-web#20098.
37+
* Fix a bug where user gets a warning when changing powerlevel from **Admin** to **custom level (100)** ([\#8248](https://github.com/matrix-org/matrix-react-sdk/pull/8248)). Fixes vector-im/element-web#21682. Contributed by @Jumeb.
38+
* Use a consistent alignment for all text items in a list ([\#8276](https://github.com/matrix-org/matrix-react-sdk/pull/8276)). Fixes vector-im/element-web#21731. Contributed by @luixxiul.
39+
* Fixes button labels being collapsed per a character in CJK languages ([\#8212](https://github.com/matrix-org/matrix-react-sdk/pull/8212)). Fixes vector-im/element-web#21287. Contributed by @luixxiul.
40+
* Fix: Remove jittery timeline scrolling after jumping to an event ([\#8263](https://github.com/matrix-org/matrix-react-sdk/pull/8263)).
41+
* Fix regression of edits showing up in the timeline with hidden events shown ([\#8260](https://github.com/matrix-org/matrix-react-sdk/pull/8260)). Fixes vector-im/element-web#21694.
42+
* Fix reporting events not working ([\#8257](https://github.com/matrix-org/matrix-react-sdk/pull/8257)). Fixes vector-im/element-web#21713.
43+
* Make Jitsi widgets in video rooms immutable ([\#8244](https://github.com/matrix-org/matrix-react-sdk/pull/8244)). Fixes vector-im/element-web#21647.
44+
* Fix: Ensure links to events scroll the correct events into view ([\#8250](https://github.com/matrix-org/matrix-react-sdk/pull/8250)). Fixes vector-im/element-web#19934.
45+
46+
Changes in [3.42.4](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.4) (2022-04-14)
47+
=====================================================================================================
48+
49+
## 🐛 Bug Fixes
50+
* Fixes around threads beta in degraded mode ([\#8319](https://github.com/matrix-org/matrix-react-sdk/pull/8319)). Fixes vector-im/element-web#21762.
51+
152
Changes in [3.42.3](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.42.3) (2022-04-12)
253
=====================================================================================================
354

@@ -477,7 +528,7 @@ Changes in [3.39.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/
477528
=====================================================================================================
478529

479530
## 🐛 Bug Fixes
480-
* Fix the sticker picker ([\#7692](https://github.com/matrix-org/matrix-react-sdk/pull/7692)). Fixes vector-im/element-web#20797.
531+
* Fix the sticker picker ([\#7692](https://github.com/matrix-org/matrix-react-sdk/pull/7692)). Fixes vector-im/element-web#20797.
481532
* Ensure UserInfo can be rendered without a room ([\#7687](https://github.com/matrix-org/matrix-react-sdk/pull/7687)). Fixes vector-im/element-web#20830.
482533
* Fix publishing address wrongly demanding the alias be available ([\#7690](https://github.com/matrix-org/matrix-react-sdk/pull/7690)). Fixes vector-im/element-web#12013 and vector-im/element-web#20833.
483534

@@ -1336,7 +1387,7 @@ Changes in [3.32.1](https://github.com/vector-im/element-desktop/releases/tag/v3
13361387
## 🐛 Bug Fixes
13371388

13381389
* Upgrade to matrix-js-sdk#14.0.1
1339-
1390+
13401391
Changes in [3.32.0](https://github.com/vector-im/element-desktop/releases/tag/v3.32.0) (2021-10-11)
13411392
===================================================================================================
13421393

@@ -2482,7 +2533,7 @@ related to file upload. When uploading a file, the local file preview can lead
24822533
to execution of scripts embedded in the uploaded file, but only after several
24832534
user interactions to open the preview in a separate tab. This only impacts the
24842535
local user while in the process of uploading. It cannot be exploited remotely
2485-
or by other users. Thanks to [Muhammad Zaid Ghifari](https://github.com/MR-ZHEEV)
2536+
or by other users. Thanks to [Muhammad Zaid Ghifari](https://github.com/MR-ZHEEV)
24862537
for responsibly disclosing this via Matrix's Security Disclosure Policy.
24872538

24882539
## All changes
@@ -6477,7 +6528,7 @@ Changes in [2.1.0-rc.2](https://github.com/matrix-org/matrix-react-sdk/releases/
64776528
=============================================================================================================
64786529
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v2.1.0-rc.1...v2.1.0-rc.2)
64796530

6480-
* Fix error in previous attempt to upgrade JS SDK
6531+
* Fix error in previous attempt to upgrade JS SDK
64816532

64826533
Changes in [2.1.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v2.1.0-rc.1) (2020-02-13)
64836534
=============================================================================================================

cypress.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"baseUrl": "http://localhost:8080",
3-
"videoUploadOnPasses": false
3+
"videoUploadOnPasses": false,
4+
"projectId": "ppvnzg"
45
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.42.3",
3+
"version": "3.43.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -22,7 +22,7 @@
2222
"README.md",
2323
"package.json"
2424
],
25-
"main": "./src/index.ts",
25+
"main": "./lib/index.ts",
2626
"matrix_src_main": "./src/index.ts",
2727
"matrix_lib_main": "./lib/index.ts",
2828
"matrix_lib_typings": "./lib/index.d.ts",
@@ -88,7 +88,7 @@
8888
"linkifyjs": "^4.0.0-beta.4",
8989
"lodash": "^4.17.20",
9090
"maplibre-gl": "^1.15.2",
91-
"matrix-analytics-events": "github:matrix-org/matrix-analytics-events.git#daad3faed54f0b1f1e026a7498b4653e4d01cd90",
91+
"matrix-analytics-events": "github:matrix-org/matrix-analytics-events.git#4aef17b56798639906f26a8739043a3c5c5fde7e",
9292
"matrix-encrypt-attachment": "^1.0.3",
9393
"matrix-events-sdk": "^0.0.1-beta.7",
9494
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop",
@@ -236,5 +236,6 @@
236236
"text",
237237
"json"
238238
]
239-
}
239+
},
240+
"typings": "./lib/index.d.ts"
240241
}

res/css/_common.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ legend {
294294
background-color: $background;
295295
color: $light-fg-color;
296296
z-index: 4012;
297-
font-weight: 300;
298297
font-size: $font-15px;
299298
position: relative;
300299
padding: 24px;

res/css/_components.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@import "./components/views/beacon/_OwnBeaconStatus.scss";
1515
@import "./components/views/beacon/_RoomLiveShareWarning.scss";
1616
@import "./components/views/beacon/_StyledLiveBeaconIcon.scss";
17+
@import "./components/views/location/_EnableLiveShare.scss";
1718
@import "./components/views/location/_LiveDurationDropdown.scss";
1819
@import "./components/views/location/_LocationShareMenu.scss";
1920
@import "./components/views/location/_MapError.scss";
@@ -27,7 +28,6 @@
2728
@import "./structures/_BackdropPanel.scss";
2829
@import "./structures/_CompatibilityPage.scss";
2930
@import "./structures/_ContextualMenu.scss";
30-
@import "./structures/_CreateRoom.scss";
3131
@import "./structures/_FileDropTarget.scss";
3232
@import "./structures/_FilePanel.scss";
3333
@import "./structures/_GenericErrorPage.scss";
@@ -249,6 +249,7 @@
249249
@import "./views/rooms/_NotificationBadge.scss";
250250
@import "./views/rooms/_PinnedEventTile.scss";
251251
@import "./views/rooms/_PresenceLabel.scss";
252+
@import "./views/rooms/_ReadReceiptGroup.scss";
252253
@import "./views/rooms/_RecentlyViewedButton.scss";
253254
@import "./views/rooms/_ReplyPreview.scss";
254255
@import "./views/rooms/_ReplyTile.scss";
@@ -263,6 +264,7 @@
263264
@import "./views/rooms/_SearchBar.scss";
264265
@import "./views/rooms/_SendMessageComposer.scss";
265266
@import "./views/rooms/_Stickers.scss";
267+
@import "./views/rooms/_ThreadSummary.scss";
266268
@import "./views/rooms/_TopUnreadMessagesBar.scss";
267269
@import "./views/rooms/_VoiceRecordComposerTile.scss";
268270
@import "./views/rooms/_WhoIsTypingTile.scss";
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
Copyright 2022 The Matrix.org Foundation C.I.C.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_EnableLiveShare {
18+
flex: 1 1 0;
19+
display: flex;
20+
flex-direction: column;
21+
justify-content: flex-end;
22+
align-items: center;
23+
24+
padding: $spacing-32 $spacing-16;
25+
text-align: center;
26+
box-sizing: border-box;
27+
}
28+
29+
.mx_EnableLiveShare_heading {
30+
padding-top: $spacing-24;
31+
}
32+
33+
.mx_EnableLiveShare_icon {
34+
height: 58px;
35+
width: 58px;
36+
}
37+
38+
.mx_EnableLiveShare_description {
39+
padding: 0 $spacing-24;
40+
margin-bottom: $spacing-32;
41+
line-height: $font-20px;
42+
}
43+
44+
.mx_EnableLiveShare_button {
45+
margin-top: $spacing-32;
46+
height: 48px;
47+
width: 100%;
48+
}

res/css/structures/_RoomView.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ limitations under the License.
7070
overflow-y: auto;
7171
flex: 1 1 0;
7272
overflow-anchor: none;
73-
74-
&[data-scrollbar=false] {
75-
overflow-y: hidden;
76-
}
7773
}
7874

7975
.mx_RoomView_messagePanelSearchSpinner {

res/css/structures/_ViewSource.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ limitations under the License.
4444
.mx_ViewSource_container {
4545
max-width: calc(100% - 24px);
4646
}
47+
48+
.mx_ViewSource_container .mx_CopyableText_border {
49+
width: 100%;
50+
}

res/css/views/dialogs/_DevtoolsDialog.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ limitations under the License.
2626
}
2727

2828
.mx_DevTools_content {
29-
margin: 10px 0;
3029
overflow-y: auto;
3130
height: calc(100% - 124px); // 58px for buttons + 50px for header + 8px margin around
3231
}

res/css/views/messages/_MStickerBody.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ limitations under the License.
3333
align-items: center;
3434
justify-content: center;
3535
}
36+
37+
.mx_MStickerBody_placeholder {
38+
// centering
39+
position: absolute;
40+
left: calc(50% - 40px);
41+
top: calc(50% - 40px);
42+
}

0 commit comments

Comments
 (0)