Commit Graph

39890 Commits (889b0cebb2ad799bec5251156e9e23faa7366e03)

Author SHA1 Message Date
J. Ryan Stinnett 81f2b19d32
Tweak timeline card layout (#7743) 2022-02-08 13:11:18 +00:00
Andy Balaam 76cafb7aa9
Ensure location bodies have a width in bubbles (#7742) 2022-02-08 12:59:08 +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 af0b21de9d
Improved way to retrieve event sender for thread summary (#7732) 2022-02-08 12:08:47 +00:00
Michael Telatynski 773c7f46b7
Tune aria-live regions around clocks/timers (#7735) 2022-02-08 11:20:03 +00:00
Michael Telatynski 4501308b47
Fix instances of decorated room avatar wrongly having their own tabIndex (#7730) 2022-02-08 09:17:08 +00:00
Aaron Raimist 5278679076
Capitalize "Privacy" in UserMenu (#7738) 2022-02-08 08:31:51 +00:00
Šimon Brandner c52eaa53ce
Remove weird padding on stickers (#6271) 2022-02-08 08:27:37 +00:00
Šimon Brandner 8e72118b5d
Auto select "Other homeserver" when user press "Edit" in homeserver field (#7337) 2022-02-07 17:50:25 +00:00
Michael Telatynski 834d0ec6fe
Fix width issue of the composer overflow menu items (#7731) 2022-02-07 17:49:04 +00:00
Germain 544957bdad
Use typographical quotes in no threads UI (#7713) 2022-02-07 15:13:34 +00:00
Michael Telatynski ec92102fe3
Properly handle persistent widgets when room is left (#7724) 2022-02-07 14:40:22 +00:00
Michael Telatynski d72469663d
Add unread badges and avatar decorations to spotlight search (#7696) 2022-02-07 13:50:04 +00:00
Michael Telatynski 30e80aa87d
Null guard space hierarchy (#7729) 2022-02-07 13:48:35 +00:00
Michael Telatynski 5d89230271
Remove IA 1.1 feedback toast (#7720) 2022-02-07 12:46:48 +00:00
Šimon Brandner 472115cd9c
Fix add existing rooms button (#7728) 2022-02-07 10:19:14 +00:00
J. Ryan Stinnett 7f3f186044
Switch back to upstream Linkify (#7677) 2022-02-04 17:21:03 +00:00
David Baker 3f789d32c1
Add logging to diagnose no-video bug (#7721)
Log in/outbound RTP stats so we can see ifn we're sending & receiving
video, and log when we successfully play the video element.
2022-02-04 14:02:56 +00:00
Šimon Brandner ddb15cb19e
Bypass rageshake when warning about devtools (#7717) 2022-02-04 13:30:18 +00:00
Michael Telatynski 78373e86ea
Truncate long server names on login/register screen (#7702)
Co-authored-by: Aaron Raimist <aaron@raim.ist>
2022-02-04 10:20:20 +00:00
Šimon Brandner 2e19f81bd5
Hide composer buttons if we can't send events (#7719) 2022-02-04 09:36:31 +00:00
Šimon Brandner 29cf22a521
Fix `JumpToLatestMessage` (#7715) 2022-02-03 17:22:41 +00:00
Germain df86678798
Update to thread UI (#7714) 2022-02-03 16:24:49 +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
Michael Telatynski 226ccfc45c
Fix creating polls outside of threads (#7711) 2022-02-03 11:50:07 +00:00
David Baker 9adfdb8fed
Open native room when clicking notification from a virtual room (#7709)
* Handle virtual rooms when showing a notification

* This should be using sharedInstance()

Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
2022-02-03 11:31:32 +00:00
Michael Telatynski 760d269671
Fix relative link handling in Element Desktop (#7708) 2022-02-03 08:55:49 +00:00
Germain f0446a23d5
Fix poll creation from a thread (#7706) 2022-02-02 17:55:41 +00:00
Michael Telatynski 75b03ca101
Reuse CopyableText component in all places it can be (#7701) 2022-02-02 12:16:00 +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
Andy Balaam 70a44a8cd6
Enable location sharing (#7703) 2022-02-02 11:44:17 +00:00
Andy Balaam afbc843157
Fit location into the width of the container (#7705) 2022-02-02 11:41:33 +00: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
Michael Telatynski fce19d763a
Make Spotlight Dialog roving reset more stable (#7698) 2022-02-02 09:31:05 +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
Michael Telatynski c011fb7475
Fix incorrect sizing of DecoratedRoomAvatar in RoomHeader (#7697) 2022-02-02 09:22:27 +00:00
Šimon Brandner bb03298e6d
Add a warning to the console to discourage attacks and encourage contributing (#7673) 2022-02-01 17:24:17 +00:00
Eric Eastwood 9b0da552e7
Fix vertical spacing in `compact` `<ContextMenu>` (#7684)
Fix https://github.com/vector-im/element-web/issues/20801

Regressed in https://github.com/matrix-org/matrix-react-sdk/pull/7339

Relevant styles were first added in https://github.com/matrix-org/matrix-react-sdk/pull/4858
(context behind why the original styles were added)

---

## Cause

Battling CSS specificity between the default and compact styles, https://specificity.keegan.st/

Known good (On `app.element.io` (expected)):
```css
// 0 3 0
.mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton {
    padding-top: 12px;
    padding-bottom: 12px;
}

// Compact styles override our default rules because they come
// after the other styles (source order) and have the same specificity
// 0 3 0
.mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * {
    padding: 8px 16px 8px 11px;
}
```

Bad (On `develop` (broken)):
```css
// Default rules always override because they have higher specificity.
// The `:not()` selector doesn't add any extra specificity but the selectors inside the `:not(...)` do.
// 0 4 0
.mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) {
    padding-top: 12px;
    padding-bottom: 12px;
}

// 0 3 0
.mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * {
    padding: 8px 16px 8px 11px;
}
```
2022-02-01 11:23:21 -06:00
RiotRobot 82f3888cee Reset matrix-js-sdk back to develop branch 2022-02-01 15:52:28 +00:00
RiotRobot e90885dd9d Merge branch 'master' into develop 2022-02-01 15:52:12 +00:00
RiotRobot 34a95f4d27 v3.39.1 2022-02-01 15:50:26 +00:00
RiotRobot 710c4b77f2 Prepare changelog for v3.39.1 2022-02-01 15:50:25 +00:00
Michael Telatynski 8dd0722e04
Update eventName=Screen to $screen to match PostHog's special behaviour (#7667) 2022-02-01 15:49:49 +00:00
David Baker 806cd264df
Fix the sticker picker (#7692) (#7695)
* Fix the sticker picker

Don't stop user widgets on room change: they're not room-specific.

Fixes https://github.com/vector-im/element-web/issues/20797

* Use 'userWidget' prop rather than roomId being defined
2022-02-01 15:40:50 +00:00
David Baker 6c16a2c9dd
Fix publishing address wrongly demanding the alias be available (#7690) (#7693)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-02-01 15:40:37 +00:00
David Baker b7c8ce6920
Ensure UserInfo can be rendered without a room (#7687) (#7694)
Co-authored-by: David Baker <dave@matrix.org>

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-02-01 15:40:27 +00:00
David Baker 5b999300b2
Fix the sticker picker (#7692)
* Fix the sticker picker

Don't stop user widgets on room change: they're not room-specific.

Fixes https://github.com/vector-im/element-web/issues/20797

* Use 'userWidget' prop rather than roomId being defined
2022-02-01 15:34:22 +00:00
Michael Telatynski 98c5f50f36
Fix publishing address wrongly demanding the alias be available (#7690) 2022-02-01 15:06:26 +00:00
Michael Telatynski bf8c04ff55
Prevent MemberAvatar soft-crashing when rendered with null member prop (#7691) 2022-02-01 15:06:16 +00:00
Germain 5973d725e0
Add new threads to the panel as they are discovered (#7688) 2022-02-01 15:01:00 +00:00