Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] develop from matrix-org:develop #184

Merged
merged 3,250 commits into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3250 commits
Select commit Hold shift + click to select a range
3a733d1
Merge pull request #6616 from SimonBrandner/fix/access-token-overflow
dbkr Aug 18, 2021
dce66bc
Translated using Weblate (Ukrainian)
IhorHordiichuk Aug 18, 2021
f4e9346
Translated using Weblate (Esperanto)
Aug 17, 2021
3addc1d
Translated using Weblate (Czech)
waclaw66 Aug 18, 2021
042e0f5
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
e257c10
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
24e3a91
Merge pull request #6618 from SimonBrandner/fix/long-names-call-tiles
dbkr Aug 18, 2021
16e52db
Translated using Weblate (German)
libexus Aug 18, 2021
9a52ee9
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
7616f3a
Merge pull request #6621 from SimonBrandner/fix/call-tile-spacing/18558
dbkr Aug 18, 2021
7403efa
Translated using Weblate (German)
libexus Aug 18, 2021
0a92264
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
5fa0908
Merge pull request #6624 from SimonBrandner/fix/call-tile-button/18565
dbkr Aug 18, 2021
09d2b55
Translated using Weblate (German)
libexus Aug 18, 2021
c1ab89e
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
e83722e
Fix missing background color in GroupFilterPanel
Aug 18, 2021
1066bef
Merge pull request #6625 from matrix-org/palid/fix/media-isEncrypted-…
Palid Aug 18, 2021
9119b72
Translated using Weblate (German)
libexus Aug 18, 2021
74d8072
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
d836ed5
Fix name of Netlify workflow
jryans Aug 18, 2021
fabeb28
Merge pull request #6631 from matrix-org/jryans/rename-netlify
jryans Aug 18, 2021
4a5de53
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
f68309f
Merge pull request #6630 from SimonBrandner/fix/filepanel-e2e-paginat…
jryans Aug 18, 2021
d6be1ba
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
23f7083
Update copy to indicate debug logs contain which UI elements you last…
novocaine Aug 18, 2021
dbe463d
Merge pull request #6597 from matrix-org/sentry-rageshakes
Aug 18, 2021
209e427
Translated using Weblate (Hungarian)
szimszon Aug 18, 2021
1e30f23
Translated using Weblate (Chinese (Simplified))
Aug 18, 2021
706d675
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
90a6f25
Merge pull request #6627 from SimonBrandner/fix/voip
dbkr Aug 18, 2021
35eecbd
Translated using Weblate (Chinese (Simplified))
Aug 18, 2021
9cafa96
Merge branch 'origin/develop' into Weblate.
Aug 18, 2021
08b37eb
Fix cross sisgning setup from settings screen
dbkr Aug 18, 2021
5553e40
Fix AppTile.js indent
Aug 19, 2021
c8e4e76
Properly remove persistentWidget from WidgetStore
Aug 19, 2021
595ba7f
Remove useless setState
Aug 19, 2021
455a914
Merge remote-tracking branch 'origin/develop' into gsouquet/fix-backd…
Aug 19, 2021
d65f6dd
Fix bad merge
Aug 19, 2021
468bb5c
Fix mr comments
Aug 19, 2021
fe1d0e6
Remove useless constructor
Aug 19, 2021
7adfbf6
Show blurhash only after 150ms
Aug 19, 2021
fa03b10
Fix missing type for state
Aug 19, 2021
96877ee
Migrate PasswordReset.js to typescript
Aug 19, 2021
4e5f833
Update src/PasswordReset.ts
Palid Aug 19, 2021
252eb72
Add missing types for constructor
Aug 19, 2021
36540a9
Merge pull request #6635 from matrix-org/palid/dx/typescriptify-passw…
Palid Aug 19, 2021
3da36ef
Translated using Weblate (Chinese (Simplified))
Aug 19, 2021
e1710a0
Translated using Weblate (Chinese (Traditional))
s8321414 Aug 19, 2021
171b727
Translated using Weblate (Czech)
waclaw66 Aug 18, 2021
e53b5cd
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
e5b1cff
Add missing types
Aug 19, 2021
74ff930
Merge pull request #6634 from matrix-org/palid/fix/less-blurhash-on-i…
Palid Aug 19, 2021
d64c278
Translated using Weblate (Swedish)
LinAGKar Aug 19, 2021
3e5ccab
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
603f992
Merge pull request #6632 from matrix-org/palid/feature/fix-stuck-jits…
Palid Aug 19, 2021
c9363b3
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
9398741
Merge pull request #6262 from matrix-org/gsouquet/fix-backdrop-filter
Palid Aug 19, 2021
c93c8b4
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
5a1633d
Merge pull request #6638 from matrix-org/palid/dx/typescriptify-passw…
Palid Aug 19, 2021
fbad313
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
abab31c
Add a speaking indicator
SimonBrandner Aug 19, 2021
a08310e
Emit Speaking events from CallFeed
SimonBrandner Aug 19, 2021
c17f3d8
Persist last `MemberList` search query per-room
SimonBrandner Aug 19, 2021
f5a284a
Fix flex values after blur changes
Aug 19, 2021
3f1c35d
Fix backdrop panel empty image
Aug 19, 2021
573a68a
Merge pull request #6645 from matrix-org/palid/fix/backdrop-panel-emp…
Palid Aug 19, 2021
d78d02c
Translated using Weblate (Albanian)
ujdhesa Aug 19, 2021
feb8a9e
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
3bcb57d
Merge pull request #6640 from SimonBrandner/feature/persist-search-me…
turt2live Aug 19, 2021
5ce8226
Translated using Weblate (Hungarian)
szimszon Aug 19, 2021
f296073
Merge branch 'origin/develop' into Weblate.
Aug 19, 2021
fcf47f6
Merge pull request #6626 from SimonBrandner/fix/correct-colors-call-t…
turt2live Aug 20, 2021
02259a1
Translated using Weblate (Galician)
Aug 20, 2021
5c39540
Merge branch 'origin/develop' into Weblate.
Aug 20, 2021
c0d98ba
Show "Enable encryption in settings" only when the user can do that
SimonBrandner Aug 20, 2021
ac9ebd8
i18n
SimonBrandner Aug 20, 2021
952fdd0
Fix call tiles on the bubble layout
SimonBrandner Aug 20, 2021
ea38990
Merge pull request #6647 from SimonBrandner/fix/call-tile-bubbles/18648
dbkr Aug 20, 2021
0be1e7c
Translated using Weblate (Swedish)
LinAGKar Aug 20, 2021
fdae95e
Merge branch 'origin/develop' into Weblate.
Aug 20, 2021
fd3787c
Fix modern layout
Aug 20, 2021
67ce081
Fix one line too much in scss
Aug 20, 2021
7d1e71f
Merge pull request #6641 from matrix-org/palid/fix/chat-flex-values
Palid Aug 20, 2021
6776910
Merge branch 'origin/develop' into Weblate.
Aug 20, 2021
b5b0a9b
Show emoji autocomplete only after the user has type 2 characters
SimonBrandner Aug 20, 2021
5ffa378
Don't show emoticons in emoji autocomplete
SimonBrandner Aug 20, 2021
74d79ff
Watch RoomList.backgroundImage
SimonBrandner Aug 20, 2021
86b6c6a
Fix room views not having proper container
Aug 20, 2021
3e19fc1
Merge pull request #6620 from SimonBrandner/feature/vertical-autocomp…
turt2live Aug 20, 2021
0d19c10
Merge branch 'origin/develop' into Weblate.
Aug 20, 2021
374a026
Merge pull request #6652 from matrix-org/fix/palid/space-room-view-css
Palid Aug 20, 2021
cabe4b0
Merge branch 'origin/develop' into Weblate.
Aug 20, 2021
adc8773
Merge remote-tracking branch 'upstream/develop' into fix/autocomplete…
SimonBrandner Aug 20, 2021
d9b7988
Fix content not being centered
Aug 20, 2021
1c29505
Merge pull request #6653 from matrix-org/fix/palid/space-room-view-css
Palid Aug 20, 2021
53b49b3
Merge branch 'origin/develop' into Weblate.
Aug 20, 2021
9a3a5a7
Fix spaces preview screen
Aug 21, 2021
81d64be
Fix autocomplete scrollbar
SimonBrandner Aug 21, 2021
b58184d
Make autocomplete smaller
SimonBrandner Aug 21, 2021
cb7e44f
Always show a transparent border to avoid icon jumps
SimonBrandner Aug 22, 2021
6118856
Merge remote-tracking branch 'upstream/develop' into feature/voice-ac…
SimonBrandner Aug 22, 2021
d29a18b
Fix some sizing issue on video feeds
SimonBrandner Aug 22, 2021
0ddb71a
Optimize backdrop blur
Aug 22, 2021
99a9355
test
Aug 22, 2021
1c93e18
Move CallPreview CSS
SimonBrandner Aug 22, 2021
397a0f7
Merge pull request #6651 from SimonBrandner/feature/watch-rl-background
turt2live Aug 23, 2021
8f0199c
Translated using Weblate (Dutch)
jelv Aug 22, 2021
cdf399e
Translated using Weblate (Swedish)
LinAGKar Aug 22, 2021
5f2ed86
Translated using Weblate (Italian)
Aug 21, 2021
7b89e98
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
6f62f54
Merge pull request #6656 from SimonBrandner/task/move-pip-css
germain-gg Aug 23, 2021
b169b8a
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
0daa6ab
Merge pull request #6648 from matrix-org/palid/fix/modern-layout
Palid Aug 23, 2021
9b0fd5b
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
30a08ea
Merge pull request #6646 from SimonBrandner/fix/hide-encryption/18646
germain-gg Aug 23, 2021
3b04969
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
5344b86
Merge pull request #6633 from matrix-org/dbkr/fix_cross_signing_setup…
dbkr Aug 23, 2021
089ebf7
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
1fad454
Merge pull request #6655 from SimonBrandner/fix/autocomplete-scroll
germain-gg Aug 23, 2021
7de102d
Translated using Weblate (German)
libexus Aug 23, 2021
93dccc8
Translated using Weblate (German)
tgurr Aug 23, 2021
952b5bf
Translated using Weblate (Italian)
Aug 23, 2021
67d0875
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
86c21c3
Merge pull request #6650 from SimonBrandner/fix/autocomplete/18593
dbkr Aug 23, 2021
7563625
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
b391ee0
Merge pull request #6451 from SimonBrandner/fix/replies-bubble/18184
dbkr Aug 23, 2021
d87fbac
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
e946e39
Merge pull request #6629 from SimonBrandner/feature/voice-messages-re…
dbkr Aug 23, 2021
68d07e5
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
b1a2f16
optimize
Aug 23, 2021
a3cf1c1
Merge pull request #6654 from matrix-org/fix/palid/space-room-view-css
Palid Aug 23, 2021
700f0ed
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
60e7c18
Add choose to new issue link
SimonBrandner Aug 23, 2021
d15ef70
Merge pull request #6657 from SimonBrandner/fix/issue-link
germain-gg Aug 23, 2021
b777b31
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
27dbd17
Fix resizer to properly find children
Aug 23, 2021
51b5b01
Fix resizer on LoggedInView
Aug 23, 2021
ca92101
Optimize and rewrite backdrop rendering
Aug 23, 2021
92aa953
Make eslint happy
Aug 23, 2021
7dfe578
Fix GroupFilterPanel not having proper backdrop
Aug 23, 2021
e8c974a
Make the background-blur always 100%
Aug 23, 2021
01eda51
Revert "Make the background-blur always 100%"
Aug 23, 2021
e54191f
Move background-blur to fully css version
Aug 23, 2021
618cc70
Make stylelint happy
Aug 23, 2021
6205cbb
Merge pull request #6659 from matrix-org/palid/fix/backdrop-blur
Palid Aug 23, 2021
0075836
Translated using Weblate (German)
jaller94 Aug 23, 2021
fd81cc2
Translated using Weblate (German)
libexus Aug 23, 2021
0101c4f
Translated using Weblate (German)
Aug 23, 2021
719ac59
Translated using Weblate (Esperanto)
Aug 23, 2021
9655e2e
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
15c731d
Merge pull request #6507 from matrix-org/t3chguy/fix/18089
turt2live Aug 23, 2021
52a8781
Translated using Weblate (Esperanto)
Aug 23, 2021
479903b
Translated using Weblate (Estonian)
Aug 23, 2021
ad4e42e
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
32343f3
Merge pull request #5698 from SimonBrandner/public-e2ee-warn
turt2live Aug 23, 2021
11a1645
Translated using Weblate (Albanian)
ujdhesa Aug 23, 2021
d9733c7
Merge branch 'origin/develop' into Weblate.
Aug 23, 2021
30c9860
Ensure blurhash is treated as optional
turt2live Aug 23, 2021
8237497
Flag a couple features as having dependencies
turt2live Aug 24, 2021
a0dc5d2
Honour user-selected background image from settings
turt2live Aug 24, 2021
924983d
Merge pull request #6663 from matrix-org/travis/fix-room-list
turt2live Aug 24, 2021
578e158
Translated using Weblate (Chinese (Traditional))
s8321414 Aug 24, 2021
071cc79
Translated using Weblate (Galician)
Aug 24, 2021
2fd2b08
Translated using Weblate (Albanian)
ujdhesa Aug 23, 2021
bfc17d2
Merge branch 'origin/develop' into Weblate.
Aug 24, 2021
52e1884
Merge pull request #6661 from matrix-org/travis/blurhash-opt
turt2live Aug 24, 2021
3b209eb
Merge branch 'origin/develop' into Weblate.
Aug 24, 2021
b6ea75b
Merge remote-tracking branch 'upstream/develop' into task/colors-2
SimonBrandner Aug 24, 2021
a5f6a2d
Remove comment
SimonBrandner Aug 24, 2021
64ed96e
Remove line of unknown origin
SimonBrandner Aug 24, 2021
8aacd96
Remove comment
SimonBrandner Aug 24, 2021
bf87413
Revert "$roomlist-header-color -> $tertiary-content"
SimonBrandner Aug 24, 2021
3d9a028
Revert "$avatar-bg-color -> $background"
SimonBrandner Aug 24, 2021
2920da8
Fix a merge regression
SimonBrandner Aug 24, 2021
e2c55c6
Fix difficult to grab scrollbar
Aug 24, 2021
751c57e
Add some padding to the Add button
SimonBrandner Aug 24, 2021
290ab89
Migrate ResizeHandle to typescript
Aug 24, 2021
ce21add
Translated using Weblate (German)
libexus Aug 24, 2021
b99a17c
Translated using Weblate (Swedish)
LinAGKar Aug 24, 2021
f79ce50
Translated using Weblate (Albanian)
AriBerisha Aug 24, 2021
a5c0057
Fix resizer on left panel
Aug 24, 2021
41d444d
Properly use item container
Aug 24, 2021
ab4934b
Make eslint happy
Aug 24, 2021
0746fab
Make stylelint happy
Aug 24, 2021
a93d5cd
Simplify rendering to css-only
Aug 24, 2021
168fe20
Merge pull request #6664 from matrix-org/palid/fix/difficult-to-grab-…
Palid Aug 24, 2021
a1a6350
Merge pull request #6667 from RiotTranslateBot/weblate-element-web-ma…
dbkr Aug 24, 2021
7645e04
Fix resizer crashing jitsi
Aug 24, 2021
1e1fc64
Fix breadcrumbs overflowing left-panel
Aug 24, 2021
eb50d64
Merge pull request #6669 from matrix-org/palid/fix/difficult-to-grab-…
Palid Aug 24, 2021
c2a410c
Merge pull request #6665 from SimonBrandner/fix/add-button/18706
turt2live Aug 24, 2021
d8e7fd3
Fix resizer for detaching
Aug 24, 2021
4d7b6f3
Merge pull request #6670 from matrix-org/palid/fix/difficult-to-grab-…
Palid Aug 24, 2021
c3e1732
Fix import breaking types in release mode
dbkr Aug 24, 2021
fa725a7
Merge pull request #6671 from matrix-org/dbkr/fix_import
dbkr Aug 24, 2021
dbc69fb
Merge pull request #6383 from matrix-org/dbkr/ci_for_release_mode_types
dbkr Aug 24, 2021
4cd79e3
Improve layering for chat
Aug 19, 2021
a62717e
Force a new layer for backdrop panel
Aug 24, 2021
ff048b0
Merge remote-tracking branch 'origin/develop' into palid/fix/layers-o…
Aug 24, 2021
536a9ae
Merge pull request #6644 from matrix-org/palid/fix/layers-overwhelming
Palid Aug 24, 2021
49453f2
Merge pull request #6604 from SimonBrandner/task/colors-2
turt2live Aug 24, 2021
4790b4f
Remove advanced room logging setting
turt2live Aug 24, 2021
e49dc8c
Remove imports too
turt2live Aug 24, 2021
b7df112
Revert "Use ignoreSelfEvent in the RoomListStore (which doesn't work!)"
SimonBrandner Aug 25, 2021
0465815
ignoreSelfEvent -> shouldCauseReorder
SimonBrandner Aug 25, 2021
08402cc
Merge remote-tracking branch 'upstream/develop' into fix/rl-resort/110
SimonBrandner Aug 25, 2021
7856268
Ignore avatar changes
SimonBrandner Aug 25, 2021
44543fe
Merge pull request #6673 from matrix-org/travis/rm-room-list-logging
turt2live Aug 25, 2021
9444995
Merge pull request #6662 from matrix-org/travis/safe-labs
turt2live Aug 25, 2021
237212b
Add ESLint shared settings to detect React version
Aug 25, 2021
b53e0ee
yarn upgrade
dbkr Aug 25, 2021
586810d
Not @types/react because it breaks stuff
dbkr Aug 25, 2021
f712186
Migrate StickerPicker to TypeScript
Aug 25, 2021
6105e04
Remove sdk.getComponent
Aug 25, 2021
dc32df1
Merge pull request #6639 from SimonBrandner/feature/voice-activity
turt2live Aug 25, 2021
e4f8971
Merge pull request #6676 from matrix-org/dbkr/yarn_upgrade_20210824
dbkr Aug 25, 2021
59833d1
Update changelog generator
dbkr Aug 25, 2021
6b6fefa
Fix class
SimonBrandner Aug 25, 2021
ecd45f7
Use min-height instead of height
SimonBrandner Aug 25, 2021
9f79103
Fix codeblock formatting
SimonBrandner Aug 25, 2021
7951c8d
Merge pull request #6677 from matrix-org/gsouquet/migrate-sticker-picker
germain-gg Aug 25, 2021
d442845
Merge pull request #6680 from SimonBrandner/fix/commands/18670
turt2live Aug 25, 2021
aa0a753
Merge pull request #6681 from SimonBrandner/fix/codeblock-formatting
turt2live Aug 25, 2021
8fd44f0
Merge pull request #6595 from SimonBrandner/fix/rl-resort/110
turt2live Aug 25, 2021
ee95e36
Merge pull request #6675 from matrix-org/gsouquet/remove-linter-warning
germain-gg Aug 25, 2021
76cc5bf
Remember all capabilities given to a widget
turt2live Aug 26, 2021
cafa52c
Special case redaction event sending from widgets per MSC2762
turt2live Aug 26, 2021
4415a70
Fix left panel widgets not remembering collapsed state
turt2live Aug 26, 2021
e79ac4b
Merge pull request #6679 from matrix-org/dbkr/allchange102
dbkr Aug 26, 2021
f54c6d7
Fix areAnyCallsUnsilenced()
SimonBrandner Aug 26, 2021
d013ae7
Fix changelog link colour back to blue
jryans Aug 26, 2021
e4f8c79
Add stopRingingIfPossible()
SimonBrandner Aug 26, 2021
242b4e7
Pause ringing more aggressively
SimonBrandner Aug 26, 2021
fc1dd51
Fix commit edit history
Aug 26, 2021
762fad0
Merge pull request #6689 from matrix-org/palid/fix/message-edit-history
Palid Aug 26, 2021
408c327
Merge remote-tracking branch 'upstream/develop' into fix/codeblock-bo…
SimonBrandner Aug 26, 2021
6003e12
Fix color name
SimonBrandner Aug 26, 2021
c13b3be
Merge pull request #6691 from SimonBrandner/fix/agressive-pausing/18588
dbkr Aug 26, 2021
9aadb7c
Merge pull request #6564 from SimonBrandner/fix/codeblock-border/18367
dbkr Aug 26, 2021
32ad94b
Merge pull request #6692 from matrix-org/jryans/changelog-link-colour
jryans Aug 26, 2021
a8b86da
Set the new layout setting when reading it
SimonBrandner Aug 26, 2021
a1a7de0
Merge pull request #6687 from matrix-org/travis/left-panel-widget-expand
turt2live Aug 26, 2021
22a78cf
Merge pull request #6685 from matrix-org/travis/fix-widget-remember
turt2live Aug 26, 2021
470bc0f
Merge pull request #6686 from matrix-org/travis/widget-redact
turt2live Aug 26, 2021
289b1c5
Always trigger the first amplitude capture from the worklet
turt2live Aug 26, 2021
464d2b4
Default to Don't leave any
SimonBrandner Aug 27, 2021
0fae3ed
i18n
SimonBrandner Aug 27, 2021
bbeda37
Merge pull request #6697 from SimonBrandner/fix/leave-space/18592
germain-gg Aug 27, 2021
cd1610e
Merge pull request #6696 from matrix-org/travis/ff-voice
turt2live Aug 27, 2021
5e934c1
Merge pull request #6694 from SimonBrandner/task/set-new-layout
turt2live Aug 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 0 additions & 16 deletions .eslintignore.errorfiles

This file was deleted.

68 changes: 50 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module.exports = {
extends: ["matrix-org", "matrix-org/react-legacy"],
parser: "babel-eslint",

plugins: ["matrix-org"],
extends: [
"plugin:matrix-org/babel",
"plugin:matrix-org/react",
],
env: {
browser: true,
node: true,
Expand All @@ -15,35 +17,65 @@ module.exports = {
"prefer-promise-reject-errors": "off",
"no-async-promise-executor": "off",
"quotes": "off",
},
"no-extra-boolean-cast": "off",

// Bind or arrow functions in props causes performance issues (but we
// currently use them in some places).
// It's disabled here, but we should using it sparingly.
"react/jsx-no-bind": "off",
"react/jsx-key": ["error"],

"no-restricted-properties": [
"error",
...buildRestrictedPropertiesOptions(
["window.innerHeight", "window.innerWidth", "window.visualViewport"],
"Use UIStore to access window dimensions instead.",
),
...buildRestrictedPropertiesOptions(
["*.mxcUrlToHttp", "*.getHttpUriForMxc"],
"Use Media helper instead to centralise access for customisation.",
),
],
},
overrides: [{
"files": ["src/**/*.{ts,tsx}", "test/**/*.{ts,tsx}"],
"extends": ["matrix-org/ts"],
"rules": {
files: [
"src/**/*.{ts,tsx}",
"test/**/*.{ts,tsx}",
],
extends: [
"plugin:matrix-org/typescript",
"plugin:matrix-org/react",
],
rules: {
// Things we do that break the ideal style
"prefer-promise-reject-errors": "off",
"quotes": "off",
"no-extra-boolean-cast": "off",

// Remove Babel things manually due to override limitations
"@babel/no-invalid-this": ["off"],

// We're okay being explicit at the moment
"@typescript-eslint/no-empty-interface": "off",
// We disable this while we're transitioning
"@typescript-eslint/no-explicit-any": "off",
// We'd rather not do this but we do
"@typescript-eslint/ban-ts-comment": "off",

"quotes": "off",
"no-extra-boolean-cast": "off",
"no-restricted-properties": [
"error",
...buildRestrictedPropertiesOptions(
["window.innerHeight", "window.innerWidth", "window.visualViewport"],
"Use UIStore to access window dimensions instead",
),
],
},
}],
settings: {
react: {
version: "detect",
}
}
};

function buildRestrictedPropertiesOptions(properties, message) {
return properties.map(prop => {
const [object, property] = prop.split(".");
let [object, property] = prop.split(".");
if (object === "*") {
object = undefined;
}
return {
object,
property,
Expand Down
6 changes: 0 additions & 6 deletions .flowconfig

This file was deleted.

1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @matrix-org/element-web
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Please read https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.md before submitting your pull request -->

<!-- Include a Sign-Off as described in https://github.com/matrix-org/matrix-js-sdk/blob/develop/CONTRIBUTING.md#sign-off -->

<!-- To specify text for the changelog entry (otherwise the PR title will be used):
Notes:

Changes in this project generate changelog entries in element-web by default.
To suppress this:

element-web notes: none

...or to specify different notes:
element-web notes: <notes>
-->
31 changes: 24 additions & 7 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Develop jobs
name: Develop
on:
# These tests won't work for non-develop branches at the moment as they
# won't pull in the right versions of other repos, so they're only enabled
# on develop.
push:
branches: [develop]
pull_request:
Expand All @@ -11,17 +14,31 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: End-to-End tests
run: ./scripts/ci/end-to-end-tests.sh
- name: Prepare End-to-End tests
run: ./scripts/ci/prepare-end-to-end-tests.sh
- name: Run End-to-End tests
run: ./scripts/ci/run-end-to-end-tests.sh
- name: Archive logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
path: |
test/end-to-end-tests/logs/**/*
test/end-to-end-tests/synapse/installations/consent/homeserver.log
retention-days: 14
- name: Archive performance benchmark
uses: actions/upload-artifact@v2
- name: Download previous benchmark data
uses: actions/cache@v1
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: matrix-org/github-action-benchmark@jsperfentry-1
with:
name: performance-entries.json
path: test/end-to-end-tests/performance-entries.json
tool: 'jsperformanceentry'
output-file-path: test/end-to-end-tests/performance-entries.json
fail-on-alert: false
comment-on-alert: false
# Only temporary to monitor where failures occur
alert-comment-cc-users: '@gsouquet'
github-token: ${{ secrets.DEPLOY_GH_PAGES }}
auto-push: ${{ github.ref == 'refs/heads/develop' }}
31 changes: 31 additions & 0 deletions .github/workflows/layered-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Layered Preview Build
on:
pull_request:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: scripts/ci/layered.sh && cd element-web && cp element.io/develop/config.json config.json && CI_PACKAGE=true yarn build
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: previewbuild
path: element-web/webapp
# We'll only use this in a triggered job, then we're done with it
retention-days: 1
- uses: actions/github-script@v3.1.0
with:
script: |
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/pr.json', JSON.stringify(context.payload.pull_request));
- name: Upload PR Info
uses: actions/upload-artifact@v2
with:
name: pr.json
path: pr.json
# We'll only use this in a triggered job, then we're done with it
retention-days: 1

80 changes: 80 additions & 0 deletions .github/workflows/netlify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Upload Preview Build to Netlify
on:
workflow_run:
workflows: ["Layered Preview Build"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
if: >
${{ github.event.workflow_run.conclusion == 'success' }}
steps:
# There's a 'download artifact' action but it hasn't been updated for the
# workflow_run action (https://github.com/actions/download-artifact/issues/60)
# so instead we get this mess:
- name: 'Download artifact'
uses: actions/github-script@v3.1.0
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "previewbuild"
})[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/previewbuild.zip', Buffer.from(download.data));

var prInfoArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "pr.json"
})[0];
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: prInfoArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/pr.json.zip', Buffer.from(download.data));
- name: Extract Artifacts
run: unzip -d webapp previewbuild.zip && rm previewbuild.zip && unzip pr.json.zip && rm pr.json.zip
- name: 'Read PR Info'
id: readctx
uses: actions/github-script@v3.1.0
with:
script: |
var fs = require('fs');
var pr = JSON.parse(fs.readFileSync('${{github.workspace}}/pr.json'));
console.log(`::set-output name=prnumber::${pr.number}`);
- name: Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v1.2
with:
publish-dir: webapp
deploy-message: "Deploy from GitHub Actions"
# These don't work because we're in workflow_run
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
- name: Edit PR Description
uses: velas/pr-description@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
pull-request-number: ${{ steps.readctx.outputs.prnumber }}
description-message: |
Preview: ${{ steps.netlify.outputs.deploy-url }}
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

12 changes: 12 additions & 0 deletions .github/workflows/preview_changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Preview Changelog
on:
pull_request_target:
types: [ opened, edited, labeled ]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Preview Changelog
uses: matrix-org/allchange@main
with:
ghToken: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ package-lock.json

.DS_Store
*.tmp

.vscode
.vscode/
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
Loading