Robin
796e12e789
Go to space landing page when clicking on a selected space ( #6442 )
...
* Go to space landing page when clicking on a selected space
Signed-off-by: Robin Townsend <robin@robin.town>
* Go to home landing page when clicking on selected home space
Signed-off-by: Robin Townsend <robin@robin.town>
* Remove metaspace behavior
* Add tests
* Use the dispatcher action enum
* Break up the onClick assignment
2022-05-17 13:22:35 +00:00
Robin
ceda77d7dc
Proactively fix stuck devices in video rooms ( #8587 )
...
* Proactively fix stuck devices in video rooms
* Fix tests
* Explain why we're disabling the lint rule
* Apply code review suggestions
* Back VideoChannelStore's flags by SettingsStore instead of localStorage
2022-05-16 16:54:08 -04:00
James Salter
fcc4d62ede
Fall back to untranslated string rather than showing missing translation error ( #8609 )
2022-05-16 13:28:24 +01:00
Šimon Brandner
fb30b67b14
Fix issues with the new topic dialog ( #8608 )
2022-05-16 14:10:00 +02:00
Kerry
42f12485bc
fix ts issues in Registration-test ( #8579 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-16 08:23:51 +00:00
Michael Telatynski
6453530993
Fix js-sdk types ( #8588 )
2022-05-13 19:13:21 +00:00
Robin
26bc3ab0aa
Tweak video rooms copy ( #8582 )
...
* "Video room" → "New video room"
* "Connect now" → "Join"
* "N people connected" → "N people joined"
* "Connected" → "Joined"
* Fix tests
2022-05-13 12:45:38 +00:00
Michael Telatynski
59b9d1e818
Don't consider threads for breaking continuation until actually created ( #8581 )
...
* Don't consider threads for breaking continuation until they've actually been created
* Update tests
* Make hasThreadSummary null thread safe
* Apply feedback from pr review
2022-05-13 11:59:50 +00:00
Kerry
fbbb9c27ba
Live location share - beacon tooltip in maximised view ( #8572 ) PSF-926
...
* pass optional tooltip prop down through markers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add beaconstatustooltip, handle overflow on beacon status label
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug, fix mouseout
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-13 08:30:53 +00:00
Germain
fdd5494402
Add dialog to navigate long room topics ( #8517 )
2022-05-13 08:55:10 +01:00
Michael Weimann
7ed3089434
Improve tooltip positioning
...
Signed-off-by: Michael Weimann <michaelw@matrix.org>
2022-05-12 14:05:55 +02:00
Šimon Brandner
5348572439
Write tests for message right-click context menu ( #8532 )
2022-05-11 18:39:40 +02:00
Michael Telatynski
00984e4434
Fix effect of URL preview toggle not updating live ( #8561 )
...
* Remove unused state and fix canPeek
* Fix effect of URL preview toggle not updating live
* Remove stale context fields
2022-05-11 15:11:42 +01:00
Suguru Hirahara
464eb93a44
Fix visual bugs on AccessSecretStorageDialog ( #8160 )
...
* Remove duplicate mx_Dialog_buttons
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Group buttons on mx_Dialog with span
- Cancel default styling for elements inside .mx_AccessSecretStorageDialog_primaryContainer
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Move common rules of mx_Dialog_buttons_row to _common.scss
- Set 16px gap between buttons per https://github.com/vector-im/element-web/issues/19426#issuecomment-949778515
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Spacing variables
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Nesting - .mx_AccessSecretStorageDialog_reset
- Fix the reset link color
- Set $spacingStart variable
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Remove unnecessary rule
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-11 12:33:21 +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
Kerry
c67b41fbde
Enable forwarding static locations ( #8553 )
...
* enable forwarding for location events
Signed-off-by: Kerry Archibald <kerrya@element.io>
* allow forwarding of static locations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-10 16:21:20 +00:00
Robin
0b0e414fd4
Fix unresponsive notification toggles ( #8549 )
...
* Return consistently typed setting values from localStorage
* Watch notification toggles
* Test that it all works
2022-05-10 09:13:02 -04:00
Travis Ralston
401e124df6
Merge branch 'develop' into 19245-improve-styling-of-search-initialization-errors
2022-05-09 19:32:43 -06:00
Travis Ralston
548290b006
Run a minor code quality checker over the repo ( #8524 )
...
* Run a minor code quality checker over the repo
Largely targeted at spelling of common words and misc code issues.
* Update snapshots
2022-05-09 22:52:05 +00:00
Kerry
333dd59f06
test typescriptification - RoomList ( #8540 )
...
* test/components/views/rooms/RoomList-test.js -> test/components/views/rooms/RoomList-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-09 13:24:12 +00:00
Kerry
dc346d5e83
test typescriptification - RoomViewStore ( #8539 )
...
* test/stores/RoomViewStore-test.js -> test/stores/RoomViewStore-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tsc issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-09 15:14:45 +02:00
Michael Telatynski
674aec4050
Fix regression around pasting links ( #8537 )
...
* Fix regression around pasting links
* Add tests
2022-05-09 12:39:32 +00:00
Kalle Struik
7c07ad155c
Improve the styling of search initialization errors.
...
Signed-off-by: Kalle Struik <kalle@kallestruik.nl>
2022-05-09 11:20:36 +02:00
Robin
765a715fce
Remove duplicate tooltip from user pills ( #8512 )
...
* Remove duplicate tooltip from user pills
* Fix test
2022-05-06 21:26:32 +00:00
Kerry
e97536ef96
Live location sharing - refresh beacon timers on tab becoming active ( #8515 )
...
* add visibilitychange listener
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* restore event listener mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-06 11:33:09 +02: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
Germain
8080c2cc04
Remove experimental threads disclaimer ( #8445 )
2022-05-06 08:32:33 +00:00
Kerry
2e3185a4bc
test typescriptification - dialogs ( #8497 )
...
* /Users/kerry/code/matrix-react-sdk/test/components/views/dialogs/InteractiveAuthDialog-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/components/views/dialogs/AccessSecretStorageDialog-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in AccessSecretSstorageDialog-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-06 10:25:18 +02:00
Michael Weimann
07542b0c40
Fix inviting users with undisclosed profiles ( #17269 )
...
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Michael Weimann <michaelw@matrix.org>
2022-05-05 18:17:17 +02:00
Šimon Brandner
b12c002602
Order receipts with the most recent on the right ( #8506 )
2022-05-05 12:10:48 +00:00
Germain
3a63c88a11
Order new search dialog results by recency ( #8444 )
...
* Order new search dialog results by recency
* Add getLastTs tests
* Add sort rooms tests
2022-05-05 12:19:11 +01:00
Valere
07d8070037
Add raw error to analytics E2E error event context ( #8447 )
...
* Add raw error to analytics E2E error context
* Fix code style
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-04 21:46:03 -06:00
Robin
658ff4dfe6
Iterate video room designs in labs ( #8499 )
...
* Remove blank header from video room view frame
* Add video room option to space context menu
* Remove duplicate tooltips from face piles
* Factor RoomInfoLine out of SpaceRoomView
* Factor RoomPreviewCard out of SpaceRoomView
* Adapt RoomPreviewCard for video rooms
* "New video room" → "Video room"
* Add comment about unused cases in RoomPreviewCard
* Make widgets in video rooms mutable again to de-risk future upgrades
* Ensure that the video channel exists when mounting VideoRoomView
2022-05-04 17:02:06 -04:00
Michael Telatynski
5cdc8fb3fd
Fix reading of cached room device setting values ( #8491 )
...
* Fix reading of cached room device setting values
* Add tests
2022-05-04 15:54:59 +01:00
Kerry
ce3bc9dc07
test typescriptification - EventListSummary ( #8493 )
...
* test/components/views/elements/EventListSummary-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add user mocks util
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-04 16:37:41 +02:00
Kerry
5cece10552
test typescriptification - Permalinks ( #8481 )
...
* test/utils/permalinks/Permalinks-test.js -> test/utils/permalinks/Permalinks-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in Permalinks
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-04 11:29:13 +02:00
Kerry
3d0045dab5
Test typescriptification - Terms/ScalarAuthClient ( #8480 )
...
* test/Terms-test.js -> test/Terms-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in Terms-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/ScalarAuthClient-test.js -> test/ScalarAuthClient-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ts fixes in ScalarAuthClient-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-03 15:09:07 +00:00
Michael Telatynski
f29ef04751
Fix race conditions around threads ( #8448 )
2022-05-03 14:25:08 +01:00
Kerry
12af3038a8
fix message indent in thread view ( #8462 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-03 13:51:50 +02:00
Kerry
c5633a24fe
Live location sharing: don't group beacon info with room creation summary ( #8468 )
...
* dont group beacon info with room creation summary
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debugs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-03 09:04:47 +00:00
Kerry
3b1e715854
Live location sharing: remove geoUri logs ( #8465 )
...
* remove geoUri logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Update src/components/views/location/Map.tsx
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-03 08:29:43 +00:00
Kerry
f280fab47d
test typescriptification - ForwardDialog ( #8469 )
...
* test/components/views/dialogs/ForwardDialog-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in ForwardDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unused stub-component
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-03 08:22:38 +00:00
Robin
1c70696b10
Don't linkify code blocks ( #7859 )
...
* Don't linkify code blocks
Signed-off-by: Robin Townsend <robin@robin.town>
* Put the linkify ignoreTags option in the right place
Signed-off-by: Robin Townsend <robin@robin.town>
* Add code to list of ignored linkification tags as well
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that code blocks skip linkification
Signed-off-by: Robin Townsend <robin@robin.town>
* Move test to the right spot
Signed-off-by: Robin Townsend <robin@robin.town>
* Use a snapshot instead for test
Signed-off-by: Robin Townsend <robin@robin.town>
2022-05-03 00:26:37 +00:00
Janne Mareike Koschinski
3e31fdb6a7
read receipts: improve tooltips to show names of users ( #8438 )
2022-05-02 11:46:11 +02:00
Kerry
4a04be6d1c
Test typescriptification continued ( #8327 )
...
* test/utils/MegolmExportEncryption-test.js -> test/utils/MegolmExportEncryption-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/utils/ShieldUtils-test.js - test/utils/ShieldUtils-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type fixes for ShieldUtils-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/DecryptionFailureTracker-test.js -> test/DecryptionFailureTracker-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unsupported assertion failure messages
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in DecryptionFailureTracker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add mock restores
Signed-off-by: Kerry Archibald <kerrya@element.io>
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove commented decriptionfailuretracker code and test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make should aggregate error codes correctly pass
Signed-off-by: Kerry Archibald <kerrya@element.io>
* cheaters types in MegolmExportEncryption
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Revert "fix ts issues in DecryptionFailureTracker"
This reverts commit 1ae748cc51088d60722320dbefae04a62310e2e1.
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Revert "remove unsupported assertion failure messages"
This reverts commit 7bd93d075c4d8d45befcbfd59c889782c9a44b48.
* Revert "test/DecryptionFailureTracker-test.js -> test/DecryptionFailureTracker-test.ts"
This reverts commit 1670025bd2af9a355c2761998202f602d61f242e.
* revert change to DecryptionFailureTracker
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-02 07:57:35 +00:00
Šimon Brandner
3a245a0cbe
Fix jump to bottom button being always displayed in non-overflowing timelines ( #8460 )
2022-05-01 19:38:36 -06:00
Emmanuel
d294dad04d
fix timeline search with empty text box should do nothing ( #8262 )
...
* fix timeline search with empty text box should do nothing
* test SearchBar component
* fix lint error
* Update SearchBar-test.tsx
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-05-02 01:09:59 +00:00
Kerry
e233cf5061
Live location sharing: fix safari timestamps pt 2 ( #8443 )
...
* handle safari cocoa core data timestamps
Signed-off-by: Kerry Archibald <kerrya@element.io>
* actually fix safari timestamp issue properly
Signed-off-by: Kerry Archibald <kerrya@element.io>
* actually fix safari timestamp issue properly
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-29 09:12:28 +00:00
Kerry
c4e988f406
increase geolocation timeout options to more realistic values ( #8439 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 15:51:47 +01:00
Kerry
472222c195
LLS: error handling on stopping beacon ( #8406 )
...
* shared stopping error state for timeline, maxi and room warnign
Signed-off-by: Kerry Archibald <kerrya@element.io>
* check for stopping errors in roomlist share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test stopping errors in OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update LeftPanelLiveShareWarning tests for stopping errors
Signed-off-by: Kerry Archibald <kerrya@element.io>
* reinstate try/catch for stopping beacons in create
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unnecessary and buggy beacon stopping on creation
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 12:03:51 +00:00
Kerry
ecd7d8b5e8
Unit test typescriptification - MKeyVerificationConclusion ( #8435 )
...
* test/components/views/messages/MKeyVerificationConclusion-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ts fixes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add missing copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 11:44:04 +00:00
Kerry
699a9aeaaf
LLS: expose way to enable live sharing labs flag from location dialog ( #8416 )
...
* add state for waiting for labs flag
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add enable live share component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test enabling live share labs flag
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 13:37:20 +02:00
Kerry
1127db0514
Unit test typescriptification - TextualBody ( #8433 )
...
* test/components/views/messages/TextualBody-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in textualbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove type-removing context wrapper, fix more
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 09:32:50 +00:00
Michael Telatynski
8baa46b0dd
Fix baseline misalignment of thread panel summary by deduplication ( #8413 )
2022-04-27 18:10:27 +01:00
Michael Telatynski
83ab266533
Fix editing of non-html replies ( #8418 )
2022-04-27 10:43:10 +02:00
Michael Telatynski
a70f11704f
Don't form continuations on either side of a thread root ( #8408 )
2022-04-26 08:30:36 +00:00
James Salter
e3735311ab
Check updated is === the new version in accordance with new behaviour ( #8407 )
2022-04-25 16:52:50 +00:00
Kerry
8c6786bad6
LLS: rename wireError ( #8401 )
...
* rename wireError in ownbeaconstore to locationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename getLiveBeaconIdsWithWireError -> getLiveBeaconIdsWithLocationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename wire error variables in components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* new snapshots for new test names
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix bad capitalisation on onResetLocationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed variable
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-25 12:44:18 +00:00
Robin
6bfe0436e5
Fix infinite loop when pinning/unpinning persistent widgets ( #8396 )
...
Pinning or unpinning a persistent widget, such as Jitsi, could cause the
PiP view and the app drawer to fight for control over the widget, since
the PiP view never realized that it was supposed to relinquish control.
This was due to a race between the WidgetLayoutStore update and the
AppTile lifecycle tracking update.
2022-04-25 08:29:54 -04:00
Robin
2a396a406d
Stick connected video rooms to the top of the room list ( #8353 )
2022-04-22 08:17:31 -04:00
Kerry
988d300258
Live location sharing: only share to beacons created on device ( #8378 )
...
* create live beacons in ownbeaconstore and test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more mocks in RoomLiveShareWarning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extend mocks in components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove another comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extra ? hedge in roommembers change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* listen to destroy and prune local store on stop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update copy pasted copyright to 2022
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-22 12:05:36 +00:00
Kerry
a3a7c60dd7
LLS: Remove beacon info illegal replace relation ( #8390 )
...
* dont apply illegal replace relation to beacon_info event
Signed-off-by: Kerry Archibald <kerrya@element.io>
* only display tiles for beacon infos with live prop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-22 11:38:27 +00:00
Michael Telatynski
bbe0c945d3
Fix regression around haveRendererForEvent for hidden events ( #8379 )
2022-04-21 16:57:08 +00:00
Kerry
399ac618c7
LLS: fix jumpy maximised map ( #8387 )
...
* add maxzoom to map fit bounds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* take snapshot of bounds at center on dialog open
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-21 18:56:11 +02:00
Kerry
73e8387799
test functional EventUtils ( #8386 )
...
* extract poll event test util
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test isContentActionable
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test canEditContent
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test functional eventutils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-21 18:14:10 +02:00
Robin
c83ad1faa7
Add local echo of connected devices in video rooms ( #8368 )
2022-04-21 07:41:38 -04:00
Kerry
f2ec465f87
Live location sharing: own live beacon status on maximised view ( #8374 )
...
* add floating own live sharing eacon status to maximised view
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add tests for own beacon status
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove huge snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unused emits from test
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-21 09:06:57 +02:00
Robin
6e86a14cc9
Show a lobby screen in video rooms ( #8287 )
...
* Show a lobby screen in video rooms
* Add connecting state
* Test VideoRoomView
* Test VideoLobby
* Get the local video stream with useAsyncMemo
* Clean up code review nits
* Explicitly state what !important is overriding
* Use spacing variables
* Wait for video channel messaging
* Update join button copy
* Show frame on both the lobby and widget
* Force dark theme for video lobby
* Wait for the widget to be ready
* Make VideoChannelStore constructor private
* Allow video lobby to shrink
* Add invite button to video room header
* Show connected members on lobby screen
* Make avatars in video lobby clickable
* Increase video channel store timeout
* Fix Jitsi Meet getting wedged on startup in Chrome and Safari
* Revert "Fix Jitsi Meet getting wedged on startup in Chrome and Safari"
This reverts commit 9f77b8c227c1a5bffa5d91b0c48bf3bbc44d4cec.
* Disable device buttons while connecting
* Factor RoomFacePile into a separate file
* Fix i18n lint
* Fix switching video channels while connected
* Properly limit number of connected members in face pile
* Fix CSS lint
2022-04-20 11:03:33 -04:00
Emmanuel
9a065581e5
fix rainbow breaks compound emojis ( #8245 )
...
* fix rainbow breaks compound emojis
* use lodash split method for text splitting and add a unit test to test the behaviour
* Update _RichText.scss
* Update colour-test.ts
2022-04-20 14:49:12 +00:00
Kerry
4a38cbd550
Live location sharing: beacon list view tiles ( #8363 )
...
* add basic sidebar container
Signed-off-by: Kerry Archibald <kerrya@element.io>
* optionally show icon in beaconstatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add avatar and style list item
Signed-off-by: Kerry Archibald <kerrya@element.io>
* formatted last update time
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test beacon list item
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move makeRoomWithState events to test utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move beacon test helpers into utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyable text to beacon list item
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyable geo uri to list item
Signed-off-by: Kerry Archibald <kerrya@element.io>
* improve spacing
Signed-off-by: Kerry Archibald <kerrya@element.io>
* overflow scroll on list
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-20 11:57:50 +00:00
Kerry
e45cd39906
Live location sharing: maximised view sidebar container ( #8360 )
...
* add h4
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add mixin to clear list style
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add basic sidebar container
Signed-off-by: Kerry Archibald <kerrya@element.io>
* open list view button on beaconviewdialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for new utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-20 08:14:24 +00:00
Kerry
70cdd57a5c
Live location sharing: move test utils into utils ( #8365 )
...
* move makeRoomWithState events to test utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move beacon test helpers into utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove file
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more types
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-19 16:47:19 +00:00
Michael Telatynski
f099fdb906
Increase delay to stabilise async tests ( #8357 )
2022-04-19 17:21:31 +01:00
Janne Mareike Koschinski
bca9caa98e
Settings toggle to disable Composer Markdown ( #8358 )
2022-04-19 14:53:59 +01:00
Kerry
68c5a55eed
use fake timers and restore mocks in MatrixClientPeg test ( #8356 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-19 14:44:15 +02:00
Kerry
f70186ea9b
Live location sharing: set map bounds to include all locations ( #8324 )
...
* open a dialog with map centered around first beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test dialog opening from beacon body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test beaconmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add bounds to Map comp
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add focusBeacon to beaconviewdialog, use bounds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use membercolor on beacon view markers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add lnglatbounds to maplibre mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update snapshots for expanded maplibre Map mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test map bounds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy copy paste comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add fallback when no more live locations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* accurate signature for getBoundsCenter
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-19 11:35:39 +00:00
Yaya Usman
6b13988eaa
Fix: "Code formatting button does not escape backticks" ( #8181 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-04-19 09:20:56 +00:00
Kerry
4fb9cd6550
calculate geo bounds ( #8321 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-19 08:46:57 +02:00
Robin
7335b35fbb
Avoid looking up settings during timeline rendering ( #8313 )
...
* Avoid showHiddenEventsInTimeline lookups
* Avoid MSC3531 feature lookups
* Test that showHiddenEventsInTimeline doesn't get looked up while
rendering
* Fix code review nits
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-04-14 23:23:22 +00:00
commonlawfeature
08a2d81d6b
Resolve emoji autocomplete not being temporally consistent ( #8086 )
...
* Adds a test to demonstrate the issue with emoji autocomplete reported in https://github.com/vector-im/element-web/issues/19302 .
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Trim trailing `:` when checking for autocompletes for emoji.
Closes https://github.com/vector-im/element-web/issues/19302
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Move all references to the emoji delimiter character to reference a constant.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Revert "Move all references to the emoji delimiter character to reference a constant."
This reverts commit ac09e71e4c6151e35d21f612c9b329ead2a381f1.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Rename variable.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Make the test file a .js file.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Update quotes to match style and make a valid stubbed room.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Fix variable name and test reporting.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Use str.replace with a regex.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Use an improved regex that does not have have to iterate through the entire string, and can just backtrack at most the last 2 characters.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
* Revert "Use an improved regex that does not have have to iterate through the
entire string, and can just backtrack at most the last 2 characters."
This regex is very efficient, but requires a specific form of the emoji
shortcode that it is not clear is within our control. This is a restriction
that is not required by the technicalities of solving the bug this PR is
attempting to fix. (It requires that an emoji shortcode end with a colon.)
This reverts commit 220cb0efb8de247158c11daf9170464a57cc3af2.
Signed-off-by: Ryan Browne <code@commonlawfeature.com>
Co-authored-by: Ryan Browne <code@commonlawfeature.com>
2022-04-14 20:31:50 +00:00
Kerry
f95106d2c6
Live location sharing - basic maximised beacon map ( #8310 )
...
* open a dialog with map centered around first beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add room member markers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix unmount issue in smart marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* dont throw on no more live locations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* cursor on beacon maps
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fussy import ordering
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test dialog opening from beacon body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test beaconmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test BeaconViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use unstable prefix for wk tile_Server
Signed-off-by: Kerry Archibald <kerrya@element.io>
* unstable prefix for new m.tile_server use in test
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-14 13:14:05 +00:00
Kerry
1c215e2b71
Live location sharing - render users own beacons in timeline ( #8296 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* wrap marker in smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working map in location body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new ZoomButtons in MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test LocationViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update commentt
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract livetimeremaining into own component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract more beacon state utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for roomlivesharewarning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add beacon map and status chin
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add handling for bubbles
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tests for BeaconBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move displaystatus check up to mbeaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename BeaconStatusChin -> BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make BeaconStatus generic
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* adjust spinner size
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add static time remaining option to beacon status
Signed-off-by: Kerry Archibald <kerrya@element.io>
* render time differently for own beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use children to add actions to BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add OwnBeaconStatus wrapper with stop button
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add error states for own beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test OwnBeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move ownbeaconstatus to write dir
Signed-off-by: Kerry Archibald <kerrya@element.io>
* improve button styling
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-14 14:41:28 +02: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
CommanderRoot
c35fc169f5
Replace deprecated String#substr with String#slice ( #8314 )
2022-04-14 07:52:42 +00:00
Michael Telatynski
0e68c16a90
Introduce small delay to let redaction propagate for tests ( #8311 )
2022-04-13 19:39:30 +01:00
Hugh Nimmo-Smith
26b771bbf9
Don't show the prompt to enable desktop notifications immediately after registration ( #8274 )
...
* Fix MatrixClientPeg.userRegisteredWithinLastHours so that it works
* Try fixing end-to-end test + add case for New search beta
* Remove end-to-end test case for Search beta toast as it only shows up after 5 minutes
* Revert to localStorage based solution + non-inverted logic + test including time advancement
2022-04-13 19:05:08 +01:00
Kerry
e59edb7101
Live location sharing - beacon in timeline happy path ( #8285 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* wrap marker in smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working map in location body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new ZoomButtons in MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test LocationViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update commentt
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract livetimeremaining into own component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract more beacon state utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for roomlivesharewarning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add idle status to live beacon icon
* add beacon map and status chin
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add handling for bubbles
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tests for BeaconBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move displaystatus check up to mbeaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename BeaconStatusChin -> BeaconStatus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make BeaconStatus generic
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* adjust spinner size
Signed-off-by: Kerry Archibald <kerrya@element.io>
* polish and copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* better comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-13 10:44:15 +02:00
Michael Telatynski
82981e4161
End to end tests for threads ( #8267 )
2022-04-12 17:46:08 -06:00
Michael Telatynski
8cd715c6a3
Prevent soft crash around room list header context menu when space changes ( #8289 )
2022-04-12 14:23:04 +00:00
Kerry
661e2c2aa5
Live location sharing - beacon map in timeline ( #8286 )
...
* add displaystatus util
Signed-off-by: Kerry Archibald <kerrya@element.io>
* map fallback svg
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add Map to mbeaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add bubble layout handling
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test beaconbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typo
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use randomString from js-sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-12 09:13:55 +01:00
Kerry
4b7840bf78
Live location sharing - extract live time UI for reuse ( #8283 )
...
* extract livetimeremaining into own component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract LiveTimeRemaining for reuse in beacon timeline
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-12 09:24:17 +02:00
Kerry
9ba55d1d14
Live location sharing - consolidate maps ( #8236 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* wrap marker in smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working map in location body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test Map
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update snaps with new mocks
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new ZoomButtons in MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make LocationViewDialog map interactive
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test LocationViewDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyrights, shrink snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 18:40:06 +02:00
Kerry
b760ec9392
Location sharing - extract isSelfLocation util ( #8279 )
...
* extract isSelfLocation into utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace use of isSelfLocation
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 13:58:35 +02:00
Kerry
aecd71ad15
Live location sharing - update beacon tile with latest location ( #8265 )
...
* add useBeacon hook
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update message tile types to work with function comp with ref
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use beacon hook in beacon body
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update beacon body with (textual) latest locations, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* language in comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 09:16:32 +00:00
Robin Kouwenhoven
7ba991cd8c
Fix export of redacted polls ( #8118 )
...
* Move RequiresClient from MatrixCapabilities to ElementWidgetCapabilities
Signed-off-by: Robin Kouwenhoven <r.kouwenhoven@outlook.com>
* Fix export of redacted polls
* Fix ESLint error
* Add test cases for poll events
* Add test cases for message events
* Fix lint errors
* Fix i18n error
* Revert "Move RequiresClient from MatrixCapabilities to ElementWidgetCapabilities"
This reverts commit 920f80a2d4385656925987ccc9d37420255405c1.
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Kerry <kerrya@element.io>
2022-04-11 11:10:16 +02:00
Kerry
94385169f1
Live location sharing - smart location marker ( #8232 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* wrap marker in smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test smartmarker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned-sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* better types for LocationBodyContent
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 10:29:24 +02:00
Kerry
df20821fd6
Live location sharing - extract zoom buttons into component ( #8235 )
...
* extract out zoombuttons component
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 10:29:07 +02:00
Kerry
44d446be89
Live location sharing - set replaces relation when stopping beacon ( #8266 )
...
* set replaces relation on stopping beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for stopBeacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-11 10:28:43 +02: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
03d0969ae3
Live location sharing - update beacon_info implementation to latest MSC ( #8256 )
...
* update calls to set and createLiveBeacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix stop beacon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove variable event type from beacon utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use beacon identifier
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix RoomLiveShareWarning tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add case for beacon update
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-08 10:53:06 +02:00
Robin
5fbb25c707
Make Jitsi widgets in video rooms immutable ( #8244 )
...
* Make Jitsi widgets in video rooms immutable
* Test video room creation
2022-04-07 07:34:07 -04:00
Kerry
b98739056e
Live location sharing - extract location markers into generic Marker ( #8225 )
...
* extract location markers into generic Marker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove skinned
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-06 12:40:39 +01:00
Kerry
b9da2255c4
Unit test typescriptification - editor utils ( #8226 )
...
* editor/mock ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/serialize-test.js -> test/editor/serialize-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts in serialize-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/range-test.js -> test/editor/range-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/position-test.js -> test/editor/position-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix position-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/operations-test.js -> test/editor/operations-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/model-test.js -> test/editor/model-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts in model-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/history-test.js -> test/editor/history-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts in history-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/diff-test.js -> test/editor/diff-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/deserialize-test.js -> test/editor/deserialize-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ts in deserialize-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/editor/caret-test.js -> test/editor/caret-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ts caret-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-06 12:40:13 +01:00
Travis Ralston
0280c27bfd
post-merge fixes
2022-04-05 10:57:16 -06:00
Travis Ralston
4057833036
Merge branch 'develop' into travis/remove-skinning
2022-04-05 10:50:37 -06:00
Robin
371ccd7858
Don't use m.call for Jitsi video rooms ( #8223 )
2022-04-04 10:29:40 -04:00
Robin
1f64835fab
Update video rooms to new design specs ( #8207 )
...
* Remove radio component
* "Voice room" → "video room"
* Remove interactivity from video room tiles
* Update connection state when joining via widget
* Simplify room header buttons for video rooms
* Split out video room creation into a separate menu option
* Simplify room options for video rooms
* Update video room tile layout
* Tell the Jitsi widget whether it's a video channel
* Update tests
* "Voice" → "video" in more places
* Fix tests
* Re-add frame to immersive Jitsi widgets
* Comment ack
* Make updateDevices more readable
* Type FacePile
2022-04-01 14:36:10 +00:00
Kerry
b8040a5739
Typescriptification - notification utils ( #8209 )
...
* rename ContentRules to ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* prvstest to ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* QueryMatcher-test to ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* UserActivity-test to ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-01 08:45:50 +02:00
Travis Ralston
5137fcf3e8
Remove unit test function which isn't needed
...
The import ordering no longer requires us to create an injector function.
2022-03-31 19:43:17 -06:00
Travis Ralston
97efdf7094
Merge branch 'develop' into travis/remove-skinning
2022-03-31 19:25:43 -06:00
Kerry
4922e19b5a
Live Location Sharing - left panel warning with error ( #8201 )
...
* add error style to left panel beacon warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add beacon sort util
* link to latest beacon room from left panel warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-31 13:51:44 +02:00
Kerry
1175226bcb
Live location sharing - display wire error in room ( #8198 )
...
* expose wire errors in more useful way
* add wire error state to room live share warning bar
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add types to getLabel helper
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-31 10:57:12 +02:00
Kerry
d09205122d
Live location sharing - Stop publishing location to beacons with consecutive errors ( #8194 )
...
* add error state after consecutive errors
Signed-off-by: Kerry Archibald <kerrya@element.io>
* polish
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-30 14:01:44 +00:00
Kerry
e721c6b0c2
Live location sharing: allow retry when stop sharing fails ( #8193 )
...
* allow retry when stop sharing fails
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-30 12:31:19 +00:00
Michael Telatynski
4d14128d94
Fix ts in tests for build ( #8189 )
2022-03-30 09:12:43 +01:00
Travis Ralston
5fa2ca83ac
Allow voice messages to be scrubbed in the timeline ( #8079 )
...
* Use SeekBar for voice messages + move seeking logic to base class
* Appease the linter
* Update tests
2022-03-29 14:07:35 -06:00
Kerry
2adc972eec
Live location sharing - stop sharing to beacons in rooms you left ( #8187 )
...
* remove beacons on membership changes
* add addMembershipToMockedRoom test util
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test remove beacons on membership changes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* removelistener
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-29 18:18:34 +02:00
Michael Telatynski
e161f0b17b
Update more strings to not wrongly mention room when it is/could be a space ( #7722 )
2022-03-29 15:02:12 +01:00
Travis Ralston
ea6e6429ee
Step 11: Update i18n & code cleanup
2022-03-28 15:04:36 -06:00
Travis Ralston
661b8d595c
Step 8.7: Introduce focus-visible
import where needed to repair tests
...
There is an import in `MatrixChat` which no longer gets executed when we don't skin the entire app, so bring it in manually.
2022-03-28 14:02:31 -06:00
Travis Ralston
b2b818a780
Step 8.6: Fix TS issues introduced by using imports
2022-03-28 14:02:31 -06:00
Travis Ralston
4144d0ba57
Step 8.5: Isolate RightPanelStore from RoomViewStore
2022-03-28 14:02:31 -06:00
Travis Ralston
888d470c56
Step 8.5: Move various room utilities out of createRoom
2022-03-28 14:02:31 -06:00
Travis Ralston
1c8ac2c2e5
Step 8.5: Move leave behaviour
2022-03-28 14:02:31 -06:00
Travis Ralston
d5ed1eb66e
Step 8.3: Convert RoomViewStore
to a more modern singleton for imports
2022-03-28 14:02:31 -06:00
Travis Ralston
8d2dba4102
Step 8.2: Fix wiring of jest test setup to avoid import cycle issues
2022-03-28 14:02:31 -06:00
Travis Ralston
a987ead7d2
Step 8.1: Remove skinning setup from all tests
2022-03-28 14:02:31 -06:00
Travis Ralston
7e21da0c7f
Step 4: Disable/remove bulk of skinner code
2022-03-28 14:02:31 -06:00
Travis Ralston
d977865b8e
Step 3.1.1: Remove tests that are infeasible to convert
2022-03-28 14:02:31 -06:00
Travis Ralston
26dc2ba45e
Step 3.1: Stop using getComponent
in tests
2022-03-28 14:02:31 -06:00
Travis Ralston
15b84bd9a6
Step 2: Remove the decorator
2022-03-28 14:02:31 -06:00
Kerry
d2b97e251e
Live location sharing - handle geolocation errors ( #8179 )
...
* display live share warning only when geolocation is happening
Signed-off-by: Kerry Archibald <kerrya@element.io>
* kill beacons when geolocation is unavailable or permissions denied
Signed-off-by: Kerry Archibald <kerrya@element.io>
* polish and comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-28 18:46:39 +02:00
Robin
8baf06c3ff
Show voice room participants when not connected ( #8136 )
...
* Add utility for getting connected voice participants
* Allow voice room members to send connected device state
* Update connected devices when connecting/disconnecting voice
* Show voice room participants in room tile when not connected
* Update voice room tests
* Add null types and guards
2022-03-28 14:12:09 +01:00
Kerry
e9b2aea97b
Live location sharing - send geolocation beacon events - happy path ( #8127 )
...
* geolocation utilities
Signed-off-by: Kerry Archibald <kerrya@element.io>
* messy send events
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add geolocation services
Signed-off-by: Kerry Archibald <kerrya@element.io>
* geolocation tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* debounce with backup emit every 30s
Signed-off-by: Kerry Archibald <kerrya@element.io>
* import reorder
Signed-off-by: Kerry Archibald <kerrya@element.io>
* some more working tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* complicated timeout testing
Signed-off-by: Kerry Archibald <kerrya@element.io>
* publish first location immediately
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move advanceDateAndTime to utils, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typos
Signed-off-by: Kerry Archibald <kerrya@element.io>
* types and lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-28 10:48:38 +00:00
Michael Telatynski
a3e5231873
Add support for Animated (A)PNG ( #8158 )
2022-03-28 09:38:54 +01:00
Robin
1e060fed84
Don't form continuations from thread roots ( #8166 )
...
* Don't form continuations from thread roots
* Only apply the continuation break in the main timeline
2022-03-26 18:06:25 -04:00
Travis Ralston
6c69f3e3b6
Fix end-to-end tests for recent Synapse features ( #8159 )
...
* Ensure a useful logfile gets recorded for synapse startup failures
* Update synapse config to stop complaining about key servers
* Add flag to turn on registrations again
From https://github.com/matrix-org/synapse/pull/12091
2022-03-25 19:45:52 +00:00
Kerry
61231ee321
Unit test settings controllers pt 1 ( #8155 )
...
* test FontSizeController
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test IncompatibleController
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test SystemFontController
* test ThemeController
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test UseSystemFontController
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix themecontroller
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-25 16:50:17 +00:00
Robin
3160442b8b
Floor media dimensions to prevent blurhash errors ( #8157 )
2022-03-25 16:40:49 +00:00
Michael Telatynski
bc01efa124
Improve handling of animated GIF and WEBP images ( #8153 )
2022-03-25 16:31:40 +00:00
Travis Ralston
596c207e5b
Remove unused step from e2e test docs for Windows ( #8148 )
2022-03-25 09:13:20 -06:00
Kerry
1397652f52
Extract location utils from components ( #8152 )
...
* extract util functions from MLocationBody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* disassemble mlocationbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy and add copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move types and utils from components/location to utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* empty line
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-25 15:36:22 +01:00
Kerry
0d513b3a2d
geo.getCurrentPosition and some testing helpers ( #8150 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-25 12:30:50 +01:00
Michael Telatynski
3b523677fd
Don't try (and fail) to show replies for redacted events ( #8141 )
2022-03-24 12:17:42 +00:00
Robin
3317b60437
Improve typing around wrapInMatrixClientContext ( #8130 )
2022-03-23 18:13:40 -04:00
Kerry
1495c23a14
Live location sharing: geolocation utilities ( #8126 )
...
* geolocation utilities
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments for ts-ignores
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-23 17:08:56 +00:00
Kerry
a8d65ab5c5
Include /test in tsc config, fix rest of issues ( #8119 )
...
* fix ts issue in PosthogAnalytics test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix remaining ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tsconfig change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use sdkconfig patch instead of put
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-23 10:27:28 +00:00
Kerry
752ad6a9f9
Live location sharing - refresh beacon expiry in room ( #8116 )
...
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace references to beaconInfoId with beacon.identifier
Signed-off-by: Kerry Archibald <kerrya@element.io>
* icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* component for styled live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* emit liveness change whenever livebeaconIds changes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Handle multiple live beacons in room share warning, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* un xdescribe beaconstore tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* refresh beacon time remaining
Signed-off-by: Kerry Archibald <kerrya@element.io>
* kill timeout
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use useInterval
Signed-off-by: Kerry Archibald <kerrya@element.io>
* beacon not optional in useMsRemaining
Signed-off-by: Kerry Archibald <kerrya@element.io>
* just use single "you are sharing" message
Signed-off-by: Kerry Archibald <kerrya@element.io>
* trigger
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n again
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-23 11:12:58 +01:00
Travis Ralston
fce36ec826
Delete groups (legacy communities system) ( #8027 )
...
* Remove deprecated feature_communities_v2_prototypes
* Update _components
* i18n
* delint
* Cut out a bit more dead code
* Carve into legacy components
* Carve into mostly the room list code
* Carve into instances of "groupId"
* Carve out more of what comes up with "groups"
* Carve out some settings
* ignore related groups state
* Remove instances of spacesEnabled
* Fix some obvious issues
* Remove now-unused css
* Fix variable naming for legacy components
* Update i18n
* Misc cleanup from manual review
* Update snapshot for changed flag
* Appease linters
* rethemedex
* Remove now-unused AddressPickerDialog
* Make ConfirmUserActionDialog's member a required prop
* Remove useless override from RightPanelStore
* Remove extraneous CSS
* Update i18n
* Demo: "Communities are now Spaces" landing page
* Restore linkify for group IDs
* Demo: Dialog on click for communities->spaces notice
* i18n for demos
* i18n post-merge
* Update copy
* Appease the linter
* Post-merge cleanup
* Re-add spaces_learn_more_url to the new SdkConfig place
* Round 1 of post-merge fixes
* i18n
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-22 23:07:37 +00:00
Travis Ralston
03c80707c9
Fix tests for type changes
...
This is a conflict between https://github.com/matrix-org/matrix-react-sdk/pull/8104 and https://github.com/matrix-org/matrix-react-sdk/pull/8084
2022-03-22 16:45:21 -06:00
Robin
953e3148d1
Make video sizing consistent with images ( #8102 )
...
* Make video sizing consistent with images
* Test suggestedSize
* Constrain width of media in large mode
2022-03-22 18:16:03 -04:00
Šimon Brandner
bff1ef31d6
Use styled mxids in member list v2 ( #8110 )
...
* Revert "Revert "Use styled mxids in member list (#6328 )" (#8107 )"
This reverts commit 709e6e78d2
.
* Fix disambiguated profile for bubbles
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-03-22 16:14:55 -06:00
Robin
cfabcdda35
Voice rooms prototype ( #8084 )
...
* Add voice room labs flag
Signed-off-by: Robin Townsend <robin@robin.town>
* Add more widget actions for interacting with Jitsi
Signed-off-by: Robin Townsend <robin@robin.town>
* Factor out a more generic Jitsi creation utility
Signed-off-by: Robin Townsend <robin@robin.town>
* Add utilities for managing voice channels
Signed-off-by: Robin Townsend <robin@robin.town>
* Enable creation of voice rooms
Signed-off-by: Robin Townsend <robin@robin.town>
* Force a maximized view of voice channel widgets
Signed-off-by: Robin Townsend <robin@robin.town>
* Add voice channel store
Signed-off-by: Robin Townsend <robin@robin.town>
* Factor out a more generic FacePile
Signed-off-by: Robin Townsend <robin@robin.town>
* Implement room tile changes for voice rooms
Signed-off-by: Robin Townsend <robin@robin.town>
* Add interactive radio component to the left panel
Signed-off-by: Robin Townsend <robin@robin.town>
* Test voice rooms
Signed-off-by: Robin Townsend <robin@robin.town>
* Update name of call room type
Signed-off-by: Robin Townsend <robin@robin.town>
* Clarify that voice rooms are under development
Signed-off-by: Robin Townsend <robin@robin.town>
* Use readonly
Signed-off-by: Robin Townsend <robin@robin.town>
* Move acks to the end of handlers
Signed-off-by: Robin Townsend <robin@robin.town>
* Add comment about avatar URLs coming from Jitsi
Signed-off-by: Robin Townsend <robin@robin.town>
* Don't use unicode ellipses
for translation reasons?
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix tests
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix tests, again
Signed-off-by: Robin Townsend <robin@robin.town>
* Remove unnecessary export
Signed-off-by: Robin Townsend <robin@robin.town>
* Ack Jitsi events when we wait for them
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-22 16:14:11 -06:00
Kerry
b04d31b5be
Live location sharing: live share warning in room ( #8100 )
...
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace references to beaconInfoId with beacon.identifier
Signed-off-by: Kerry Archibald <kerrya@element.io>
* icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* component for styled live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* emit liveness change whenever livebeaconIds changes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Handle multiple live beacons in room share warning, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* un xdescribe beaconstore tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-22 13:57:12 +00:00
Kerry
a80e55d38d
add helpers for beacon duration calculations ( #8101 )
...
* add helpers for beacon duration calculations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* makeBeaconInfoEvent timestsamp prop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ad copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-22 10:46:47 +00:00
Kerry
abc225d3c6
Unit test tsc fixes part 15 ( #8104 )
...
* fix ts issues in MPollBody test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in PollCreateDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix settings components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix DateSeparator
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix loosies
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-22 11:32:35 +01:00
Travis Ralston
709e6e78d2
Revert "Use styled mxids in member list ( #6328 )" ( #8107 )
...
This reverts commit 5d28e0533d
.
2022-03-21 19:58:38 -06:00
Šimon Brandner
5d28e0533d
Use styled mxids in member list ( #6328 )
...
* Add DisambiguatedProfile
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Give DisambiguatedProfile some nice options
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Delint
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use DisambiguatedProfile in member tile
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Basic handling of text overflow
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use name instead of rawDisplayName
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* This seems to make more sense
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Reodred
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* rethemedex
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix import
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix color
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Appease the linter
* Re-apply UserIdentifier patch
Co-authored-by: Matthew Hodgson <matthew@matrix.org>
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-03-22 01:08:43 +00:00
Travis Ralston
e55136cede
Revert "Pin end-to-end test Python dependencies" ( #8106 )
...
* Revert "Fix end-to-end tests (synapse setup) (#7420 )"
This reverts commit b90a0c443d
.
* Re-apply the modernized pip install approach
* setuptools2
2022-03-21 22:30:36 +00:00
Robin
666cab954a
Fix emoting with emoji or pills ( #8105 )
...
* Fix emoting with emoji or pills
* Fix some slash command errors not being shown
* Re-enable mistakenly skipped SendMessageComposer tests
* Test emoting with non-text parts
2022-03-21 19:09:43 +00:00
Kerry
14653d1378
Live location share - set time limit ( #8082 )
...
* add mocking helpers for platform peg
Signed-off-by: Kerry Archibald <kerrya@element.io>
* basic working live duration dropdown
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add duration format utility
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* adjust style to allow overflow and variable height chin
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* arrow fn change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-21 12:42:58 +01:00
Šimon Brandner
8418b4fd71
Move KeyboardShortcut
styling into a separate file ( #8067 )
2022-03-21 11:41:32 +00:00
Matthew Hodgson
b8b5dd82aa
Triple the speed of E2E tests and stop them exploding if a circular datastructure is logged ( #8095 )
...
* stop e2e tests exploding if a circular datastructure is logged
it's valid for the webapp to log datastructures to the console which happen to be circular
but the e2e test running explodes badly with a runtime exception and bombs out before
logging anything or providing a sensible stacktrace. you can trap the exception though and
get a sensible error however.
* don't barf on circular refs in return vals either
and log timestamps
* log timestamps
* speed up roomDir & E2EE tests by 3x
use timeouts correctly, so the first set
of scenarios take 42s to run rather than 2m21s
* speed up space test by 20s
2022-03-21 10:26:26 +00:00
Kerry
026ca1ab64
Fix tsc issues in right_panel and room component tests ( #8078 )
...
* fix ts issues in SendMessageComposer-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove empty file
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tsc issues in MessageComposerbUttons-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix the rest
Signed-off-by: Kerry Archibald <kerrya@element.io>
* bad autoformatter
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tsc fixes for test/components/views/right_panel
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-21 10:03:03 +01:00
Travis Ralston
d8a939df5d
Use & enforce snake_case naming convention on config.json settings ( #8062 )
...
* Document and support the established naming convention for config opts
This change:
* Rename `ConfigOptions` to `IConfigOptions` to match code convention/style, plus move it to a dedicated file
* Update comments and surrounding documentation
* Define every single documented option (from element-web's config.md)
* Enable a linter to enforce the convention
* Invent a translation layer for a different change to use
* No attempt to fix build errors from doing this (at this stage)
* Add demo of lint rule in action
* Fix all obvious instances of SdkConfig case conflicts
* Fix tests to use SdkConfig directly
* Add docs to make unset() calling safer
* Appease the linter
* Update documentation to match snake_case_config
* Fix more instances of square brackets off SdkConfig
2022-03-18 10:12:36 -06:00
Kerry
ab934a2a08
kill beacons on expiry ( #8075 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-18 14:38:41 +01:00
Germain
12d26555af
Move timeline set creation logic to the JS SDK ( #8070 )
2022-03-18 11:59:03 +00:00
Kerry
da097d42ef
fix ts issues in SendMessageComposer-test ( #8077 )
...
* fix ts issues in SendMessageComposer-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove empty file
Signed-off-by: Kerry Archibald <kerrya@element.io>
* better event type for m.room.message
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-18 10:07:33 +00:00
Kerry
cdcf6d0fd1
Live location sharing: create beacon info event from location picker ( #8072 )
...
* create beacon info event with defaulted duration
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add shareLiveLocation fn
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test share live location
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-18 10:52:24 +01:00
Germain
4e4ce65f58
Use redaction enum event type rather than hardcoded string ( #8071 )
2022-03-17 18:38:29 +01:00
Kerry
176e49e312
enable geolocation behaviour in location picker for live share type ( #8068 )
...
* enable geolocation behaviour in location picker for live share type
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add empty lines
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-17 09:26:47 +01:00
Kerry
9f6c238827
Add simple live share warning ( #8066 )
...
* add simple live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rough first cut of OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working (?) has live beacons status
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add left panel share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup for tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test ownbeaconstore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove warning banner
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tests for weird asyncstore closure issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix OwnBeaconStore more...
Signed-off-by: Kerry Archibald <kerrya@element.io>
* revert loose change to LeftPanel
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Revert "remove warning banner"
This reverts commit 4529813b12e3206731f18e0514aa6e0f6896d03a.
* test live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-17 09:25:57 +01:00
Kerry
bb6ae3fdbc
Live beacons: track users live beacons ( #8061 )
...
* add simple live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rough first cut of OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* working (?) has live beacons status
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add left panel share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* setup for tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test ownbeaconstore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove warning banner
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tests for weird asyncstore closure issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix OwnBeaconStore more...
Signed-off-by: Kerry Archibald <kerrya@element.io>
* revert loose change to LeftPanel
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-16 17:35:09 +01:00
Kerry
e677901eaf
Add test utils for Beacons ( #8064 )
...
* copy beacon event test utils from js-sdk
Signed-off-by: Kerry Archibald <kerrya@element.io>
* mock with event emitter test util
* set return type getMockClientWithEventEmitter
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* pr improvements
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-16 13:11:06 +00:00
Alexander Stephan
26e6f8deca
Improve formatting features in the editor ( #7104 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-16 09:46:07 +00:00
Andy Balaam
cbf5fbf870
Enable the live location share button ( #8056 )
2022-03-16 09:37:09 +00:00
Andy Balaam
e1fdff46f5
Show "Share my location" button ( #8054 )
2022-03-15 15:04:52 +00:00
Germain
2acc8fd18b
Implement is_falling_back in accordance to MSC3440 ( #8055 )
2022-03-15 13:52:37 +00:00
Robin
744eeb53fe
Don't assume that widget IDs are unique ( #8052 )
...
* Don't assume that widget IDs are unique
Signed-off-by: Robin Townsend <robin@robin.town>
* Don't remove live tiles that don't exist
Signed-off-by: Robin Townsend <robin@robin.town>
* Add unit test for AppTile's live tile tracking
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-15 12:15:26 +00:00
Kerry
bc8fdac491
fix more type issues in unit tests ( #8053 )
...
* fix ts issues in test/components/structures
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in test/components/views/context_menus
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-15 10:30:48 +01:00
Šimon Brandner
8d13e238b9
Keybinding code unification #6 ( #8042 )
2022-03-14 13:25:51 +00:00
Travis Ralston
4a36f9b470
Fix logging in end-to-end tests ( #8028 )
...
* Nullcheck the argument being stringified
* Improve null handling of responses in requestfinished
Apparently puppeteer can race on this
2022-03-11 10:00:22 -07:00
Kerry
df6c53ff41
include /test/stores in tsconfig ( #8026 )
...
* fix space store emits
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix spacestore-test imports
* fix export-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* include test/utils to tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix types in SpaceStore-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in rest of test/stores
Signed-off-by: Kerry Archibald <kerrya@element.io>
* include test/stores in tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-11 17:03:33 +01:00
Germain
21d3cb08a9
Switch to using stable values for threads ( #8019 )
2022-03-11 09:04:22 +00:00
Kerry
d38a1fa201
fallback to event text in location body when map unavailable ( #7982 )
...
* center icon better
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
* retrigger all builds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* set assetType on share event
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use pin marker on map for pin drop share
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test events
Signed-off-by: Kerry Archibald <kerrya@element.io>
* pin drop helper text
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use generic location type
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add navigationcontrol when in pin mode
Signed-off-by: Kerry Archibald <kerrya@element.io>
* allow pin drop without location permissions
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove geolocate control when pin dropping without geo perms
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test locationpicker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test marker type, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move findMapStyleUrl
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fallback to event content when cant render map
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update mocks in location picker, show same messages as timeline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* style error message in location share menu
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update style
Signed-off-by: Kerry Archibald <kerrya@element.io>
* icon bigger
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-11 09:52:57 +01:00
Kerry
9082e07ff4
include test/utils in tsconfig ( #8024 )
...
* fix export-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* include test/utils to tsconfig
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-10 18:15:31 +00:00
Robin
3608fdb2ae
Paginate responses to pinned polls ( #8025 )
...
* Paginate responses to pinned polls
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that pinned polls display paginated responses
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-10 18:14:34 +00:00
Kerry
e96d9157a9
update location event types ( #8022 )
...
* update types
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* trigger
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-10 18:03:31 +00:00
Kerry
14684c6296
Send pin drop location share events ( #7967 )
...
* center icon better
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
* retrigger all builds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* set assetType on share event
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use pin marker on map for pin drop share
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test events
Signed-off-by: Kerry Archibald <kerrya@element.io>
* pin drop helper text
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use generic location type
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add navigationcontrol when in pin mode
Signed-off-by: Kerry Archibald <kerrya@element.io>
* allow pin drop without location permissions
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove geolocate control when pin dropping without geo perms
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test locationpicker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test marker type, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tweak style
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-09 18:14:07 +01:00
Kerry
2ab8b46ba3
include test/test-utils in tsconfig ( #8000 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type wait for update
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add tests/test-utils to tsconfig
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix wrapper type
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-09 14:23:58 +01:00
Robin
c10ac9e4a0
Fix a variety of issues with HTML → Markdown conversion ( #8004 )
...
* Fix a variety of issues with HTML → Markdown conversion
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix lint
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix @room pill formatting not being applied to link text
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-09 07:43:05 -05:00
Michael Telatynski
782ce016d1
Wrap EventTile rather than its children in an error boundary ( #7945 )
2022-03-09 11:22:36 +00:00
Robin
1f4e286db9
Fix formatting not being applied after links ( #7990 )
2022-03-08 13:12:36 +00:00
Robin
77ed1e3ef8
More pinned messages tests ( #7988 )
...
* Test basic pinned message functionality
Signed-off-by: Robin Townsend <robin@robin.town>
* Test pinned polls
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix test
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-04 18:15:03 -05:00
Travis Ralston
b981a96b29
Add unexposed account setting for hiding poll creation ( #7972 )
...
* Add unexposed account setting for hiding poll creation
This is to match the sticker picker setting we already have, but not exposed in the user settings until we decide if we actually want it to be there.
This is primarily intended to be used in environments that disable it at the config level, though given there's multiple people in the wild who have asked for this, it seems reasonable to expose it as a hidden setting instead. Note that as of writing it's not clear if any of those requests made it as far as an issue tracker.
Typically for the usecase presented we'd add a new UIFeature flag, however this *feels* wrong for the case at hand.
* Move visibility check way higher
* Fix i18n post-merge
2022-03-04 18:04:30 +00:00
Michael Telatynski
0e60ad98c1
Hide composer and call buttons when the room is tombstoned ( #7975 )
2022-03-04 15:53:22 +00:00
Šimon Brandner
a58b1e9d79
Document keyboard shortcuts ( #7908 )
2022-03-04 12:14:52 +00:00
Michael Telatynski
15cbc6c26c
Fix wrongly asserting that PushRule::conditions is non-null ( #7973 )
2022-03-04 09:39:16 +00:00
Michael Telatynski
afbe3d16b4
Fix account & room settings race condition ( #7953 )
2022-03-03 22:09:06 +00:00
Michael Telatynski
b8f37a46f0
Fix bug with some space selections not being applied ( #7971 )
2022-03-03 21:42:18 +00:00
Robin
8a7ffb4f90
Test that pinned messages reflect edits correctly ( #7960 )
...
* Hide unpinnable pinned messages in more cases
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix typo
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that unpinnable pinned messages get hidden
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix cli.relations error in test
Signed-off-by: Robin Townsend <robin@robin.town>
* Use event: true shortcut when calling mkEvent
Signed-off-by: Robin Townsend <robin@robin.town>
* Use mockResolvedValue instead of mockReturnValue for async mock
Signed-off-by: Robin Townsend <robin@robin.town>
* Actually mock redacted messages correctly
Signed-off-by: Robin Townsend <robin@robin.town>
* Ensure that panel is updated before assertions are made
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that pinned messages reflect edits correctly
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix warning about missing date
Signed-off-by: Robin Townsend <robin@robin.town>
* Move calls to update out of act
They don't need to be there.
Signed-off-by: Robin Townsend <robin@robin.town>
* Move calls to update out of act
They don't need to be there.
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix lint
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-03 12:20:13 -05:00
James Salter
6be61c4693
Add an e2e test to check the app reloads when a new version is available ( #7956 )
...
this includes an update to the puppeteer version to support request.isInterceptResolutionHandled
2022-03-03 15:44:34 +00:00
Travis Ralston
75abf03fed
Improve end-to-end test logging by rendering JSHandles ( #7959 )
...
Fixes https://github.com/vector-im/element-web/issues/13276
It's still not super pretty, but it works.
2022-03-03 07:59:29 -07:00
Robin
f9ad2a5151
Hide unpinnable pinned messages in more cases ( #7921 )
...
* Hide unpinnable pinned messages in more cases
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix typo
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that unpinnable pinned messages get hidden
Signed-off-by: Robin Townsend <robin@robin.town>
* Fix cli.relations error in test
Signed-off-by: Robin Townsend <robin@robin.town>
* Use event: true shortcut when calling mkEvent
Signed-off-by: Robin Townsend <robin@robin.town>
* Use mockResolvedValue instead of mockReturnValue for async mock
Signed-off-by: Robin Townsend <robin@robin.town>
* Actually mock redacted messages correctly
Signed-off-by: Robin Townsend <robin@robin.town>
* Ensure that panel is updated before assertions are made
Signed-off-by: Robin Townsend <robin@robin.town>
* Move calls to update out of act
They don't need to be there.
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-03 07:54:44 -05:00
Robin
d883309dcd
Avoid using .render() in forward dialog test ( #7961 )
...
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-03 07:54:20 -05:00
Kerry
ebc2267e52
Location sharing > back button ( #7958 )
...
* add back/cancel buttons to share dialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test buttons
Signed-off-by: Kerry Archibald <kerrya@element.io>
* improve weird indentation
Signed-off-by: Kerry Archibald <kerrya@element.io>
* relint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* PR tweaks
Signed-off-by: Kerry Archibald <kerrya@element.io>
* quotes
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-03 11:30:46 +01:00
Kerry
7aefa34420
use LocationAssetType ( #7965 )
...
* use LocationAssetType
Signed-off-by: Kerry Archibald <kerrya@element.io>
* center icon better
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
* retrigger all builds
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-03 10:04:38 +00:00
Eric Eastwood
3572b36648
Fix room list being laggy while scrolling 🐌 ( #7939 )
...
Fix https://github.com/vector-im/element-web/issues/21262
Optimizations:
1. Don't update the `style` (positioning) of hidden tooltips
1. Don't add DOM elements to the page for hidden tooltips
> ## Performance problems broken down
>
>
> ### Hidden tooltips rendering on `scroll`
>
> You can see that the Tooltip render is attached to the `scroll` event at [`src/components/views/elements/Tooltip.tsx#L78-L81`](31f0a37ca2/src/components/views/elements/Tooltip.tsx (L78-L81)
)
>
> The rendering calls [`src/components/views/elements/Tooltip.tsx#L101` -> `updatePosition`](36adba101c/src/components/views/elements/Tooltip.tsx (L101)
) which ends up as an expensive "Recalculate Style" because it uses [`Element.getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect ). This happens many many times within a single `scroll` event. Probably once for each tooltip within the room list **even though no tooltips are event visible as I scroll**. I can see that we're just updating the `style` attribute for a bunch of `.mx_Tooltip_invisible` elements at the end of the document.
>
> Each one of the purple spans below the `scroll` span ends up as a call to `updatePosition`. And a `scroll` event takes 35ms to 60ms to complete which is way over the 16.6ms 60 FPS budget (on a powerful desktop PC), granted these times are with the performance profiling running. This is without the Passbolt extension explained below.
>
> And the room list contains about 141 rooms (`document.querySelectorAll('.mx_RoomTile').length`):
>
> ![](https://user-images.githubusercontent.com/558581/156273551-e744d3d6-93c6-4b07-bb12-6aad361f96a2.png )
>
>
>
> ### Passbolt Chrome browser extension exacerbates the problem
>
> In order to login to Passbolt, it requires a browser extension which defaults to mucking up all pages:
>
> <img src="https://user-images.githubusercontent.com/558581/156275644-bc26b1f5-5d99-4eae-b74b-c2028f2f1baf.png " width="300">
>
>
> The extension source seems to be available: https://github.com/passbolt/passbolt_browser_extension
>
> The Passbolt Chrome extension has a `MutationObserver` listening to all attribute and element changes to the whole `<body>` of the `document` so it can `findAndSetAuthenticationFields` (find form elements and autofill).
>
>
> [`passbolt/passbolt_styleguide` -> `src/react-web-integration/lib/InForm/InFormManager.js#L143`](1c5eddc910/src/react-web-integration/lib/InForm/InFormManager.js (L143)
)
> ```js
> this.mutationObserver.observe(document.body, { attributes: true, childList: true, subtree: true });
> ```
>
> This causes a bunch of `Forced reflow` because the Tooltip `updatePosition` is mutating the element `style` attribute and Passbolt `MutationObserver` callbacks are querying the whole DOM looking for form elements all in the same frame.
>
> Under the `scroll` event, all of the little spans are the `MutationObserver` -> `findAndSetAuthenticationFields`. With the Passbolt extension, scrolling is verrrrry crunchy and bad.
>
> ![](https://user-images.githubusercontent.com/558581/156144998-8cf7686f-3c7b-42f8-8d81-ff780bae0ab5.png )
>
>
> #### Workaround
>
> Instead of running Passbolt on all sites, we can enable the extension to only run on the domain for Passbolt instance itself. I'm guessing the Passbolt extension also does autofill stuff on sites but I always login manually to the Passbolt instance so this solution works for me �
>
> **Extensions** -> **Passbolt** -> **Details** -> Change **Site access** to `On specific sites` -> Enter in your Passbolt instance `https://passbolt.example.com/ `
>
> ![](https://user-images.githubusercontent.com/558581/156275630-a53ef6a1-c058-4ac9-aa08-ae50b90e72c9.png )
>
> *-- https://github.com/vector-im/element-web/issues/21262 *
2022-03-02 13:20:01 -06:00
Robin
aadb64615f
Fix duplicate EventListSummarys ( #7952 )
...
* Fix duplicate EventListSummarys
Signed-off-by: Robin Townsend <robin@robin.town>
* Add regression test
Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-02 11:46:51 -05:00
Kerry
b480bffab0
Location share type UI ( #7924 )
...
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* empty line
Signed-off-by: Kerry Archibald <kerrya@element.io>
* functional picker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* most style
Signed-off-by: Kerry Archibald <kerrya@element.io>
* nice style for options
Signed-off-by: Kerry Archibald <kerrya@element.io>
* get ShareType test passing
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add maplibre mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint and test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add section to themes for location sharing cols
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add svg mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use same mock string as imageMock
Signed-off-by: Kerry Archibald <kerrya@element.io>
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add live location icon
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename useEnabledShareTypes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use solid color for live border
* use ternary
Signed-off-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-02 13:00:40 +00:00
Germain
d01ea1824b
[Update thread info after MSC3440 updates] ( #7911 )
2022-03-02 10:52:14 +00:00
Travis Ralston
31f0a37ca2
Fix js-sdk imports ( #7938 )
2022-03-01 23:51:05 +00:00
Michael Telatynski
f25e6813bb
Mandate use of js-sdk/src/matrix import over js-sdk/src ( #7933 )
2022-03-01 20:42:05 +00:00
Travis Ralston
5f51ba1592
Add support for overriding strings in the app ( #7886 )
...
* Add support for overriding strings in the app
This is to support a case where certain details of the app need to be slightly different and don't necessarily warrant a complete fork.
Intended for language-controlled deployments, operators can specify a JSON file with their custom translations that override the in-app/community-supplied ones.
* Fix import grouping
* Add a language handler test
* Appease the linter
* Add comment for why a weird class exists
2022-03-01 11:53:09 -07:00
Travis Ralston
a5ce1c9dcb
Add support for redirecting to external pages after logout ( #7905 )
...
* Add support for redirecting to external pages after logout
This is primarily useful for deployments where the account is managed and needs to be logged out in other places too, like an SSO system.
See docs for more information.
* Add e2e test and fix Windows instructions
* Fix performance gathering stats
* use logger
2022-03-01 11:06:17 -07:00
Kerry
ac36234068
update snap ( #7932 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-01 17:26:30 +00:00
Kerry
3f1951b5b8
Prep for pin drop location sharing ( #7919 )
...
* add labs flag feature_location_share_pin_drop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* split LocationButton into two components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rethemendex
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* one more (c)
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* empty line
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use same matrix client import
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-01 18:00:07 +01:00
Michael Telatynski
3818dfc859
Add end-to-end test for the user view ( #7926 )
2022-03-01 13:05:30 +00:00
Kerry
4bf42babc7
dont re-prepare voice messages ( #7897 )
...
* dont reprepare voice messages
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test Playback
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test RecordingPlayback
Signed-off-by: Kerry Archibald <kerrya@element.io>
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-01 09:43:32 +01:00
Michael Telatynski
08c47ac473
Fix changing space sometimes bouncing to the wrong space ( #7910 )
2022-03-01 08:33:29 +00:00
Michael Telatynski
482d756bd0
Ensure EventListSummary key does not change during backpagination ( #7915 )
2022-03-01 08:33:07 +00:00
Šimon Brandner
df591ee835
Make everything use the KeyBindingManager
( #7907 )
2022-02-28 16:05:52 +00:00
David Baker
1a6134e441
Fix another freeze on room switch ( #7900 )
...
* Fix another freeze on room switch
This switches permalinks to use the batch state update event and
removes the incremental updates, as commented. We now spend, on my
profiling, about 450ms in setOutOfBandMembers itself and another
120ms in permalinks.
Fixes https://github.com/vector-im/element-web/issues/21127
* Just bind to the currentstate state updates
2022-02-25 19:48:35 +00:00
Robin
ece2b8572a
Fix edge case in context menu chevron positioning ( #7899 )
...
* Fix edge case in context menu chevron positioning
Signed-off-by: Robin Townsend <robin@robin.town>
* Expand context menu positioning regression tests
Signed-off-by: Robin Townsend <robin@robin.town>
2022-02-25 17:49:57 +00:00
Kerry
130bd6aa63
manage voicerecording state when deleting or sending a voice message ( #7896 )
...
* manage voicerecording state when deleting or sending a voice message
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 18:54:06 +01:00
Robin
85dc58a504
Try harder to keep context menus inside the window ( #7863 )
...
* Try harder to keep context menus inside the window
Signed-off-by: Robin Townsend <robin@robin.town>
* Use UIStore for window dimensions
Signed-off-by: Robin Townsend <robin@robin.town>
* Test ContextMenu positioning
Signed-off-by: Robin Townsend <robin@robin.town>
2022-02-24 10:25:27 -05:00
Kerry
f4cd71fd47
Check 'useSystemTheme' in quick settings theme switcher ( #7809 )
...
* mock Element.scrollIntoView in jest setup
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extract theme switcher from quick settings, add match system option, test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove old class
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 10:01:06 +01:00
Kerry
889b0cebb2
Fix 'my threads' filtering to include participated threads ( #7882 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* threads test helpers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix threads helper unsigned
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test filter creation when thread capabilities enabled
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-24 09:44:34 +01:00
David Baker
81cda7c749
Fix freeze on room switch ( #7884 )
...
* Fix freeze on room switch
updateServerCandidates was called on every room member event and
not throttled.
Fixes https://github.com/vector-im/element-web/issues/21127
* Move import
* Disable throttling in tests
* Types
Co-authored-by: Travis Ralston <travisr@matrix.org>
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-02-23 19:16:12 +00:00
Kerry
1830de2733
Thread test utilities ( #7881 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* threads test helpers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add unsigned to root event
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-23 17:12:48 +01:00
J. Ryan Stinnett
d8ac7cf202
Fix thread summary layout for narrow right panel timeline ( #7838 )
2022-02-23 14:03:46 +00:00
Kerry
5e76d988ca
convert test-utils to typescript ( #7877 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type wait for update
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-23 11:21:11 +00:00
Šimon Brandner
93a9af7b3a
Keybinding code unification #3 ( #7850 )
2022-02-23 09:12:04 +00:00
Michael Telatynski
7fa01ffb06
Improve typing around event emitter handlers ( #7816 )
2022-02-22 12:18:08 +00:00
Robin
bb79c6086a
Don't pillify code blocks ( #7861 )
...
* Don't pillify code blocks
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that pills do not appear in code blocks
Signed-off-by: Robin Townsend <robin@robin.town>
* Use snapshot instead for test
Signed-off-by: Robin Townsend <robin@robin.town>
2022-02-22 06:46:34 -05:00
Michael Telatynski
8fccef86d8
Wire up drag-drop file uploads for the thread view ( #7860 )
2022-02-22 11:14:56 +00:00
Michael Telatynski
2a55d22916
Wire up CallEventGroupers for Search Results ( #7866 )
2022-02-22 10:39:08 +00:00
Kerry
5b8d440406
type Actions ( #7862 )
...
* type ViewHomPage action
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type spacestore actions
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add action types
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use new action types in stores
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debug change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stricter keyboard shortcut types
Signed-off-by: Kerry Archibald <kerrya@element.io>
* action comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-22 10:04:27 +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
Kerry
8b9263c808
Clean up some unit test logs ( #7857 )
...
* kill some unit test logs in arrays-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove mock logs that are asserted against anyway
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix safeCOunterpartTranslate warnings in tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more safeCounterpartTranslate warnings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add helper
Signed-off-by: Kerry Archibald <kerrya@element.io>
* naming
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-21 16:57:44 +00:00
David Baker
572fa99e67
Fix virtual / native room mapping on call transfers ( #7848 )
...
* Fix virtual / native room mapping on call transfers
By just sending them through the same code path as regular calls.
Also re-do the tests & add a test for transfer specifically.
* Optional arg
* Types
2022-02-21 12:17:09 +00:00
Andy Balaam
f1e1b7be86
Support "closed" polls whose votes are not visible until they are ended ( #7842 )
2022-02-21 10:21:35 +00:00
Kerry
fc9a221371
Focus trap in poll creation dialog ( #7847 )
...
* add autofocus
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* scope ids
Signed-off-by: Kerry Archibald <kerrya@element.io>
* whitespace
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-18 16:35:08 +00:00
Michael Telatynski
38a547b5d0
Remove ResizeObserver Polyfill ( #7844 )
2022-02-18 13:51:27 +00:00
Kerry
6fccd6b183
add cursor: pointer to actionable poll options ( #7826 )
...
* add cursor: pointer to actionable poll options
Signed-off-by: Kerry Archibald <kerrya@element.io>
* eof
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-18 11:43:07 +01:00
Kerry
08a0c6f86c
Don't aggregate rooms and users in SpaceStore ( #7723 )
...
* add direct child maps
* track rooms, users and space children in flat hierarchy in spacestore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update spacefiltercondition to use new spacestore
* remove unused code
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typos
Signed-off-by: Kerry Archibald <kerrya@element.io>
* only build flattened rooms set once per space when updating notifs
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unnecessary currying
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename SpaceStore spaceFilteredRooms => roomsIdsBySpace, spaceFilteredUsers => userIdsBySpace
Signed-off-by: Kerry Archibald <kerrya@element.io>
* cache aggregates rooms and users by space
Signed-off-by: Kerry Archibald <kerrya@element.io>
* emit events recursively up parent spaces on changes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* exclude meta spaces from aggregate cache
Signed-off-by: Kerry Archibald <kerrya@element.io>
* stray log
* fix emit on member update
Signed-off-by: Kerry Archibald <kerrya@element.io>
* call order
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extend existing getKnownParents fn
Signed-off-by: Kerry Archibald <kerrya@element.io>
* refine types and comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-17 21:24:05 +01:00
Michael Telatynski
658590e5bc
More posthog tracking around joining rooms and room search ( #7807 )
2022-02-17 18:03:27 +00:00
J. Ryan Stinnett
a939184e10
Tear down AppTile using lifecycle tracking ( #7833 )
2022-02-17 16:30:36 +00:00
Andy Balaam
93d4364455
Prevent forwarding polls ( #7819 )
2022-02-17 10:57:12 +00:00
David Baker
3be74d38d6
Fix src/lib import ( #7825 )
2022-02-17 10:06:19 +00:00
David Baker
01b00bf3fe
Add test for RoomNotificationState ( #7820 )
...
Regression test for https://github.com/vector-im/element-web/issues/20859
2022-02-17 09:18:37 +00:00
Andy Balaam
7387f3c80a
Allow editing polls ( #7806 )
2022-02-17 09:13:05 +00:00
Šimon Brandner
81f52283cf
Don't change KEYBOARD_SHORTCUTS
and do some refactoring ( #7818 )
2022-02-16 15:24:00 +00:00
J. Ryan Stinnett
0dc1355441
Fix right panel data flow ( #7811 )
2022-02-16 11:19:28 +00:00
dependabot[bot]
b5e3ba28d9
Bump ajv from 6.10.0 to 6.12.6 in /test/end-to-end-tests ( #7792 )
...
Bumps [ajv](https://github.com/ajv-validator/ajv ) from 6.10.0 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases )
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.0...v6.12.6 )
---
updated-dependencies:
- dependency-name: ajv
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kerry Archibald <kerrya@element.io>
2022-02-15 13:52:35 -07:00
David Baker
5fe8442f44
Add an end-to-end test for stickers ( #7733 )
...
* Add an end-to-end test for stickers
* More logs on login
* Wait for spinners to go away
* Factor out spinner waiting as it seems useful
* Move stickers to the end
* More waiting
* When all else fails... add sleeps
* Waiting for the server picker to appear seems to work..?
* Typos
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
* remove commented code from registration usecase
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2022-02-15 11:49:53 +00:00
Andy Balaam
84e15fa148
Display '(edited)' next to edited polls ( #7789 )
2022-02-15 08:52:51 +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
David Baker
1c3507bc11
Use the shared secret registration API directly ( #7774 )
...
* Use the shared secret registration API directly
rather than invoking the synapse module to do it. It's probably
a bit simpler, if anything, and allows for synapse to be run in
a separate container (or rather, avoids the javascript having to have
a copy of synapse source & server config).
* Make registration secret required
Update commander (8 major versions!) to get requiredOption
* Wrong options object :/
2022-02-11 17:03:22 +00:00
Kerry
b5e7d12f76
Add config option to autorageshake when key backup is not enabled ( #7741 )
...
* report on not enabled
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add setting
Signed-off-by: Kerry Archibald <kerrya@element.io>
* check key backup status after crypto init
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove log
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test encryption setup in DeviceListener
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* sendLogs for key backup auto-report event
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove reloadOnChagneController
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-11 14:00:37 +01:00
Michael Telatynski
ac6a356027
End-to-end test alias publishing flow ( #7779 )
2022-02-11 11:37:31 +00:00
Charlie Calendre
8103e606c4
Fix translation for keyboard shortcut displaynames ( #7758 )
2022-02-10 09:11:35 +00:00
Kerry
818fddd72c
Add customisation point to disable space creation ( #7766 )
...
* mock matchMedia in jest setup
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use UIComponent.CreateSpaces in space panel
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* hide add space in spacecontextmenu
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use UIComponent customistations in space oom view add space button
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-09 17:21:40 +01:00
Michael Telatynski
5620b83d34
Wire up more Posthog tracking ( #7689 )
2022-02-09 14:25:58 +00:00
Michael Telatynski
714136d4f7
Consolidate RedactionGrouper and HiddenEventGrouper into MELS ( #7739 )
2022-02-09 10:51:12 +00:00
Kerry
30d1ac1eea
unit test basic paths in UserInfo ( #7740 )
...
* unit test main paths in UserInfo component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* one more test case
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove BasicUserInfo export
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-08 12:14:52 +00:00
Germain
544957bdad
Use typographical quotes in no threads UI ( #7713 )
2022-02-07 15:13:34 +00:00
Michael Telatynski
5d89230271
Remove IA 1.1 feedback toast ( #7720 )
2022-02-07 12:46:48 +00:00
Michael Telatynski
78e78292cb
Update PollCreateDialog-test to snapshot the html and not react tree ( #7712 )
2022-02-03 11:54: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
Kerry
cb1c94dd2b
Fix leaks in Login unit tests ( #7704 )
...
* make Login-test tsx, fix leaks
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-02 11:18:55 +00:00
Andy Balaam
f5226f9d5b
Simplify Composer buttons ( #7678 )
...
* Render a CollapsibleButton's children (needed by UploadButton)
* Make UploadButton ready to live inside an overflow menu
* Always show overflow menu in composer: main buttons are emoji and attach
* Re-order composer buttons as per design
* Re-word composer button captions to be simple nouns
* Don't rotate More options button when clicked
* Move the composer menu and dialogs 16px in from right
* Reduce shadow on composer More menu
* From review: remove else clause
* From review: take input out of button
* Update test snapshots
* Update snapshots
2022-02-02 09:30:53 +00:00
Germain
5973d725e0
Add new threads to the panel as they are discovered ( #7688 )
2022-02-01 15:01:00 +00:00
Michael Telatynski
991257cbc3
Fix accessibility and consistency of MessageComposerButtons ( #7679 )
2022-01-31 16:05:05 +00:00
Šimon Brandner
a17d585a12
Work towards unifying KeyboardShortcuts
and KeyBindingsDefaults
#2 ( #7674 )
2022-01-31 15:55:45 +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
Andy Balaam
2229437424
Refactor renderButtons() into MessageComposerButtons component ( #7664 )
2022-01-28 15:44:03 +00:00
Eric Eastwood
7fa27f5834
Add jump to date functionality to date headers in timeline v2 ( #7339 )
...
Fix https://github.com/vector-im/element-web/issues/7677
Utilizes MSC3030: https://github.com/matrix-org/matrix-doc/pull/3030
https://user-images.githubusercontent.com/558581/150060664-79627573-f4fd-497c-b726-dc3485854bd0.png
2022-01-27 16:32:12 -06:00
Šimon Brandner
57a5647079
Work towards unifying KeyboardShortcuts
and KeyBindingsDefaults
#1 ( #7651 )
2022-01-27 11:37:53 +00:00
Michael Telatynski
f2249b3e37
Fix CallEventGrouper map building to not occur during a Render phase ( #7638 )
2022-01-27 11:08:28 +00:00
Kerry
3eca71bc84
Unit test ExportDialog ( #7619 )
...
* add test ids to dialog buttons
Signed-off-by: Kerry Archibald <kerrya@element.io>
* unit test ExportDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove extra snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix bad snapshots
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove wrappers from snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-27 09:55:08 +01:00
David Baker
225f8940c9
Revert "Start a conference in a room with 2 people + invitee rather than a 1:1 call ( #7557 )" ( #7641 )
...
This reverts commit 8ced6e6117
.
2022-01-26 13:31:00 +00:00
Kerry
f7a3027e50
runAllTimers -> runOnlyPendingTimers in SpaceStore-test ( #7634 )
...
* runAllTimers -> runOnlyPendingTimers in SpaceStore-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* runAllTimers for switch to first valid space when selected metaspace is disabled
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-26 11:38:07 +01:00
J. Ryan Stinnett
51a44f491e
Upgrade linkifyjs to fix schemes as domain prefixes ( #7628 )
2022-01-25 17:37:54 +00:00
Michael Telatynski
8ddd677c35
De-labs Metaspaces ( #7613 )
2022-01-25 12:33:17 +00:00
Kerry
502b805164
Add customisation point for mxid display ( #7595 )
...
* add wrapping component for hiding UI
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add Setting
Signed-off-by: Kerry Archibald <kerrya@element.io>
* apply setting to profile settings, user menu, invite dialog, userinfo
Signed-off-by: Kerry Archibald <kerrya@element.io>
* hide mxids in user autocomplete
* remove mxids from title in memeber list and timeline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* hide mxid in ConfirmUserActionDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use name in power level event message when displayMxids is falsy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add customisation point for mxid display
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use userid customisation
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use customisation in sender profile
Signed-off-by: Kerry Archibald <kerrya@element.io>
* hide profile settings mxid if falsy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename and move to components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove change to UIFeature.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* improvements from pr
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint fix
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-25 10:40:02 +01:00
Kerry
b481fc069e
Wrapping component to show/hide UI based on UIFeature setting ( #7585 )
...
* add wrapping component for hiding UI
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename and move to components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* prefix interface and add missing copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove roomId prop
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-25 10:25:41 +01:00
Šimon Brandner
5f18e4888c
Improve the look of the keyboard settings tab ( #7562 )
...
* First cut of new keyboard shortcuts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Remove unused code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Amend shortcuts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve CATEGORIES struct
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Add tests for registerShortcut()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Simplifie code tiny bit
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Translate ALTERNATE_KEY_NAME
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix `key` usage
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Export components for tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Write snapshot tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-01-24 11:33:27 +00:00
Kerry
8a9d869b8e
test textForCanonicalAliasEvent ( #7591 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-20 12:10:56 -07: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
Faye Duxovni
582a1b093f
Track decryption failures for visible events only, with a shorter grace period ( #7579 )
2022-01-19 14:31:43 -05:00
Andy Balaam
2743a75a21
Display general marker on non-self location shares ( #7574 )
2022-01-19 09:33:49 +00:00
Germain
41b9e4aa4f
Implement reply chain fallback for threads backwards compatibility ( #7565 )
2022-01-19 09:06:48 +00:00
Eric Eastwood
a00d359422
Fix left positioned tooltips being wrong and offset by fixed value ( #7551 )
...
Previously, the `left` positioning seemed to only work with icons which are all about the same size so the arbitrary offset worked. Now we actually position off to the left of the element and we have equal `margin-left` and `margin-right` to determine the offset.
Spawned from https://github.com/matrix-org/matrix-react-sdk/pull/7339#discussion_r767154349
2022-01-18 21:08:11 -06:00
Šimon Brandner
1d45921d14
Improve/add notifications for location and poll events ( #7552 )
...
* Add getSenderName()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Handle location and poll event notifications
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* pollQuestions -> pollQuestion
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Make lookup safe and remove poll end event lookup as it wouldn't work
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-01-18 17:58:31 -07: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
Šimon Brandner
8ced6e6117
Start a conference in a room with 2 people + invitee rather than a 1:1 call ( #7557 )
...
* Start a conference call in a room with 2 people + invitee rather than a 1:1
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-01-17 13:46:55 -07: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
Michael Telatynski
f4a6219c88
Replace kick
terminology with Remove from chat
( #7469 )
2022-01-14 13:08:34 +00:00
Michael Telatynski
ec6c1b8272
Fix RoomViewStore forgetting some details of a view room call ( #7512 )
2022-01-12 13:12:28 -07:00
Germain
61116377f3
Fix composer localStorage key for draft event in a thread ( #7526 )
2022-01-12 17:13:47 +00:00
Andy Balaam
5ae166777c
Update test snapshots to reflect new field in Room ( #7523 )
2022-01-12 13:14:33 +00:00
Michael Telatynski
3c1ce77d48
Properly maintain aspect ratio of inline images ( #7503 )
2022-01-10 15:32:06 +00:00
Kerry
5cfb046816
fallback properly with pluralized strings ( #7495 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-10 14:54:57 +01:00
J. Ryan Stinnett
6199c337ea
Fix spacing errors ( #7484 )
2022-01-10 12:57:20 +00:00
Aaron Raimist
c03cb67aef
Disable "Publish this room" option in invite only rooms ( #7441 )
2022-01-10 11:46:30 +00:00
Kerry
d4250918cf
fix fallback for pluralized strings ( #7480 )
...
* fix fallback for pluralized cases
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add test case for no pluralizer
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-07 16:20:24 +01:00
Kerry
fed53a268b
A11y - fix anchors-as-buttons ( #7444 )
...
* add link_inline accessiblebutton variant
* valid anchors in SecurityRoomSettingsTab
Signed-off-by: Kerry Archibald <kerrya@element.io>
* new room intro link button
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace anchor with button in rerequest encryption keys message
Signed-off-by: Kerry Archibald <kerrya@element.io>
* inline button in UrlPreviewSettings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ButtonResetDefault mixin
Signed-off-by: Kerry Archibald <kerrya@element.io>
* inline link buttons in TextForEvent
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in InviteDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in DevToolsDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in login/registration/reset pword flows
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix types after fixing anchors in devtools
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in MemberEventListSummary
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in ReactionsRow and RoomUpgrade
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in ReplyChain
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix more anchors
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix anchors in auth comps
* stylelint fixes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove ignore of jsx-a11y rule that is not added yet
Signed-off-by: Kerry Archibald <kerrya@element.io>
* devtools style important explainer
Signed-off-by: Kerry Archibald <kerrya@element.io>
* translate button alt in devtools dialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* AccessibleButton is reactionsrow
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix viewsourcevent button placement, use AccessibleButton
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use AccessibleButton in EventTile
Signed-off-by: Kerry Archibald <kerrya@element.io>
* unignore jsx-a11y/anchor-is-valid
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix lint issue in test jsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update coment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-07 10:40:53 +01:00
Kerry
dc2d52c1f2
a11y - wrap notification level radios in fieldsets ( #7471 )
...
* notification settings radios table -> fieldset
Signed-off-by: Kerry Archibald <kerrya@element.io>
* aria-label for inputs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update tests for fielset
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unneccessary wrapping div
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix stylelint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-06 18:52:06 +01:00
Kerry
b1066a5699
Wrap inputs in fieldsets in Space visibility settings ( #7350 )
...
* use fieldset in space settings > visibility
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add basic tests for space setttings visibility
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix toggle button placement
Signed-off-by: Kerry Archibald <kerrya@element.io>
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update settings separator color to quinary
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-06 10:09:26 +00:00
Kerry
92ee02fe02
unit test Notifications.tsx ( #7468 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-06 09:47:03 +00:00
Kerry
7f13a1b40a
Attribute fallback i18n strings with lang attribute ( #7323 )
...
* add lang attribute to fallback translations
Signed-off-by: Kerry Archibald <kerrya@element.io>
* readability improvement
Signed-off-by: Kerry Archibald <kerrya@element.io>
* split _t and _tDom
Signed-off-by: Kerry <kerry@Kerrys-MBP.fritz.box>
* use tDom in HomePage
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* bump matrix-web-i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-05 11:37:28 +01:00
Kerry
03f5a3c3e6
Associate room alias warning with public option in settings ( #7430 )
...
* add describedby to styledradiogroup description
Signed-off-by: Kerry Archibald <kerrya@element.io>
* alias warning in description
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update snapshot
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-03 09:55:09 +01:00
Andy Balaam
b412067b24
Fix nulls leaking into geo urls ( #7433 )
2021-12-21 16:56:28 +00:00
Andy Balaam
a239c456e3
Allow opening a map view in OpenStreetMap ( #7428 )
2021-12-21 15:48:20 +00:00
Renan Cleyson
9ac85bcaa3
Fix list formatting alternating on edit ( #7422 )
...
Co-authored-by: Andy Balaam <andyb@element.io>
2021-12-21 10:07:44 +00:00
Andy Balaam
8b2a478a25
Update location text fallback and test it ( #7408 )
2021-12-21 09:37:06 +00:00
Kerry
61e3c38b19
Add configuration to disable relative date markers in timeline ( #7405 )
...
* add disabler elative dates setting
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test existing DateSeparator
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use full date format when TimelineDisableRelativeDates is truthy
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* flip timelineDisableRelativeDates -> timelineEnableRelativeDates to fit convention
Signed-off-by: Kerry Archibald <kerrya@element.io>
* mock date constructor in test
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-21 10:08:22 +01:00
Travis Ralston
b90a0c443d
Fix end-to-end tests (synapse setup) ( #7420 )
...
* Update install.sh
* Update install.sh
* Update develop.yml
* Update install.sh
* Update develop.yml
* Update install.sh
* Update install.sh
* Work around suspected frozendict bug
* Faff around with install-webserver.sh
* Actually I don't think these clash anyway
* Minor cleanup
* Add comments
Co-authored-by: Olivier <olivier@librepush.net>
2021-12-21 02:12:07 +00:00
Eric Eastwood
9289c0c90f
Refactor ContextMenu
to use RovingTabIndex
(more consistent keyboard navigation accessibility) ( #7353 )
...
Split off from https://github.com/matrix-org/matrix-react-sdk/pull/7339
2021-12-17 11:08:56 -06:00
Andy Balaam
670d7824ec
Tidy location code ( #7402 )
2021-12-17 12:26:02 +00:00
Andy Balaam
bd226cd062
Tests for getGeoUri ( #7400 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-12-17 10:58:24 +00:00
Andy Balaam
144e4c61fc
Avoid NaNs in parseGeoUri return ( #7396 )
2021-12-17 09:50:27 +00:00
Michael Telatynski
39c4b78371
Space preferences for whether or not you see DMs in a Space ( #7250 )
2021-12-17 09:26:32 +00:00
Andy Balaam
9a8265429c
Unit tests for parseGeoUri ( #7395 )
2021-12-16 14:20:55 +00:00
Andy Balaam
43839adec0
Use constants from js-sdk in polls code ( #7381 )
2021-12-15 14:26:26 +00:00
Kerry
46b0865e89
Add Heading components ( #7362 )
...
* add Heading components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove margins
Signed-off-by: Kerry Archibald <kerrya@element.io>
* snapshots
Signed-off-by: Kerry Archibald <kerrya@element.io>
* unset block and inline margins
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix werid quoting on heading test
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-15 11:00:10 +01:00
Michael Telatynski
fcc4939075
Fix naming of set-theory utils to match convention ( #7343 )
2021-12-13 10:57:51 +00:00
Dominik Henneke
908e938996
Keep all previously approved widget capabilities when requesting new capabilities ( #7340 )
2021-12-13 10:34:04 +00:00
Andy Balaam
5554d7fdc1
Don't send a poll response event if you are voting for your current c… ( #7326 )
2021-12-10 12:36:53 +00:00
Germain
a727961c43
Adding missing TypeScript dependency ( #7330 )
2021-12-10 12:28:44 +00:00
Andy Balaam
fc96af5014
Show poll question in message preview ( #7320 )
2021-12-10 12:17:26 +00:00
Michael Telatynski
914b61239c
Spotlight search labs ( #7116 )
2021-12-10 11:50:01 +00:00
Travis Ralston
8a0398b632
Fix remaining import ordering requirements
2021-12-09 16:09:20 -07:00
Travis Ralston
e4b96cff1f
Merge remote-tracking branch 'aaronraimist/sort-imports' into develop
2021-12-09 16:03:59 -07:00
Kerry
2e3f225520
Put room settings form elements in fieldsets ( #7311 )
...
* override default fieldset styles
Signed-off-by: Kerry Archibald <kerrya@element.io>
* SettingsFieldset component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test settings fieldset
Signed-off-by: Kerry Archibald <kerrya@element.io>
* refactor SettingsFlag styles
* use SettingsFieldset in room > securit settings
* use fieldset in urlpreviewsettings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use SettingsFieldset in AliasSettings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fieldset in room > roles settings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* css lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* run i18n
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fussy order
Signed-off-by: Kerry Archibald <kerrya@element.io>
* default export
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix copyright headers
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-09 18:44:22 +01:00
Kerry
3c1ee204a0
default export for TooltipTarget ( #7319 )
...
* default export for TooltipTarget
Signed-off-by: Kerry Archibald <kerrya@element.io>
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-09 13:36:55 +01:00
Kerry
1216285ed2
Add descriptions to ambiguous links for screen readers ( #7310 )
...
* add title to room share link
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add ExternalLink component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* unit test ExternalLink
Signed-off-by: Kerry Archibald <kerrya@element.io>
* default target and rel for external link
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use scss $font variables
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-09 13:04:06 +01:00
Kerry
d7a6e3ec65
Correct tab order in room preview dialog ( #7302 )
...
* tab order
* lint fixes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test RoomPreviewBar
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add copyright header
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Update src/components/views/rooms/RoomPreviewBar.tsx
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
* fix tabs/spaces lint for reformatted actions
Signed-off-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-12-09 11:48:58 +01:00
Kerry
0c850b2f13
Make tooltips keyboard accessible ( #7281 )
...
* show tooltips on hover in eventtile
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use tooltip props pass thru
* use tooltiptarget in InfoTooltip
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use target in TestWithTooltip
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tsc fixes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test tooltip target
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint fix
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename tooltip handlers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update copyright to 2021
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-09 11:47:50 +01:00
Aaron Raimist
5b293dd6df
Remove files created by merge
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:21:12 +00:00
Aaron Raimist
2e8a93834b
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:10:23 +00:00
Aaron Raimist
7b94e13a84
Merge branch 'develop' into sort-imports
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 08:34:20 +00:00
Andy Balaam
2b52e17a80
Allow ending polls ( #7305 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-12-08 14:56:48 +00:00
Kerry
697b5d28b3
fix leaking registration test ( #7304 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2021-12-08 10:34:24 +01:00
Renan Cleyson
b4b81a455e
Fix wrong indentation with nested ordered list unnesting list on edit ( #7300 )
2021-12-07 09:46:04 +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
James Salter
d4813f7a1a
Convert end-to-end tests to Typescript ( #7206 )
2021-12-06 09:59:06 +11:00
James Salter
5219b6be80
Analytics opt in for posthog ( #6936 )
...
* Add a new flag pseudonymousAnalyticsOptIn replacing analyticsOptIn, stored at account level, so people only need to opt in once.
* Show a toast in login to users that have analyticsOptIn set but not yet pseudonymousAnalyticsOptIn prompting them confirm the new method is okay. Update the copy of the existing opt-in toast. Don't notify users that previously opted out.
* Update the copy in settings
* Add a new learn more dialog
* Support a new config flag analyticsOwner which is used in these toasts when explaining which entity the data is sent to ("Help improve %(analyticsOwner)"). If unset, display brand. This allows deployments whose brand differs from the receiver of the analytics to explain the situation to their users (e.g. AcmeCorp badges their app, but explains the data is sent to Element, not them)
* The new opt-in and flags are only used when posthog is configured; prior to that there are no changes to UX or tracking behaviour.
2021-12-06 09:39:33 +11:00
Dariusz Niemczyk
961fec9081
Refactor matrix-linkify module ( #7279 )
...
Refactor the module to make it easier for upgrade and proper separation of code contexts
2021-12-03 14:00:56 +00:00
Michael Telatynski
3b9e39ffca
When accepting DM from People metaspace don't switch to Home ( #7272 )
2021-12-03 11:17:51 +00:00
Andy Balaam
494af883f3
Hide votes in a poll until you voted ( #7269 )
2021-12-03 10:26:28 +00:00
Andy Balaam
141950d9e6
Ensure my votes from a different device show up ( #7233 )
...
Co-authored-by: Travis Ralston <travpc@gmail.com>
2021-12-02 17:12:18 +00:00
David Baker
25c119dd5a
Revert https://github.com/matrix-org/matrix-react-sdk/pull/7246 ( #7268 )
...
This is apprently fixed on synapse, so reverting the workaround
2021-12-02 16:31:23 +00:00
Dariusz Niemczyk
fda0c2cf79
Fix markdown formatting for bold ( #7257 )
...
* Fix markdown formatting for bold
Fix https://github.com/vector-im/element-web/issues/4674
* I hate you too eslint
2021-12-02 10:56:23 +00:00
Renan Cleyson
0afe141266
Fix textual message stripping new line ( #7239 )
2021-12-02 09:25:12 +00:00
Michael Telatynski
4a6d46b76a
Replace breadcrumbs with recently viewed menu ( #7073 )
2021-12-01 10:50:06 +00:00
Germain
2e82887dc2
Make e2e tests pass in CI by using an older Synapse version ( #7246 )
2021-12-01 09:53:57 +00:00
Šimon Brandner
cbb34d8ac7
Make CallHandler
more EventEmitter
y ( #6704 )
...
* sharedInstance() -> instance
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use CallState event instead of dispatching
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Simplifie some code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use a method to start a call instead of the dispatcher
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use a method instead of place_conference_call
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Make terminateCallApp() and hangupCallApp() public
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use hangupAllCalls() instead of the dispatcher
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Make dialNumber(), startTransferToMatrixID() and startTransferToPhoneNumber() public instead of using the dispatcher
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use answerCall() instead of using the dispatcher
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use hangupOrReject() instead of the dispatcher
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Update docs
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve TS
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Dispatch call_state, see https://github.com/vector-im/element-web/pull/18823#issuecomment-917377277
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Add missing import
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-11-30 18:09:13 +00:00
Dariusz Niemczyk
e3187ed15c
Fix links being parsed as markdown links improperly ( #7200 )
...
* Fix links being parsed as markdown links improperly
Fixes #4674
* Fix a typo
* Fix overriding too much stuff
* Fix parsing
* Remove useless console.log
* Remove unnecessary emph function
* Properly fix tests
* Add some better docs
* Add missing license header
2021-11-30 18:09:05 +00:00
Michael Telatynski
8fe582b094
Tweaks to informational architecture 1.1 ( #7052 )
...
* Move user avatar to Space panel
* Add room list header for 'Home' or 'Space Name' to room list
Add existing Space context menus to room list header
* Re-add pending room join spinner
* Iterate RoomListHeader plus context menu
* Iterate space context menu
* Iterate room list + interactions
* Move DND to new iA model
* Replace composer custom status management with usermenu one
* Cull Quick Actions
* Iterate minimized room list state
* delint
* Merge the RoomListNumResults into the RoomListHeader
* Make the search shortcut prompt semi-bold
* Iterate RoomListHeader based on design review
* Iterate UserMenu based on feedback
* Add name to expanded spacepanel usermenu button
* i18n
* Make room sub list aux button components more generic
* Change left panel explore button to only refer to room directory
* Iterate RoomListHeader
* Fix custom user status input field width in Chrome
* Bring back Notification settings button
* delint
* i18n
* post-merge fix
* iterate pr
* Remove unused state
* update copy
* Apply suggestions from PR review
* delint
* Update invite iconography
* Iterate Space context menu to match Figma
* Fix chevron alignment
* Fix edge case for RoomListHeader on metaspaces
* Wire up general rageshake-driven feedback mechanism
* Add IA1.1 info toast
* add missing alt attribute
* delint
* delint
* tweak ia toast priority
* e2e test account for new toast
* autofocus feedback field and remove old subheading
* tweak copy
* Iterate space panel colours to match Figma
* Iterate PR
* delint
* Fix feedback submission with object setting values
* iterate based on review
* Tweak colours and update splash image
* Tweaks based on review
* Remove room list prompt, made redundant by the big fat `+`
* Fix edge cases around User Menu positioning and dnd
* Add missing import, bad merge?
* Update aria label in e2e test
* Fix room list space rooms context menu explore button behaviour
* Tweak copy
* Revert order of options in the UserMenu
* Tweak copy
* i18n
2021-11-30 18:08:46 +00:00
Michael Telatynski
fe24c8ad2a
Improve ThreadPanel ctx menu accessibility ( #7217 )
2021-11-29 17:42:53 +00:00
Michael Telatynski
9727a82a12
Allow filtering room list during treeview navigation ( #7219 )
2021-11-29 17:18:35 +00:00
Michael Telatynski
138f6685d4
re-enable Spaces e2e tests ( #7207 )
2021-11-26 11:45:31 +00:00
Dariusz Niemczyk
d256af775d
Add basic linkify-matrix tests ( #7199 )
...
Add basic linkify-matrix tests
2021-11-26 10:39:07 +00:00
Andy Balaam
1c6703356d
Highlight my vote even if it was made on another device ( #7202 )
2021-11-26 09:24:34 +00:00
Renan Cleyson
ae0dba4e87
Add view_room
to Action
enum ( #7203 )
...
* Add ViewRoom action to Action enum
Signed-off-by: Renan <renancleyson.f@gmail.com>
* Change view_room occurrences to Action.ViewRoom
Signed-off-by: Renan <renancleyson.f@gmail.com>
* Add missing Action import
2021-11-25 21:49:43 +01:00
Andy Balaam
ea97c416f5
Test for showing a spinner after submitting a new poll ( #7194 )
2021-11-24 16:24:19 +00:00
Andy Balaam
d7f3d2791a
Basic tests for PollCreateDialog ( #7193 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-11-24 13:48:07 +00:00
Travis Ralston
08cd8926e6
Fix a couple relative date tests ( #7184 )
2021-11-23 11:29:23 -07:00
Andy Balaam
359962af6c
Prevent text overlapping on poll options ( #7187 )
2021-11-23 11:16:31 +00:00
Andy Balaam
d705fdd6e4
Display and send votes in polls ( #7158 )
...
Co-authored-by: Travis Ralston <travpc@gmail.com>
2021-11-23 10:27:44 +00:00
Travis Ralston
3c06e7f7a0
Add option to change the size of images/videos in the timeline ( #7017 )
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: Timo K <toger5@hotmail.de>
2021-11-17 15:19:30 +00:00
Timo
556cfc7ed8
Add maximise widget functionality ( #7098 )
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2021-11-16 15:43:18 +01:00
Michael Telatynski
27c3153947
Unified room context menus ( #7072 )
2021-11-15 11:39:25 +00:00
Michael Telatynski
5ad3261cb2
Implement more meta-spaces ( #7077 )
2021-11-11 13:07:41 +00:00
Andy Balaam
9c8e1d32e2
Rename mx_RadioButton to mx_StyledRadioButton to match class name ( #7083 )
2021-11-04 12:57:38 +00:00
Germain
7a203461f7
Fix TimeZone to be UTC in Jest tests ( #7082 )
2021-11-04 10:39:49 +00:00
Germain
38750202ee
Design thread list tiles according to mockups ( #7078 )
2021-11-03 18:05:01 +00:00
Germain
2a20d9a7df
Display relative time in thread panel event tile ( #7068 )
...
* Null-guard for missing root event in thread panel
* Add formatRelativeTime date utility
* Display relative time format in thread panel event tiles
2021-11-03 10:16:50 +00:00
Faye Duxovni
71244f3b3c
Add more checkbox styles ( #7058 )
...
Add a "kind" param for StyledCheckbox, allowing designers to choose different styles of checkbox as needed. In addition to the preexisting default kind (now called Solid), there's an Outline kind with a green checkmark and a transparent fill. This is used in the device trust view, since the default checkbox style looks too much like the green "verified" shield and it's awkward to have those next to each other.
2021-10-29 21:57:32 -04:00
Andy Balaam
d0bb6e0657
Unit tests for getEffectiveTheme ( #7051 )
...
* Unit tests for getEffectiveTheme
* Unit tests for choosing high-contrast theme
2021-10-29 09:11:55 +01:00
Aaron Raimist
f3867ad0a9
Merge branch 'develop' into sort-imports
2021-10-27 21:50:56 -05:00
Michael Telatynski
04c06b6aa8
Improve RovingTabIndex & Room List filtering performance ( #6987 )
2021-10-26 12:16:50 +01:00
Michael Telatynski
be0fa6da7b
Fix removing a room from a Space and interaction with m.space.parent
( #6944 )
2021-10-25 14:06:00 +01:00
Aaron Raimist
027b3660bb
Manual fixes
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:49:12 -05:00
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05:00
Andy Balaam
4b903b9fbd
Break ThemeChoicePanel into a separate component ( #6998 )
...
* Break ThemeChoicePanel into a separate component
* Tests for ThemeChoicePanel
* i18n fixes
* Fix copyright for ThemeChoicePanel
2021-10-20 14:58:27 +00:00
Andy Balaam
96bd052ecf
Improve visibility of font size chooser ( #6988 )
...
* Improve visibility of font size chooser
* Move slider dot sizes into variables
* Use a standard font size instead of percentage in Slider
* Use shorthand for padding in FontScalingPanel
* Change Slider text pos to px to be consistent when font changes
* Cleaner dot size for Slider selection
2021-10-20 13:41:27 +01:00
Germain
694ec946e2
Allow quote-reply in thread view element-web ( #6959 )
2021-10-19 16:05:34 +01:00
Andy Balaam
2582f6df23
Replace manual mock with jest.mock
2021-10-19 15:45:11 +01:00
Andy Balaam
4ad32b16ea
Break out font size settings to a separate component
2021-10-19 14:50:09 +01:00
Germain
77e6e1c0ab
Merge pull request #6960 from matrix-org/gsouquet/rename-replythread
2021-10-18 17:11:31 +01:00
Germain Souquet
5a7c0d87b6
Rename ReplyThread to ReplyChain to avoid confusion with m.thread
2021-10-15 17:42:44 +01:00
Andy Balaam
a547ee4654
Break 'Cryptography' settings into a separate component
2021-10-15 16:02:44 +01:00
Dariusz Niemczyk
c31bd8c647
Remove unnecessary adapter in ThreadPanel-test.tsx ( #6946 )
2021-10-14 15:42:54 +01:00
Dariusz Niemczyk
562a880c7d
Create room threads list view ( #6904 )
...
Implement https://github.com/vector-im/element-web/issues/18957 following requirements:
* Create a new right panel view to list all the threads in a given room.
* Change ThreadView previous phase to be ThreadPanel rather than RoomSummary
* Implement local filters for My and All threads
In addition:
* Create a new TileShape for proper rendering requirements (hiding typing indicator)
* Create new timelineRenderingType for proper rendering requirements
2021-10-14 15:27:35 +02:00
Dariusz Niemczyk
bc336abf47
Fix missing snapshot serializer&enzyme init ( #6932 )
2021-10-13 11:09:43 +01:00
Michael Telatynski
82ad85a974
Mock usage of getRoomUpgradeHistory in SpaceStore tests
2021-10-08 10:30:46 +01:00
Andy Balaam
e8dba59b42
Fix review comments from Šimon Brandner.
...
Rename test->it; Rename users->userIds; Un-break a line.
Signed-off-by: Andy Balaam <andyb@element.io>
2021-10-04 11:41:09 +01:00
Andy Balaam
226131409f
Unit tests for room avatars in DM and non-DM rooms
...
Signed-off-by: Andy Balaam <andyb@element.io>
2021-10-01 15:08:19 +01:00
Dariusz Niemczyk
1331e960fa
Add ability to properly edit messages in Threads. ( #6877 )
...
* Fix infinite rerender loop when editing message
* Refactor "edit_event" to Action.EditEvent
* Make up-arrow edit working in Threads
* Properly handle timeline events edit state
* Properly traverse messages to be edited
* Add MatrixClientContextHOC
* Refactor RoomContext to use AppRenderingContext
* Typescriptify test
Co-authored-by: Germain <germains@element.io>
2021-10-01 15:35:54 +02:00
Jaiwanth
94e4fb71c1
Merge branch 'develop' into export-conversations
2021-09-22 18:07:01 +05:30
Eric Eastwood
9c3439a1aa
Show updated relation reply from edited message - v2 ( #6817 )
...
Part of https://github.com/vector-im/element-web/issues/10391
When `m.relates_to` -> `m.in_reply_to` is provided in `m.new_content`
for an edited message, use the updated reply.
ex.
```json
{
"type": "m.room.message",
"content": {
"body": " * foo bar",
"msgtype": "m.text",
"m.new_content": {
"body": "foo bar",
"msgtype": "m.text",
"m.relates_to": {
"m.in_reply_to": {
"event_id": "$qkjmFBTEc0VvfVyzq1CJuh1QZi_xDIgNEFjZ4Pq34og"
}
}
},
"m.relates_to": {
"rel_type": "m.replace",
"event_id": "$lX9MRe9ZTFOOvnU8PRVbvr1wqGtYvNQ1rSot-iUTN5k"
}
}
}
```
2021-09-17 15:18:52 -05:00
Michael Telatynski
e17318a364
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18088
2021-09-16 10:05:20 +01:00
James Salter
839fdbca62
fix tests
2021-09-15 13:55:34 +01:00
James Salter
76c782c64c
Remove all room data from tracking
...
Always redact room fragments entirely; remove room utils
2021-09-15 12:58:26 +01:00
James Salter
79f03dfec3
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into pseudonymous-analytics-id
2021-09-15 09:52:15 +01:00
James Salter
c2192a78bc
More lint
2021-09-14 18:16:48 +01:00
James Salter
7344a177e3
Fix tests, swallow errors
2021-09-14 17:35:32 +01:00
Michael Telatynski
554c8ba74e
delint
2021-09-10 11:01:01 +01:00
Michael Telatynski
456de355f9
fix e2e test
2021-09-10 10:48:47 +01:00
Michael Telatynski
41118b418f
fix expected number of radios
2021-09-10 09:52:54 +01:00
Michael Telatynski
911ca07da4
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18088
2021-09-08 15:28:58 +01:00
Michael Telatynski
c915288044
Respect m.space.parent relations if they hold valid permissions
2021-09-06 14:34:06 +01:00
Michael Telatynski
a688e5b8b3
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18088
...
Conflicts:
src/components/structures/LoggedInView.tsx
src/stores/SpaceStore.tsx
2021-09-06 11:41:09 +01:00
Travis Ralston
60e2d61d25
Merge pull request #6489 from psrpinto/better-pinned-messages
...
When pinning or unpinning messages, link to the specific message
2021-09-03 13:27:49 -06:00
David Baker
de01dcfd26
Merge pull request #6700 from SimonBrandner/feature/call-timer/18566
...
Show call length during a call
2021-09-03 17:17:36 +01:00
Germain
9be9e75c13
Merge pull request #6720 from matrix-org/gsouquet/replies-fix-18717
2021-09-02 08:42:54 +01:00
Germain Souquet
95d1b06abb
Make composer able to reply in thread or in room timeline
2021-09-01 12:12:40 +01:00
Michael Telatynski
bbd420096b
don't bother awaiting SpaceStore::setActiveSpace as it is no longer async
2021-08-31 17:03:43 +01:00
Šimon Brandner
9c107ae615
Add tests for formatSeconds()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-27 16:20:29 +02:00
Jaiwanth
7207329c15
Apply review suggestions
2021-08-13 23:44:07 +05:30
Michael Telatynski
8e7ef39db7
delint
2021-08-13 15:51:02 +01:00
Michael Telatynski
9d909dcdf8
tweaks
2021-08-13 15:44:43 +01:00
Michael Telatynski
2509c864e0
tweak order of e2e tests
2021-08-13 13:46:08 +01:00
Michael Telatynski
6ce518cb8f
add more delay
2021-08-13 13:38:11 +01:00
Michael Telatynski
5e38b8b3b3
try fix tests s'more
2021-08-13 13:29:25 +01:00
Jaiwanth
9cbdc4a613
Use throw error instead of try-catch
2021-08-13 08:34:54 +05:30
Jaiwanth
edfc8af6cf
Apply PR Suggestions
2021-08-13 08:30:50 +05:30
Michael Telatynski
f2becd9698
Fix e2e test
2021-08-12 15:59:24 +01:00
Michael Telatynski
0a209afdc2
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18089
...
Conflicts:
res/css/structures/_SpaceHierarchy.scss
src/components/structures/SpaceHierarchy.tsx
src/i18n/strings/en_EN.json
2021-08-12 11:41:03 +01:00
Michael Telatynski
8216a35a56
remove spurious mxclient stub
2021-08-11 21:02:30 +01:00
Michael Telatynski
29e5a69b7a
delint e2e test
2021-08-11 16:24:32 +01:00
Michael Telatynski
d602dac7ef
Add basic spaces tests to the e2e suite
2021-08-11 16:20:50 +01:00
Michael Telatynski
6b9dc40ad6
delint test
2021-08-11 16:12:08 +01:00
Michael Telatynski
da110855f0
delint and remove groups-specific tests and setups
2021-08-11 15:36:35 +01:00
Paulo Pinto
aaeb9969a4
Handle case where one message is pinned, and another unpinned
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-08-11 14:56:59 +01:00
Paulo Pinto
a51b114171
Change order of test cases
...
Just moving test cases so that "generic message" ones are grouped at the bottom.
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-08-11 14:51:37 +01:00
Paulo Pinto
ca8832f6fa
Fix test case
...
The test case is:
"mentions message when a single message was pinned, with multiple previously pinned messages"
However, the test case was also unpinning messages. That is now fixed.
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-08-11 14:47:50 +01:00
Paulo Pinto
79cf69bedb
Refactor tests so that snapshots aren't used
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-08-11 11:40:33 +01:00
Paulo Pinto
45fd3d83b0
Refactor tests
...
So that there's one top level `describe('TextForEvent')`, followed by a nested
`describe('textForPinnedEvent')`, containting all the `it()`s.
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-08-10 16:06:34 +01:00
Jaiwanth
e396dcfb10
Remove @types/streamsaver
2021-08-10 13:22:40 +05:30
Jaiwanth
ecf0aba97c
Test for different types of events
2021-08-10 12:25:51 +05:30
Jaiwanth
900accd823
Add test for renderToString
2021-08-09 13:25:32 +05:30
Jaiwanth
850b5452a0
Add tests for reply regex
2021-08-09 12:36:06 +05:30
Jaiwanth
45ce352d02
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into export-conversations
2021-08-09 10:44:13 +05:30
Šimon Brandner
881cac0d21
Merge remote-tracking branch 'upstream/develop' into fix/ringing-sound/15591
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-04 16:30:03 +02:00
James Salter
57f5c30af8
Merge pull request #6532 from matrix-org/posthog-analytics
...
Reinstate Posthog analytics PR fixing type definitions via installing dev dependencies
2021-08-04 09:47:39 +01:00
Andrew Morgan
c9c8177f58
Start a call immediately after creating a room via the dial pad ( #6529 )
2021-08-04 09:46:39 +01:00
Jaiwanth
c74d6c6fff
Assign replacements
2021-08-04 12:48:32 +05:30
David Baker
28f5dc483b
Update eslint plugin & fix silly indenting
...
As per https://github.com/matrix-org/eslint-plugin-matrix-org/pull/15
this caused a bunch of silly indenting to creep in, so this fixes it
back to the previous style.
2021-08-03 17:07:37 +01:00
Šimon Brandner
a18f41ceed
Fix tests
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-03 15:43:56 +02:00
Šimon Brandner
2a378f30b7
Attempt to fix tests
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-03 15:38:12 +02:00
James Salter
dc7aad1abf
Revert "Revert "Add support for Posthog Analytics under a labs flag""
...
This reverts commit c5ea253181
.
2021-08-03 11:55:02 +01:00
Jaiwanth
b333612dea
Fix comparing MB -> bytes
2021-08-03 14:53:23 +05:30
Jaiwanth
4824c93707
Add a test file
2021-08-03 14:36:21 +05:30
James Salter
c5ea253181
Revert "Add support for Posthog Analytics under a labs flag"
2021-08-03 07:30:02 +01:00
Jaiwanth
46e2f67f54
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into export-conversations
2021-08-03 10:03:16 +05:30
James Salter
a65b41be63
Merge pull request #6495 from matrix-org/posthog-analytics
...
Add support for Posthog Analytics under a labs flag
2021-08-02 14:46:17 +01:00
Michael Telatynski
3c436c9617
update setting naming to match style
2021-07-30 12:20:02 +01:00
Michael Telatynski
9eb0986353
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18089
...
Conflicts:
src/i18n/strings/en_EN.json
2021-07-30 11:34:52 +01:00
Jaiwanth
17e9cf4d2a
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into export-conversations
2021-07-30 12:17:31 +05:30
Jaiwanth
04edf4103f
Remove unnecessary awaits
2021-07-30 11:46:55 +05:30
Michael Telatynski
d459dbe700
Refactor Space Hierarchy stuff in preparation for pagination
2021-07-29 17:35:15 +01:00
Michael Telatynski
02dbdc5c0a
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18093
...
Conflicts:
src/components/views/spaces/SpaceTreeLevel.tsx
src/dispatcher/actions.ts
src/i18n/strings/en_EN.json
2021-07-29 16:11:16 +01:00
Michael Telatynski
6f37e8b223
Use getChildren instead of getSpaceSummary as MSC2946 has moved on
2021-07-29 12:16:59 +01:00
Michael Telatynski
6123ccb2eb
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18096
2021-07-28 17:45:15 +01:00
James Salter
ecbc536a3e
Add copyright header
2021-07-28 14:15:27 +01:00
James Salter
a09e046c18
Update test/PosthogAnalytics-test.ts
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-07-28 14:11:55 +01:00
James Salter
df7ebb2e7c
Remove commented out block
2021-07-28 14:00:37 +01:00
James Salter
3ff7de3c96
Mock SHA-256 to avoid problems loading crypto on Node 14
2021-07-28 13:44:06 +01:00
James Salter
7cf28de9c9
take 2 at fixing import
2021-07-28 11:32:17 +01:00
James Salter
7c62386915
lint
2021-07-28 11:28:19 +01:00
James Salter
c697079eb4
Fix import
2021-07-28 11:22:40 +01:00
James Salter
bd7e2dee3d
Merge remote-tracking branch 'origin' into posthog-analytics
2021-07-28 11:13:22 +01:00
James Salter
a6df687196
Tidy up interface and add some comments
2021-07-28 09:54:37 +01:00
James Salter
1d81bdc6f9
Interface changes and anonymity fixes
2021-07-28 09:37:08 +01:00
Michael Telatynski
776435f620
Switch all-rooms toggle for spaces to non-feature settings key
2021-07-27 21:17:24 +01:00
Michael Telatynski
0a9d3302ba
Fix home vs all rooms requiring app reload and change default to home
...
Consolidate ALL_ROOMS and HOME_SPACE storage
Fix behaviour when recalled room is no longer part of the target space
Improve tests
2021-07-27 21:11:47 +01:00
Michael Telatynski
ec173e74e6
Test & Refactor SpaceWatcher to allow all rooms/home change without needing reload
2021-07-27 20:15:40 +01:00
Paulo Pinto
400e772594
Fix formatting
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-07-27 17:53:33 +01:00
Paulo Pinto
3f2dadf0fe
When a single message is unpinned, link to it
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-07-27 17:14:50 +01:00
Paulo Pinto
8fe7df9171
When a single message is pinned, link to it
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-07-27 17:14:50 +01:00
Paulo Pinto
40ead34c08
Add test for textForPinnedEvent
...
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-07-27 17:14:50 +01:00
Michael Telatynski
755007cbee
Conclude labs flags and write more tests
2021-07-27 14:39:14 +01:00
James Salter
474561600e
Fix hash == ""
2021-07-27 13:31:56 +01:00
Michael Telatynski
c8d9294350
Discard unused utility now that we use Object.fromEntries
2021-07-23 18:40:22 +01:00
James Salter
95f4275807
Add Disabled anonymity, improve tests
2021-07-23 16:47:02 +01:00
Michael Telatynski
5ccd02dd6e
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/eslint1
...
Conflicts:
src/components/views/dialogs/CreateRoomDialog.tsx
src/components/views/messages/MImageBody.tsx
2021-07-23 10:42:46 +01:00
Michael Telatynski
f5630acea7
Adhere to better eslint rules
2021-07-23 10:35:10 +01:00
James Salter
6737cfd297
remove superflous dnt clear
2021-07-21 16:10:06 +01:00
James Salter
726b4497b2
Remove redactedCurrentLocation and rely on posthog for DNT
...
* Redact and pass the redacted url as a property. redactedCurrentLocation might have issues with concurrent events
* Remove DNT code and rely on posthog
2021-07-21 16:06:09 +01:00
James Salter
4c6b0d35ad
Improve analytics interface
...
* Make it an error to call it before its initialised, and separately track whether its been enabled
* Use anonmity enum in the public interface
* Properly await upstream calls
* Fix accidental test fixture cross-reliance
2021-07-21 14:58:43 +01:00
James Salter
6da3cc8ca1
Redact sensitive data
2021-07-21 13:48:10 +01:00
Michael Telatynski
390b05617c
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/17686
...
Conflicts:
src/components/views/dialogs/CreateRoomDialog.tsx
src/components/views/dialogs/RoomUpgradeDialog.tsx
src/components/views/dialogs/RoomUpgradeWarningDialog.tsx
src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx
2021-07-21 10:46:41 +01:00
James Salter
4b0cb409a0
Add identifyUser
2021-07-21 08:38:58 +01:00
James Salter
74b0e52f9a
Enforce anon/pseudo-anon via types
2021-07-21 08:23:42 +01:00
James Salter
3135e42586
Add test for silently ignoring messages when not initialised
2021-07-21 07:42:55 +01:00