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

Commit b78054d

Browse files
authored
Merge branch 'develop' into justjanne/fix/21940-read-receipt-tooltip-names
2 parents cc01747 + 12e8534 commit b78054d

File tree

19 files changed

+221
-136
lines changed

19 files changed

+221
-136
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ on:
88
branches: [ develop, master ]
99
repository_dispatch:
1010
types: [ upstream-sdk-notify ]
11+
env:
12+
# These must be set for fetchdep.sh to get the right branch
13+
REPOSITORY: ${{ github.repository }}
14+
PR_NUMBER: ${{ github.event.pull_request.number }}
1115
jobs:
1216
build:
1317
name: "Build Element-Web"
1418
runs-on: ubuntu-latest
15-
env:
16-
# This must be set for fetchdep.sh to get the right branch
17-
PR_NUMBER: ${{github.event.number}}
1819
steps:
1920
- uses: actions/checkout@v2
2021

@@ -90,9 +91,6 @@ jobs:
9091
app-tests:
9192
name: Element Web Integration Tests
9293
runs-on: ubuntu-latest
93-
env:
94-
# This must be set for fetchdep.sh to get the right branch
95-
PR_NUMBER: ${{github.event.number}}
9694
steps:
9795
- uses: actions/checkout@v2
9896

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ on:
99
branches: [ develop ]
1010
repository_dispatch:
1111
types: [ upstream-sdk-notify ]
12+
env:
13+
# These must be set for fetchdep.sh to get the right branch
14+
REPOSITORY: ${{ github.repository }}
15+
PR_NUMBER: ${{ github.event.pull_request.number }}
1216
jobs:
1317
end-to-end:
1418
runs-on: ubuntu-latest
15-
env:
16-
# This must be set for fetchdep.sh to get the right branch
17-
PR_NUMBER: ${{github.event.number}}
1819
container: vectorim/element-web-ci-e2etests-env:latest
1920
steps:
2021
- name: Checkout code

.github/workflows/netlify.yaml

Lines changed: 30 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,40 @@ jobs:
2525
echo "PR number: $pr_number"
2626
echo "::set-output name=prnumber::$pr_number"
2727
28-
- name: Create Deployment ID
29-
uses: altinukshini/deployment-action@v1.2.6
28+
- name: Create Deployment
29+
uses: bobheadxi/deployments@v1
3030
id: deployment
3131
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
32+
step: start
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
env: Netlify
3835
ref: ${{ github.event.workflow_run.head_sha }}
36+
desc: |
37+
Do you trust the author of this PR? Maybe this build will steal your keys or give you malware.
38+
Exercise caution. Use test accounts.
3939
40-
# There's a 'download artifact' action but it hasn't been updated for the
40+
# There's a 'download artifact' action, but it hasn't been updated for the
4141
# workflow_run action (https://github.com/actions/download-artifact/issues/60)
4242
# so instead we get this mess:
4343
- name: 'Download artifact'
4444
uses: actions/github-script@v3.1.0
4545
with:
4646
script: |
47-
var artifacts = await github.actions.listWorkflowRunArtifacts({
48-
owner: context.repo.owner,
49-
repo: context.repo.repo,
50-
run_id: ${{github.event.workflow_run.id }},
47+
const artifacts = await github.actions.listWorkflowRunArtifacts({
48+
owner: context.repo.owner,
49+
repo: context.repo.repo,
50+
run_id: ${{ github.event.workflow_run.id }},
5151
});
52-
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
53-
return artifact.name == "previewbuild"
52+
const matchArtifact = artifacts.data.artifacts.filter((artifact) => {
53+
return artifact.name == "previewbuild"
5454
})[0];
55-
var download = await github.actions.downloadArtifact({
56-
owner: context.repo.owner,
57-
repo: context.repo.repo,
58-
artifact_id: matchArtifact.id,
59-
archive_format: 'zip',
55+
const download = await github.actions.downloadArtifact({
56+
owner: context.repo.owner,
57+
repo: context.repo.repo,
58+
artifact_id: matchArtifact.id,
59+
archive_format: 'zip',
6060
});
61-
var fs = require('fs');
61+
const fs = require('fs');
6262
fs.writeFileSync('${{github.workspace}}/previewbuild.zip', Buffer.from(download.data));
6363
6464
- name: Extract Artifacts
@@ -79,25 +79,16 @@ jobs:
7979
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
8080
timeout-minutes: 1
8181

82-
- name: Update deployment status (success)
83-
if: success()
84-
uses: altinukshini/deployment-status@v1.0.1
82+
- name: Update deployment status
83+
uses: bobheadxi/deployments@v1
84+
if: always()
8585
with:
86-
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
87-
environment_url: ${{ steps.netlify.outputs.deploy-url }}
88-
state: "success"
86+
step: finish
87+
token: ${{ secrets.GITHUB_TOKEN }}
88+
status: ${{ job.status }}
89+
env: ${{ steps.deployment.outputs.env }}
8990
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
90-
pr: true
91-
pr_id: ${{ steps.readctx.outputs.prnumber }}
92-
description: |
91+
env_url: ${{ steps.netlify.outputs.deploy-url }}
92+
desc: |
9393
Do you trust the author of this PR? Maybe this build will steal your keys or give you malware.
9494
Exercise caution. Use test accounts.
95-
- name: Update deployment status (failure)
96-
if: failure()
97-
uses: altinukshini/deployment-status@v1.0.1
98-
with:
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 }}

.github/workflows/static_analysis.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
branches: [ develop, master ]
66
repository_dispatch:
77
types: [ upstream-sdk-notify ]
8+
env:
9+
# These must be set for fetchdep.sh to get the right branch
10+
REPOSITORY: ${{ github.repository }}
11+
PR_NUMBER: ${{ github.event.pull_request.number }}
812
jobs:
913
ts_lint:
1014
name: "Typescript Syntax Check"
1115
runs-on: ubuntu-latest
12-
env:
13-
# This must be set for fetchdep.sh to get the right branch
14-
PR_NUMBER: ${{github.event.number}}
1516
steps:
1617
- uses: actions/checkout@v2
1718

@@ -86,3 +87,16 @@ jobs:
8687

8788
- name: Run Linter
8889
run: "yarn run lint:style"
90+
91+
sonarqube:
92+
name: "SonarQube"
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v2
96+
with:
97+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
98+
- name: SonarCloud Scan
99+
uses: SonarSource/sonarcloud-github-action@master
100+
env:
101+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/tests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
branches: [ develop, master ]
66
repository_dispatch:
77
types: [ upstream-sdk-notify ]
8+
env:
9+
# These must be set for fetchdep.sh to get the right branch
10+
REPOSITORY: ${{ github.repository }}
11+
PR_NUMBER: ${{ github.event.pull_request.number }}
812
jobs:
913
jest:
1014
name: Jest with Codecov
1115
runs-on: ubuntu-latest
12-
env:
13-
# This must be set for fetchdep.sh to get the right branch
14-
PR_NUMBER: ${{github.event.number}}
1516
steps:
1617
- name: Checkout code
1718
uses: actions/checkout@v2

res/css/_common.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,29 @@ legend {
692692
}
693693
}
694694

695+
@define-mixin ThreadsAmount {
696+
$threadInfoLineHeight: calc(2 * $font-12px);
697+
698+
color: $secondary-content;
699+
font-weight: $font-semi-bold;
700+
line-height: $threadInfoLineHeight;
701+
white-space: nowrap;
702+
position: relative;
703+
padding: 0 $spacing-12 0 $spacing-8;
704+
}
705+
706+
@define-mixin ThreadInfoIcon {
707+
content: "";
708+
display: inline-block;
709+
mask-image: url('$(res)/img/element-icons/thread-summary.svg');
710+
mask-position: center;
711+
height: 18px;
712+
min-width: 18px;
713+
background-color: $secondary-content !important;
714+
mask-repeat: no-repeat;
715+
mask-size: contain;
716+
}
717+
695718
@define-mixin ListResetDefault {
696719
list-style: none;
697720
padding: 0;

res/css/views/right_panel/_ThreadPanel.scss

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ limitations under the License.
2020
height: 100px;
2121
overflow: visible;
2222

23-
&:not(.mx_ThreadView).mx_BaseCard {
24-
padding-right: 2px;
25-
}
26-
2723
.mx_BaseCard_header {
2824
margin-bottom: 12px;
2925

@@ -111,15 +107,37 @@ limitations under the License.
111107
.mx_AutoHideScrollbar {
112108
background-color: $background;
113109
border-radius: 8px;
114-
width: calc(100% - 24px);
115-
padding-right: 18px;
110+
padding-inline-end: 0;
111+
overflow-y: scroll; // set gap between the thread tile and the right border
112+
}
113+
114+
// Override _GroupLayout.scss for the thread panel
115+
.mx_GroupLayout {
116+
.mx_EventTile {
117+
.mx_MessageActionBar {
118+
right: 0;
119+
top: -36px; // 2px above EventTile
120+
z-index: 10; // See _EventTile.scss
121+
}
122+
123+
&[data-shape=ThreadsList] {
124+
> .mx_DisambiguatedProfile {
125+
margin-inline-start: 0;
126+
}
127+
128+
.mx_MessageTimestamp {
129+
position: initial;
130+
width: auto;
131+
}
132+
133+
.mx_EventTile_line {
134+
padding-bottom: 0; // Override mx_EventTile_line on _GroupLayout.scss
135+
}
136+
}
137+
}
116138
}
117139

118140
&.mx_ThreadView .mx_ThreadView_timelinePanelWrapper {
119-
/* the scrollbar is 8px wide, and we want a 12px gap with the side of the
120-
panel. Hence the magic number, 8+4=12 */
121-
width: calc(100% + 6px);
122-
padding-right: 4px;
123141
position: relative;
124142
min-height: 0; // don't displace the composer
125143
flex-grow: 1;
@@ -129,9 +147,15 @@ limitations under the License.
129147
}
130148
}
131149

150+
.mx_RoomView_messagePanel { // To avoid the rule from being applied to .mx_ThreadPanel_empty
151+
.mx_RoomView_messageListWrapper {
152+
width: calc(100% + 6px); // 8px - 2px
153+
}
154+
}
155+
132156
.mx_RoomView_MessageList {
133-
padding-left: 12px;
134-
padding-right: 0;
157+
padding-inline-start: $spacing-8;
158+
padding-inline-end: $spacing-8;
135159
content-visibility: visible;
136160
}
137161

@@ -256,14 +280,14 @@ limitations under the License.
256280
}
257281

258282
.mx_ThreadPanel_replies {
259-
margin-top: 8px;
283+
margin-top: $spacing-8;
260284
display: flex;
261285
align-items: center;
262286
position: relative;
263287

264-
.mx_ThreadSummary_threads-amount {
265-
color: $secondary-content;
266-
font-size: $font-12px;
288+
.mx_ThreadPanel_ThreadsAmount {
289+
@mixin ThreadsAmount;
290+
font-size: $font-12px; // Same font size as the counter on the main panel
267291
}
268292
}
269293

@@ -286,7 +310,6 @@ limitations under the License.
286310
top: 0;
287311
bottom: 0;
288312
left: 0;
289-
right: 6px;
290313
padding: 20px;
291314

292315
h2 {

res/css/views/right_panel/_TimelineCard.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ limitations under the License.
4242
border-radius: 8px;
4343
}
4444

45-
.mx_AutoHideScrollbar {
46-
padding-right: 10px;
47-
width: calc(100% - 10px);
48-
}
49-
5045
.mx_NewRoomIntro {
5146
margin-left: 36px;
5247
}

0 commit comments

Comments
 (0)