Commit graph

909 commits

Author SHA1 Message Date
RiotRobot
c8a5788bca Upgrade matrix-js-sdk to 21.0.0-rc.1 2022-10-18 14:08:43 +01:00
Travis Ralston
10a429c68d
Include a file-safe room name and ISO date in chat exports (#9440)
* conversation export named after room

* sanitization added for exported file name

* sanitization added for exported file name

* sanitization added for exported file name

* sanitization added for exported file name=>lint error fixed

* sanitization added for exported file name=>lint error fixed

* sanitization added for exported file name=>redundancy removed

* sanitization added for exported file name=>redundancy removed

* reverted to previous commit

* sanitization added for exported file name=>redundancy removed

* exported chat date iso formatted

* conversation export named after room

* conversation export named after room

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>

* code refacto filename date format

* Add docs to fn

* Bring in a util library for sanitizing

* Extract file naming function and make consistent for all 3 types

Also use the library we dragged in

* Write tests & associated fixes

* Apply linters locally

* Include new date util in index

Co-authored-by: Sinharitik589 <sinharitik18112835@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: yaya-usman <yayaazeez222@gmail.com>
Co-authored-by: Sinharitik589 <67551927+Sinharitik589@users.noreply.github.com>
2022-10-17 19:54:10 -06:00
Florian Duros
3ecd67aa80
Merge branch 'develop' into feat/add-formating-buttons-to-wysiwyg 2022-10-14 09:44:32 +02:00
Michael Telatynski
a45a662c57
Enable Cypress retries to combat flakiness (#9413) 2022-10-13 19:11:30 +01:00
Florian Duros
ac8397aa0f
Fix test 2022-10-13 16:46:47 +02:00
Michael Telatynski
1800cb8c71
Remove unused packages and fix invariant violation on AsyncStore onNotReady (#9404)
* Remove traces of browser-request & mocha

* Remove unused matrix-react-test-utils

* Fix dispatcher invariant violation

* Add null-guard

* Improve types

* Fix null-guard

* Fix issue with authed users going directly to /#/login
2022-10-13 09:22:32 +01:00
Michael Telatynski
8b54be6f48
Move from browser-request to fetch (#9345) 2022-10-12 18:59:07 +01:00
RiotRobot
7c1c49540a Reset matrix-js-sdk back to develop branch 2022-10-11 13:56:23 +01:00
RiotRobot
08a4070666 Merge branch 'master' into develop 2022-10-11 13:56:09 +01:00
RiotRobot
2d64c21c90 Upgrade matrix-js-sdk to 20.1.0 2022-10-11 13:51:54 +01:00
Florian Duros
5bdac78fc7
Merge remote-tracking branch 'origin/develop' into feat/matrix-wysisyg-integration 2022-10-10 17:04:27 +02:00
Florian Duros
77005e2b7d
Update wysiwyg version 2022-10-10 16:55:20 +02:00
Florian Duros
200af78c2a
Use published matrix-wysisyg 2022-10-10 14:28:30 +02:00
Florian Duros
67aab08759
Update yarn.lock 2022-10-07 15:05:29 +02:00
Kerry
3e4f3152bc
Device manager - parse user agent for device information (#9352)
* record device client inforamtion events on app start

* matrix-client-information -> matrix_client_information

* fix types

* remove another unused export

* add docs link

* display device client information in device details

* update snapshots

* integration-ish test client information in metadata

* tests

* fix tests

* export helper

* DeviceClientInformation type

* Device manager - select all devices (#9330)

* add device selection that does nothing

* multi select and sign out of sessions

* test multiple selection

* fix type after rebase

* select all sessions

* rename type

* use ExtendedDevice type everywhere

* rename clientName to appName for less collision with UA parser

* fix bad find and replace

* rename ExtendedDeviceInfo to ExtendedDeviceAppInfo

* rename DeviceType comp to DeviceTypeIcon

* update tests for new required property deviceType

* add stubbed user agent parsing

* setup test cases

* detect device type correctly

* 80% working ua parser

* parse asera gents for device info

* combine clientName/Version into one field, remove debug from tests
2022-10-06 10:06:29 +02:00
RiotRobot
5619de03c4 Upgrade matrix-js-sdk to 20.1.0-rc.2 2022-10-05 13:27:37 +01:00
Florian Duros
bfb1638ff3
Add wysisyg composer (can only send message, enable behind a labs flag) 2022-10-05 12:01:41 +02:00
RiotRobot
bf56a315c2 Upgrade matrix-js-sdk to 20.1.0-rc.1 2022-10-04 14:05:33 +01:00
RiotRobot
1a0dbbf192 Reset matrix-js-sdk back to develop branch 2022-09-28 15:55:01 +01:00
RiotRobot
08563e9224 Merge branch 'master' into develop
# Conflicts:
#	package.json
#	yarn.lock
2022-09-28 15:54:19 +01:00
RiotRobot
74b2e503ac Upgrade matrix-js-sdk to 20.0.0 2022-09-28 15:49:16 +01:00
RiotRobot
fff065d6af Reset matrix-js-sdk back to develop branch 2022-09-28 14:14:49 +01:00
RiotRobot
d3029b5967 Merge branch 'master' into develop
# Conflicts:
#	package.json
#	yarn.lock
2022-09-28 14:13:01 +01:00
RiotRobot
fa7acf4dfd Upgrade matrix-js-sdk to 19.7.0 2022-09-28 14:09:31 +01:00
RiotRobot
c14191bfb6 Reset matrix-js-sdk back to develop branch 2022-09-27 17:13:26 +01:00
RiotRobot
c5c3ca061e Merge branch 'master' into develop 2022-09-27 17:13:12 +01:00
RiotRobot
b3596b5420 Upgrade matrix-js-sdk to 19.6.0 2022-09-27 16:55:45 +01:00
Michael Weimann
8e719d57a2
Add voice broadcast recording body (#9316)
* Add voice broadcast recording body

* Change icon element; update css variables

* Update Icon-test snapshots
2022-09-26 15:29:38 +02:00
Robin
d077ea1990
New group call experience: Room header call buttons (#9311)
* Make useEventEmitterState more efficient

By not invoking the initializing function on every render

* Make useWidgets more efficient

By not calling WidgetStore on every render

* Add new group call experience Labs flag

* Add viewingCall field to RoomViewStore state

Currently has no effect, but in the future this will signal to RoomView to show the call or call lobby.

* Add element_call.use_exclusively config flag

As documented in element-web, this will tell the app to use Element Call exclusively for calls, disabling Jitsi and legacy 1:1 calls.

* Make placeCall return a promise

So that the UI can know when placeCall completes

* Update start call buttons to new group call designs

Since RoomView doesn't do anything with viewingCall yet, these buttons won't have any effect when starting native group calls, but the logic is at least all there and ready to be hooked up.

* Allow calls to be detected if the new group call experience is enabled

* Test the RoomHeader changes

* Iterate code
2022-09-25 10:57:25 -04:00
RiotRobot
aafe4aa17d Upgrade allchange 2022-09-20 14:09:14 +01:00
RiotRobot
4cf3a60e97 Upgrade matrix-js-sdk to 19.6.0-rc.1 2022-09-20 14:04:35 +01:00
Dominik Henneke
0c22b15bba
Implement MSC3869: Read event relations with the Widget API (#9210)
* Add an action to read relations according to MSC3869

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

* Apply review comments

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

* Fix test

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

* Update matrix-widget-api to 1.1.1

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
2022-09-14 10:18:51 -04:00
RiotRobot
f67b8d0d32 Reset matrix-js-sdk back to develop branch 2022-09-13 12:48:49 +01:00
RiotRobot
65a74c77aa Merge branch 'master' into develop 2022-09-13 12:48:35 +01:00
RiotRobot
a1ab983e91 Upgrade matrix-js-sdk to 19.5.0 2022-09-13 12:46:37 +01:00
Michael Telatynski
0ab476b828
Upgrade @types (#9261)
* Upgrade @types

* Make typescript happier
2022-09-12 11:58:05 +01:00
RiotRobot
17733b863f Upgrade matrix-js-sdk to 19.5.0-rc.4 2022-09-06 12:50:48 +01:00
Michael Weimann
ea0622a48e
Require @typescript-eslint/eslint-plugin >= 5.35.1 (#9233) 2022-09-02 11:24:56 +02:00
RiotRobot
d85d79d92b Reset matrix-js-sdk back to develop branch 2022-08-31 16:38:16 +01:00
RiotRobot
c89c02f4e0 Merge branch 'master' into develop
# Conflicts:
#	src/events/EventTileFactory.tsx
#	yarn.lock
2022-08-31 16:36:50 +01:00
RiotRobot
c88a4bfad9 Upgrade matrix-js-sdk to 19.4.0 2022-08-31 16:28:09 +01:00
t3chguy
094b8cd475 [create-pull-request] automated change 2022-08-23 10:14:09 +00:00
RiotRobot
8b36c6f3a0 Upgrade matrix-js-sdk to 19.4.0-rc.1 2022-08-23 10:57:56 +01:00
RiotRobot
fecc03289d Reset matrix-js-sdk back to develop branch 2022-08-16 15:44:18 +01:00
RiotRobot
5b2bafacc9 Merge branch 'master' into develop
# Conflicts:
#	package.json
2022-08-16 15:42:37 +01:00
RiotRobot
4fce604771 Upgrade matrix-js-sdk to 19.3.0 2022-08-16 15:35:10 +01:00
RiotRobot
5ccd473744 Upgrade matrix-js-sdk to 19.3.0-rc.2 2022-08-12 13:34:03 +01:00
Michael Telatynski
df016ff5f6
Upgrade deps (#9165) 2022-08-10 15:10:08 +00:00
Robin
103b60dfb5
Implement MSC3819: Allowing widgets to send/receive to-device messages (#8885)
* Implement MSC3819: Allowing widgets to send/receive to-device messages

* Don't change the room events and state events drivers

* Update to latest matrix-widget-api changes

* Support sending encrypted to-device messages

* Use queueToDevice for better reliability

* Update types for latest WidgetDriver changes

* Upgrade matrix-widget-api

* Add tests

* Test StopGapWidget

* Fix a potential memory leak
2022-08-10 08:57:56 -04:00
RiotRobot
2cae2be909 Upgrade matrix-js-sdk to 19.3.0-rc.1 2022-08-09 17:11:26 +01:00
Michael Telatynski
5fbeb20df8
Some small tidying up (#9149)
* Remove stale comment

* Fix typing

* Install katex type definitions
2022-08-09 11:55:49 +00:00
RiotRobot
ed3350c2ba Reset matrix-js-sdk back to develop branch 2022-08-03 09:14:46 +01:00
RiotRobot
dff1a1405d Merge branch 'master' into develop
# Conflicts:
#	CHANGELOG.md
#	package.json
2022-08-02 17:12:24 +01:00
RiotRobot
d5224d5a63 Upgrade matrix-js-sdk to 19.2.0 2022-08-02 17:03:59 +01:00
Michael Weimann
27ba1e57e6
Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00
Michael Telatynski
d5db131eef
Spike AXE A11Y testing in Cypress (#9111)
* Spike AXE A11Y testing in Cypress

* Fix NewRoomIntro breaking html/aria list rules

* Fix HeaderButtons breaking aria role semantics rules

* missing type

* Switch left panel from aside to nav and include space panel

* Give the page a main heading of the room name when viewing a room

* Use header landmark on RoomHeader

* Improve aria attributes on composer when autocomplete is closed

* Fix aria-owns on RoomHeader

* Give Spinner an aria role

* Give server picker help button an aria label

* Improve auth aria attributes and semantics

* Improve heading semantics in use case selection screen

* Fix autocomplete attribute to be valid

* Fix heading semantics on login page

* Improve Cypress axe testing

* Add axe tests

* Stop synapse after the timeline tests

* Await spinners to fade before percy snapshotting timeline tests

* Improve naming of plugin

* Update snapshots

* Fix accidental heading change

* Fix double synapse stoppage

* Fix Cypress timeline avatar assertions to be DPI agnostic

* Fix aria attributes on date separators

* delint

* Update snapshots

* Revert style change

* Skip redundant call
2022-08-01 08:31:14 +01:00
Janne Mareike Koschinski
1e4c336fed
New User Onboarding Task List (#9083)
* Improve type of AccessibleButton to accurately represent available props
* Update analytics events
2022-07-29 11:43:29 +00:00
Michael Telatynski
e53fb60763
Revert "Reset matrix-js-sdk back to develop branch"
This reverts commit 35a6f4bb56.
2022-07-26 17:42:50 +01:00
RiotRobot
35a6f4bb56 Reset matrix-js-sdk back to develop branch 2022-07-26 17:39:10 +01:00
RiotRobot
da98e3d201 Upgrade matrix-js-sdk to 19.2.0-rc.1 2022-07-26 17:29:36 +01:00
RiotRobot
a08df49db1 Reset matrix-js-sdk back to develop branch 2022-07-26 16:36:36 +01:00
RiotRobot
b8073c4c38 Merge branch 'master' into develop 2022-07-26 16:34:33 +01:00
RiotRobot
6efe982550 Upgrade matrix-js-sdk to 19.1.0 2022-07-26 16:19:07 +01:00
Travis Ralston
0053f21286
Update lockfile per yarn's decision (#9074) 2022-07-19 07:58:04 +02:00
Michael Telatynski
42ff9d6dc8
Move Lazy Loading tests from Puppeteer to Cypress (#8982)
* Remove Puppeteer Lazy Loading tests

* Remove Puppeteer Lazy Loading tests

* Remove Puppeteer Lazy Loading tests

* Stash lazy loading cypress tests

* Stash lazy loading cypress tests

* Update cypress-real-events

* Stash offline-less test

* Add offline/online'ing
2022-07-18 13:16:44 +01:00
Michael Telatynski
01f4bb8c78
Rename PostCSS files to .pcss (#9013)
* Rename PostCSS files to `.pcss`

* Make Stylelint happy

* Delint

* Rename new files too

* delint

* Fix bad comment placement
2022-07-15 14:53:23 +01:00
ElementRobot
7b7181be18
Upgrade dependencies (#8749)
* [create-pull-request] automated change

* Remove conflicting HTMLStyleElement type improvement

* Pin postcss-hexrgba as 2.1.0 needs postcss 8

* Bump typescript version

* Add missing crypto stub

Co-authored-by: t3chguy <t3chguy@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-07-13 17:11:19 +01:00
Janne Mareike Koschinski
f5f79158ed
Implement Use Case Selection screen (#8984)
* Introduce new splash page wrapper
* Introduce new use case selection screen
2022-07-13 15:43:44 +02:00
RiotRobot
78bda2b6da Upgrade matrix-js-sdk to 19.1.0-rc.1 2022-07-12 14:09:05 +01:00
Michael Telatynski
7fb48d24e4
Upgrade to Cypress 10 (#9008)
* Upgrade to Cypress 10

* Remove stale comment
2022-07-08 13:14:13 +01:00
Travis Ralston
7f5bb61a79
Support a module API surface for custom functionality (#8246)
* Early implementation of module API surface + functions for ILAG module

* Wire up dialog functions and ILAG-needed surface

* Ensure component renders for modules get overridden

* Respond to changes from module API interface

* Use a real module-api dependency

* Update for new Dialogs interface

* Add support for getConfigValue from module API

* Update the remainder of the module API interface

* Docs & cleanup

* Add some unit tests around module stuff

Needs end-to-end tests still.

* Appease early linters

* Break import cycles by not directly depending on Lifecycle

* Appease the linter

* Fix bad merge
2022-07-05 12:26:44 -06:00
RiotRobot
bdc05ec268 Reset matrix-js-sdk back to develop branch 2022-07-05 14:16:38 +01:00
RiotRobot
517494d619 Upgrade matrix-js-sdk to 19.0.0 2022-07-05 14:12:58 +01:00
RiotRobot
b0cea630a3 Upgrade matrix-js-sdk to 19.0.0-rc.1 2022-06-28 16:10:33 +01:00
Michael Telatynski
7f7ad10b04
Update matrix-web-i18n (#8914) 2022-06-28 14:15:51 +01:00
Michael Telatynski
d3fb6ff906
Move the user view tests from Puppeteer to Cypress (#8787)
* Move the user view tests from Puppeteer to Cypress

* Iterate snapshot test

* Actually import the new module

* Specify widths

* Update cypress & percy

* Try fix percy

* Finish cypress upgrade

* Tidy cypress.config.ts

* Revert "Tidy cypress.config.ts"

This reverts commit d913052cc4e12f836b99645bda81bbcf21d5f3c8.

* Revert "Finish cypress upgrade"

This reverts commit b5aba3b8a32edbc36549fbd8a27eb0de0390da2a.

* Revert "Update cypress & percy"

This reverts commit f846a364f81b23b173d9af67230aa074bd248cf6.

* delint

* Update percy
2022-06-08 22:12:56 +01:00
Michael Telatynski
8036985204
Update matrix-analytics-events to @matrix-org/analytics-events (#8778)
* Update matrix-analytics-events to @matrix-org/analytics-events

* Update install-deps.sh

* Update layered.sh

* Update BeaconMarker-test.tsx.snap

* Update BeaconStatus-test.tsx.snap
2022-06-07 20:08:36 +01:00
RiotRobot
5da187d520 Reset matrix-js-sdk back to develop branch 2022-06-07 12:13:34 +01:00
RiotRobot
d4647936c4 Merge branch 'master' into develop 2022-06-07 12:13:24 +01:00
RiotRobot
812ac75d9d Upgrade matrix-js-sdk to 18.1.0 2022-06-07 12:10:11 +01:00
Kerry
158e42f764
Unit test MessageActionBar (#8732)
* test most basic paths in messageactionbar

Signed-off-by: Kerry Archibald <kerrya@element.io>

* tidy

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add rtl

* add code style note about using rtl

Signed-off-by: Kerry Archibald <kerrya@element.io>

* downgrade to rtl 12

* use rtl for MessageActionBar test

Signed-off-by: Kerry Archibald <kerrya@element.io>

* try mocking settingsstore for ci only failure

Signed-off-by: Kerry Archibald <kerrya@element.io>

* mock setValue too

Signed-off-by: Kerry Archibald <kerrya@element.io>

* uupdate lockfile

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-06-02 10:25:56 +02:00
RiotRobot
7ca3b6bb13 Upgrade matrix-js-sdk to 18.1.0-rc.1 2022-05-31 11:35:17 +01:00
Kerry
f742e3a17d
matrix-mock-request 2.0 (#8717) 2022-05-30 12:19:13 +00:00
Michael Telatynski
f3f14afbbf
Move spaces tests from Puppeteer to Cypress (#8645)
* Move spaces tests from Puppeteer to Cypress

* Add missing fixture

* Tweak synapsedocker to not double error on a docker failure

* Fix space hierarchy loading race condition

Fixes https://github.com/matrix-org/element-web-rageshakes/issues/10345

* Fix race condition when creating public space with url update code

* Try Electron once more due to perms issues around clipboard

* Try set browser permissions properly

* Try to enable clipboard another way

* Try electron again

* Try electron again again

* Switch to built-in cypress feature for file uploads

* Mock clipboard instead

* TMPDIR ftw?

* uid:gid pls

* Clipboard tests can now run on any browser due to mocking

* Test Enter as well as button for space creation

* Make the test actually work

* Update cypress/support/util.ts

Co-authored-by: Eric Eastwood <erice@element.io>

Co-authored-by: Eric Eastwood <erice@element.io>
2022-05-26 10:19:00 +01:00
RiotRobot
d214387c88 Reset matrix-js-sdk back to develop branch 2022-05-24 13:04:54 +01:00
RiotRobot
1ca34540e7 Merge branch 'master' into develop
# Conflicts:
#	yarn.lock
2022-05-24 13:03:34 +01:00
RiotRobot
076598ca85 Upgrade matrix-js-sdk to 18.0.0 2022-05-24 12:41:56 +01:00
RiotRobot
3c2e9c364a Upgrade matrix-js-sdk to 18.0.0-rc.2 2022-05-20 10:58:03 +01:00
t3chguy
bf1a19ab1a [create-pull-request] automated change 2022-05-17 19:03:57 +00:00
RiotRobot
a68032760e Upgrade matrix-js-sdk to 18.0.0-rc.1 2022-05-17 18:32:12 +01:00
Michael Telatynski
d9b7e0721c
Add visual tests using Percy in Cypress (#8610)
* Add basic Percy tests

* Run Percy in CI

* Fix snapshot timing

* Fix bad selector

* Hide another bit of dynamic text

* Add docs
2022-05-17 15:16:14 +00:00
Michael Telatynski
ad4d3f9a88
Move threads e2e tests over to cypress (#8501)
* Add non-consent (default) Synapse template

* Add consent test

* Add create room test

* Stash work

* Initial threads tests

* fix

* Delete old threads e2e tests, plan new ones

* Fix typed s'more

* Try something else

* specify d.ts

* Fix types once and for all?

* Fix the consent tests

* Iterate threads test harness

* Fix dispatcher types

* Iterate threads test

* fix typing

* Alternative import attempt

* let it break let it break let it break

* Tweak types

* Stash

* delint and update docs

* null-guard scrollIntoView

* Iterate threads test

* Apply suggestions from code review
2022-05-10 17:09:31 +00:00
RiotRobot
38f34c3d6a Reset matrix-js-sdk back to develop branch 2022-05-10 15:07:41 +01:00
RiotRobot
3d2866917a Merge branch 'master' into develop 2022-05-10 15:03:45 +01:00
RiotRobot
ee47cb8024 Upgrade matrix-js-sdk to 17.2.0 2022-05-10 14:54:47 +01:00
Janne Mareike Koschinski
e05a3e6446
fix: update matrix-analytics-events (#8543) 2022-05-09 14:18:15 +00:00
Kerry
2c19d286ed
Eslint - require copyright header rule (#8514)
* bump eslint plugin to 0.5.2

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add rule

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add missing copyright headers

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix comment order

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-06 09:09:28 +00:00
Michael Telatynski
9c8a887361 Pin linkify version due to breaking changes 2022-05-03 23:35:08 +01:00
t3chguy
c1af28188e [create-pull-request] automated change 2022-05-03 21:49:01 +00:00
RiotRobot
fab2a49a53 Upgrade matrix-js-sdk to 17.2.0-rc.1 2022-05-03 15:26:00 +01:00
Michael Telatynski
7477a2df7d
Switch coverage over to SonarQube (#8463) 2022-05-02 21:34:31 +01:00
Germain
45180111d0
Update analytics SDK (#8437) 2022-04-28 12:19:00 +01:00
Germain
1ed68a718f
Add new user signup event tracking in PostHog (#8412) 2022-04-28 11:46:02 +01:00
Janne Mareike Koschinski
9b0ab3321c
Add opt-in analytics to onboarding tasks (#8409)
* Add interaction tracking to explore room, send DM and create room events in onboarding view and elsewhere
* Update matrix analytics events dependency
2022-04-26 13:31:53 +02:00
RiotRobot
c7c0fdbcc5 Reset matrix-js-sdk back to develop branch 2022-04-26 12:15:33 +01:00
RiotRobot
ba624c8ef2 Merge branch 'master' into develop 2022-04-26 11:50:38 +01:00
RiotRobot
bff1a3b088 Upgrade matrix-js-sdk to 17.1.0 2022-04-26 11:36:14 +01:00
Michael Telatynski
74cab0323f
Upgrade dependencies (#8362)
* Upgrade dependencies

* delint
2022-04-21 08:08:03 +01:00
RiotRobot
1da1460baf Upgrade matrix-js-sdk to 17.1.0-rc.1 2022-04-19 14:54:05 +01:00
David Baker
b8013fc52a
Add a Cypress Test 🌲 (#8295)
* A first, maybe working cypress test

Plus cypress plugins to manage synapses in docker containers

* Fix yaml

* This file is important

* try & find where it's put the artifact

* Download artifact to a directory

* pics or it didn't happen

* Add conditional, otherwise no artifacts on failure...

* Try increasing timeout

also actually give the test a name

* Try in chrome

* Get docker logs to see why it's failing

also document the chrome setting

* Try changing mode on homeserver.yaml

* debug

* More debugging

* more file permissions debugging

* ARGH

* more debug

* sigh

* Eugh, that's not how arguments work

* Add the option to really allow open registration

and remove debug logging / comment fixes

* failure to yaml

* Upload docker logs as artifacts

and temporarily remove contional to test

* Put the conditional back

* Upgrade types in end to end tests

to be compatible with fs-extra types

* Try reducing timeout a bit

also make password more... sensible

* Hex is not octal

* Remove file mode

Seems to be unnecessary since the signing key is perfectly fine

* Give the log files extensions

* Rename workflow file now it also does tests

* Add cypress scripts

* copyright headers

* Use ? operator

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Use develop synapse image

* Tidy up any remaining synapses after each spec run

Also:
 * Move the synapseStart / synapseStop functions out to the top level
   so they can be reused
 * Add a tsconfig file
 * Give the containers names

* Don't upload video on test pass

We don't upload it anyway so tell cypress not to so it can not
bother encoding them

* Enable linting on cypress files

and fix existing lint errors

* Type check cypress files

and make it pass the type checks, specifically:
 * Upgrade sinon fake timers to a version that has the right types
 * Set module resolution
 * Type check cypress files separately

* Rename workflow file again

Probably better to just call it an element web build

* Don't plus + characters in container name

* Fix yaml

* Stream logs to file

* Add note to end to end tester to sya what's been ported

* Put docker rm in finally block

Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-04-14 10:41:58 +01:00
RiotRobot
42dbe14f36 Reset matrix-js-sdk back to develop branch 2022-04-12 10:38:05 +01:00
RiotRobot
336492275a Merge branch 'master' into develop 2022-04-12 10:36:00 +01:00
RiotRobot
7844c3ac8d Upgrade matrix-js-sdk to 17.0.0 2022-04-12 10:31:47 +01:00
David Baker
285dc25b3e
Add a test for URL previews being disabled in e2e rooms (#8270)
* Add a test for URL previews being disabled in e2e rooms

Regression test for https://github.com/matrix-org/matrix-react-sdk/pull/8227

* Fix the types
2022-04-08 18:32:35 +01:00
Kerry
efb44e1b7d
update yarn lock (#8237)
* update yarn lock

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove beta.6

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-06 13:33:05 +02:00
Hugh Nimmo-Smith
457fc542da
Replace browser-encrypt-attachment with matrix-encrypt-attachment (#7795)
* Replace browser-encrypt-attachment with matrix-encrypt-attachment

matrix-encrypt-attachment is maintained and includes TS typings

* Upgrade matrix-encrypt-attachment to latest with default exports
2022-04-05 11:29:27 -06:00
RiotRobot
7571552836 Upgrade matrix-js-sdk to 16.0.2-rc.1 2022-04-05 18:12:37 +01:00
Travis Ralston
97efdf7094 Merge branch 'develop' into travis/remove-skinning 2022-03-31 19:25:43 -06:00
dependabot[bot]
4e665dedb9
Bump ansi-regex from 4.1.0 to 4.1.1 (#8178)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-29 00:02:49 -06:00
Travis Ralston
a6564d9ab9 Step 14: Remove reskindex 2022-03-28 15:30:30 -06:00
Travis Ralston
15b84bd9a6 Step 2: Remove the decorator 2022-03-28 14:02:31 -06:00
RiotRobot
2520d81784 Reset matrix-js-sdk back to develop branch 2022-03-28 16:19:31 +01:00
RiotRobot
7507d4f43d Merge branch 'master' into develop 2022-03-28 16:19:20 +01:00
RiotRobot
eb51ba1d2a Upgrade matrix-js-sdk to 16.0.1 2022-03-28 16:16:39 +01:00
dependabot[bot]
e844938235
Bump minimist from 1.2.5 to 1.2.6 (#8156)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 10:43:59 -06:00
Michael Telatynski
bc01efa124
Improve handling of animated GIF and WEBP images (#8153) 2022-03-25 16:31:40 +00:00
Šimon Brandner
3534e9b6ce
Upgrade emojibase and twemoji (#7286)
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-23 17:08:34 +00:00
RiotRobot
cbb704fb24 Upgrade matrix-js-sdk to 16.0.1-rc.1 2022-03-22 21:46:47 +00:00
Michael Telatynski
7a22682a80
Install typings for escape-html package (#8098) 2022-03-21 17:02:22 +00:00
RiotRobot
2778fd135e Reset matrix-js-sdk back to develop branch 2022-03-15 14:34:00 +00:00
RiotRobot
ddb3f57470 Upgrade matrix-js-sdk to 16.0.0 2022-03-15 14:26:48 +00:00
RiotRobot
6dbcf837e5 Upgrade matrix-js-sdk to 16.0.0-rc.1 2022-03-08 14:53:26 +00:00
RiotRobot
b02d5ecb97 Merge branch 'master' into develop 2022-02-28 17:01:22 +00:00
RiotRobot
9feae296f4 Upgrade matrix-js-sdk to 15.6.0 2022-02-28 16:48:46 +00:00
Michael Telatynski
75e41b4c1c
Basic threads analytics into Posthog MVP (#7871) 2022-02-28 14:11:14 +00:00
Kerry
6e143c313e
eslint to 8.9.0 (#7889)
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 15:54:06 +01:00
RiotRobot
a793815aa2 Upgrade matrix-js-sdk to 15.6.0-rc.1 2022-02-22 13:39:33 +00:00
Andy Balaam
eed8db4c26 Bump matrix-events-sdk to 0.0.1-beta.7 (#7837)
* Bump matrix-events-sdk to 0.0.1-beta.7

* Update lockfile
2022-02-22 13:00:03 +00:00
Andy Balaam
213b32bf14
Bump matrix-events-sdk to 0.0.1-beta.7 (#7837)
* Bump matrix-events-sdk to 0.0.1-beta.7

* Update lockfile
2022-02-22 11:54:56 +00:00
Kerry
9db59d75b9
Bump react-focus-lock (#7858)
* react-focus-lock to 2.5.1

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use enzyme in ASSD test so focus lock finds active element

Signed-off-by: Kerry Archibald <kerrya@element.io>

* findById and flushPromises to test utils

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-21 17:09:01 +00:00
Michael Telatynski
38a547b5d0
Remove ResizeObserver Polyfill (#7844) 2022-02-18 13:51:27 +00:00
Michael Telatynski
658590e5bc
More posthog tracking around joining rooms and room search (#7807) 2022-02-17 18:03:27 +00:00
Travis Ralston
aba61fa390 Revert "Support refresh tokens (#7802)"
This reverts commit 839593412c.
2022-02-16 12:32:38 -07:00
Travis Ralston
839593412c
Support refresh tokens (#7802)
MSC: https://github.com/matrix-org/matrix-doc/pull/2918
Fixes https://github.com/vector-im/element-web/issues/18698
Fixes https://github.com/vector-im/element-web/issues/20648
**Requires https://github.com/matrix-org/matrix-js-sdk/pull/2178**

**Note**: There's a lot of logging in this PR. That is intentional to ensure that if/when something goes wrong we can chase the exact code path. It does not log any tokens - just where the code is going. Overall, it should be fairly low volume spam (and can be relaxed at a later date).

----

This approach uses indexeddb (through a mutex library) to manage which tab actually triggers the refresh, preventing issues where multiple tabs try to update the token. If multiple tabs update the token then the server might consider the account hacked and hard logout all the tokens.

If for some reason the timer code gets it wrong, or the user has been offline for too long and the token can't be refreshed, they should be sent to a soft logout screen by the server. This will retain the user's encryption state - they simply need to reauthenticate to get an active access token again.

This additionally contains a change to fix soft logout not working, per the issue links above.

Of interest may be the IPC approach which was ultimately declined in favour of this change instead: https://github.com/matrix-org/matrix-react-sdk/pull/7803
2022-02-15 20:16:49 +00:00
Michael Telatynski
cfa6e266cd
Wire up new fields on the ViewRoom posthog event and more interactions (#7787) 2022-02-14 19:31:13 +00:00
RiotRobot
9b3af6c493 Reset back to develop branch 2022-02-14 15:41:31 +00:00
RiotRobot
0304d3245c Merge branch 'master' into develop 2022-02-14 15:39:33 +00:00
RiotRobot
7558568158 Upgrade matrix-js-sdk to 15.5.1 2022-02-14 15:19:06 +00:00
Michael Telatynski
87ca70edb1
Switch to web-specific screens and $pageview event (#7777) 2022-02-10 14:38:31 +00:00
Michael Telatynski
fd832488f1
Update slash command posthog enum (#7776) 2022-02-10 13:11:10 +00:00
Michael Telatynski
f6565bfbc8
Send how many favorited rooms a user has to Posthog (#7772) 2022-02-10 10:02:34 +00:00
Michael Telatynski
5620b83d34
Wire up more Posthog tracking (#7689) 2022-02-09 14:25:58 +00:00
Michael Telatynski
91ccbe4395
Add way to track posthog user properties and send numSpaces (#7716) 2022-02-09 09:21:56 +00:00
David Baker
df5aa10935
Yarn upgrade (#7750) 2022-02-08 19:17:23 +00:00
RiotRobot
ec571ddd8d Upgrade matrix-js-sdk to 15.5.1-rc.1 2022-02-08 15:37:07 +00:00
J. Ryan Stinnett
7f3f186044
Switch back to upstream Linkify (#7677) 2022-02-04 17:21:03 +00:00
Kerry
292971dd0e
Upgrade to jest 27 (#7699)
* use jest@27.4.0, replace jest-environment-jsdom-sixteen with jest-environment-jsdom

Signed-off-by: Kerry Archibald <kerrya@element.io>

* polyfill setImmediate

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove done from async test cases

* useRealTimers in test relying on promise flushing

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove jest environment file

Signed-off-by: Kerry Archibald <kerrya@element.io>

* replace ts-jest mocked with jest utils mocked

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-02 13:02:17 +01:00
RiotRobot
82f3888cee Reset matrix-js-sdk back to develop branch 2022-02-01 15:52:28 +00:00
Michael Telatynski
8dd0722e04
Update eventName=Screen to $screen to match PostHog's special behaviour (#7667) 2022-02-01 15:49:49 +00:00
David Baker
9ffc141350
Yarn upgrade (#7683) 2022-01-31 16:54:01 +00:00
RiotRobot
8221faad6c Reset matrix-js-sdk back to develop branch 2022-01-31 14:57:25 +00:00
RiotRobot
a25fea9f96 Merge branch 'master' into develop 2022-01-31 14:57:13 +00:00
RiotRobot
e0b041bdca Upgrade matrix-js-sdk to 15.5.0 2022-01-31 14:48:14 +00:00
Kerry
085ecc7f5f
Chat export parameter customisation (#7647)
* use export settings and hide fields

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix exporter tests

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test ExportDialog with settings

Signed-off-by: Kerry Archibald <kerrya@element.io>

* tidy debugs, rename setting to Parameters

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use reasonable 100gb limit

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use normal setting instead of UIFeature

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use a customisation

Signed-off-by: Kerry Archibald <kerrya@element.io>

* move validateNumberInRange to utils

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use nullish coalesce

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use 8gb size limit for customisation

Signed-off-by: Kerry Archibald <kerrya@element.io>

* update comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-31 12:54:14 +01:00
RiotRobot
01d1e0292c Upgrade matrix-js-sdk to 15.5.0-rc.1 2022-01-26 17:01:37 +00:00
J. Ryan Stinnett
51a44f491e
Upgrade linkifyjs to fix schemes as domain prefixes (#7628) 2022-01-25 17:37:54 +00:00
J. Ryan Stinnett
010cbadc8e Tweak lockfile 2022-01-21 15:51:15 +00:00
David Baker
91743c9a1a
Switch to github: URL to be consistent with other deps (#7588)
and resolves to a tarball which can be cached nicely. Also
some other yarn.lock change that yarn seems to be insisting on.

Fixes https://github.com/vector-im/element-web/issues/20628
2022-01-21 09:32:09 +00:00
Travis Ralston
6712a5b1c5
Parse matrix-schemed URIs (#7453)
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: Dariusz Niemczyk <dariuszn@element.io>
Co-authored-by: Timo K <toger5@hotmail.de>

With this pr all href use matrix matrix.to links. As a consequence right-click copy link will always return get you a sharable matrix.to link.
2022-01-20 18:18:47 +01:00
Dariusz Niemczyk
336e1ae3b6
Upgrade linkify to v3.0 (#7282)
Co-authored-by: Timo K <toger5@hotmail.de>
2022-01-18 18:24:16 +01:00
Travis Ralston
65987e6b72
Move all polls processing to events-sdk & prep for stable polls (#7517)
* Move all polls processing to events-sdk

This makes polls support the full range of extensible events (both parsing and generation).

* Appease the linter

* Fix & update tests

* Update events-sdk for polls bugfix

* Update events-sdk for typechecking

* Add missing type cast

* Update per review
2022-01-17 10:06:30 -07:00
RiotRobot
11ca9bd707 Merge branch 'master' into develop 2022-01-17 14:24:39 +00:00
RiotRobot
3c26418b5c Upgrade matrix-js-sdk to 15.4.0 2022-01-17 14:13:57 +00:00
J. Ryan Stinnett
8c7b396bb5 Update yarn.lock 2022-01-14 11:34:15 +00:00
Travis Ralston
61a0be7d46
Render events as extensible events (behind labs) (#7462)
* Render events as extensible events (behind labs)

* Include the SDK

* Appease linter

* Update for changed property name

* Fix formatting error

* Fix branch matching for build steps

* Update SDK

* Update scripts/fetchdep.sh

Co-authored-by: Andy Balaam <andyb@element.io>

Co-authored-by: Andy Balaam <andyb@element.io>
2022-01-13 17:03:37 +00:00
J. Ryan Stinnett
8b01b68fa3
Use published matrix-web-i18n (#7530) 2022-01-13 10:30:09 +00:00
David Baker
bdb40ae9d1
Yarn upgrade (#7515) 2022-01-11 17:17:08 +00:00
RiotRobot
0d84372da2 Upgrade matrix-js-sdk to 15.4.0-rc.1 2022-01-11 15:02:33 +00:00
J. Ryan Stinnett
6199c337ea
Fix spacing errors (#7484) 2022-01-10 12:57:20 +00:00
Kerry
2b9eed5357
update yarn.lock and i18n (#7476)
* add hash to matrix-web-i18n dep, update i18n

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove hash from dep

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-07 10:37:12 +01:00
Kerry
846fbfa2a0
Add jsx-a11y eslint plugin (#7434)
* add matrix-org a11y eslint plgin

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add eslint a11y, enable and fix anchor-has-content rule

Signed-off-by: Kerry Archibald <kerrya@element.io>

* enable and fix jsx-a11y/no-redundant-roles

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove debug

Signed-off-by: Kerry Archibald <kerrya@element.io>

* i18n

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use jsx-a11y via matrix-org-eslint

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-03 18:51:58 +01:00
RiotRobot
2330292c24 Reset back to develop branch 2021-12-20 14:29:05 +00:00
RiotRobot
fa63c939ba Upgrade matrix-js-sdk to 15.3.0 2021-12-20 14:03:15 +00:00
Michael Telatynski
3bf85a05a9
[Release] Pin qrcode to fix e2e verification bug (#7379) 2021-12-15 16:23:18 +00:00
RiotRobot
0fac781f47 Upgrade matrix-js-sdk to 15.3.0-rc.1 2021-12-14 14:42:11 +00:00
Michael Telatynski
132e19beb7
Update typescript-eslint plugin & parser (#7351) 2021-12-13 23:39:45 +00:00
Travis Ralston
0bb7f3d3ee Fix conflict chunk in lockfile 2021-12-13 12:29:09 -07:00
RiotRobot
56dcce6bfc Merge branch 'master' into develop 2021-12-13 15:30:11 +00:00
RiotRobot
72bdd61407 Upgrade matrix-js-sdk to 15.2.1 2021-12-13 15:25:24 +00:00
David Baker
b54a6d570e
update olm to 3.2.8 (#7347) 2021-12-13 14:59:13 +00:00
Michael Telatynski
c96b9413e7
Update Typescript to 4.5 (#7344) 2021-12-13 11:22:53 +00:00
Andy Balaam
c56833816a
Update yarn.lock (#7327) 2021-12-10 11:29:27 +00:00
Travis Ralston
9cc8a6d24a Update eslint 2021-12-09 16:04:45 -07:00
J. Ryan Stinnett
8715316a66 Require matrix-widget-api to be 0.1.0-beta.18 2021-12-06 16:38:44 +00:00
RiotRobot
8b82836499 Reset back to develop branch 2021-12-06 15:34:09 +00:00
RiotRobot
906d32aec8 Upgrade matrix-js-sdk to 15.2.0 2021-12-06 15:19:13 +00:00
James Salter
43f264ccfc
Integrate analytics stubs (#7186)
* Add matrix-analytics-events as a dependency
* Make IEvent look like a stub definition
* Update pageview tracking to track screens, using a hypothetical definition of a screen event
* Remove distinction between pseudo and anon tracking, will need to rework it considering stubs
2021-12-06 21:43:42 +11:00
Matthew Hodgson
1262021417
Simple static location sharing (#7135)
Adds maplibre as a dependency, and behind a labs flag, lets users send and receive [MSC3488](https://github.com/matrix-org/matrix-doc/blob/matthew/location/proposals/3488-location.md) style location shares - with backwards compatibility with old school `m.location` `msgtype` location shares too.

For this to work, you have to define a valid maptile server and API in your config.json's `map_style_url`.
2021-12-06 09:45:12 +00:00
J. Ryan Stinnett
16a58ef2da Upgrade matrix-widget-api to 0.1.0-beta.18 2021-12-02 12:41:21 +00:00
RiotRobot
e2ce332830 Upgrade matrix-js-sdk to 15.2.0-rc.1 2021-11-30 18:20:45 +00:00