Commit Graph

46842 Commits

Author SHA1 Message Date
Kerry Archibald
111210e117 segment into 4 2023-09-04 17:20:16 +12:00
Germain
4e6148d798
Merge branch 'develop' into germain-gg/fix-right-panel-member 2023-09-01 14:42:42 +01:00
Andy Balaam
ce8d07fa72
Only display RoomKnocksBar when feature flag is enabled (#11513) 2023-09-01 12:03:53 +00:00
Michael Telatynski
fbe5a7d4b8
Use Intl.RelativeTimeFormat for "last week" and "last month" (#11511)
* Use Intl.RelativeTimeFormat for "last week" and "last month"

* i18n
2023-09-01 11:52:24 +00:00
Germain
1b8d00d1d4 Merge branch 'develop' into germain-gg/fix-right-panel-member 2023-09-01 12:36:49 +01:00
Sumner Evans
a54f2ff878
Render custom images in reactions (#11087)
* Add support for rendering custom emojis in reactions

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Include custom reaction short names in tooltips

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Use custom reaction shortcode for accessibility

This uses the shortcode in the following places:

* The aria-label of the reaction buttons
* The alt text for the reaction image

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Remove explicit instantiation of `customReactionName` variable and add types

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Put custom reaction images behind a labs flag

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Use UnstableValue for finding the shortcode

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Sumner Evans <sumner@beeper.com>

* Move calculation of whether to render custom reaction images up to ReactionRow

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Make alt text more friendly when custom reaction doesn't have shortcode

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Add test for ReactionsRowButton

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Apply suggestions from code review

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Don't use Optional

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Fix ReactionsRowButton test

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Sumner Evans <sumner@beeper.com>

---------

Signed-off-by: Sumner Evans <sumner@beeper.com>
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-09-01 10:16:24 +00:00
Germain
91e23de234 Update wording for the notifications labs flag 2023-09-01 11:00:34 +01:00
Germain
d551469543
Room header UI updates (#11507)
* Fix performance issues with useRoomMembers

With the current implementation it would create a new function, with leading: true, rendering the whole throttling useless

* Add public room indicator

* Format room members count better

* Add public room test

* Add search to room summary card

* Update settings UI

* Update snapshot

* Remove default title attribute
2023-09-01 09:45:50 +00:00
Richard van der Hoff
30d997e21c
Remove green "verified" bar for e2e events (#11496)
There is a little-known feature where, if you have verified a user (eg, via the
emoji game), then when you mouse-over a message that they sent, it gets a green
highlight.

We also show a brown bar sometimes, and according to the CSS there may be a
yellow bar too?

Very few people seem to know this exists, and even if you do know it exists
nobody seems to understand what exactly the various colours are supposed to be.

So, rather than porting this magic mystery feature to Rust Crypto, let's rip it
out.
2023-09-01 09:41:14 +00:00
Charly Nguyen
6faad7aae3
Fix avatars of knock members for people tab of room settings (#11506)
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
2023-09-01 09:40:35 +00:00
Michael Telatynski
b1f17f5478
Migrate more strings to translation keys (#11510) 2023-09-01 10:53:32 +01:00
Germain
f8ed681ee3 Snapshot updates 2023-09-01 08:33:03 +01:00
Michael Telatynski
0e8f79b268
i18n 2023-09-01 08:30:05 +01:00
Michael Telatynski
f88d76e2ea
Migrate more strings to translation keys (#11499) 2023-09-01 08:26:48 +01:00
Germain
de88a7c8df Apply labs flag to legacy room header too 2023-09-01 07:56:29 +01:00
Germain
6b57ab53df Remove ReloadOnChangeController for feature_notifications 2023-09-01 07:50:18 +01:00
Germain
84922fc488 Update tests 2023-08-31 21:57:45 +01:00
Germain
a5e186b978 Move notifications bell back in labs 2023-08-31 21:21:32 +01:00
Charly Nguyen
45094bda7c
Introduce room knocks bar (#11475)
* Introduce room knocks bar

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

* Apply PR feedback

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>

---------

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
2023-08-31 13:43:38 +00:00
Germain
f948a8f798
Update member count on room summary update (#11488)
* Update member count on room summary update

* Fix performance regression for large rooms

* Update useRoomMemberCount JSDoc

* Improve throttle updates definition

* remove useCallback
2023-08-31 13:36:47 +00:00
Germain
77a468f8e8
Extract place call logic to its own file (#11494)
* Extract place call logic to its own file

* Simplify makeCall by not using useCallback

* lint fix
2023-08-31 13:27:15 +00:00
Andy Balaam
c7b0850ffe
Improve comments in unread tests (#11491) 2023-08-31 13:08:37 +00:00
Germain
649e5202d4 Clarifying documentation for setPhase 2023-08-31 14:01:23 +01:00
Germain
7836de77d0 Fix SpaceRoomView member list back button not working 2023-08-31 13:46:22 +01:00
Germain
46037d2357
Add E2E status in room header (#11493)
* Add E2E status in room header

* Clearer logic for dmRoomList

Co-authored-by: Andy Balaam <andy.balaam@matrix.org>

* Add test for E2E shield

* Remove dead code

---------

Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-08-31 11:06:14 +00:00
Germain
870f40575c Merge branch 'develop' into germain-gg/fix-right-panel-member 2023-08-31 11:37:41 +01:00
Michael Telatynski
6b3243b27b
Migrate more strings to translation keys (#11498) 2023-08-31 11:22:10 +01:00
Michael Telatynski
9329b896b3
Port more strings to translation keys (#11474)
* Port composer formatting strings to translation keys

```
replace "Bold" "composer|format_bold"
replace "Italic" "composer|format_italic"
replace "Underline" "composer|format_underline"
replace "Strikethrough" "composer|format_strikethrough"
replace "Bulleted list" "composer|format_unordered_list"
replace "Numbered list" "composer|format_ordered_list"
replace "Indent increase" "composer|format_increase_indent"
replace "Indent decrease" "composer|format_decrease_indent"
replace "Code" "composer|format_inline_code"
replace "Code block" "composer|format_code_block"
replace "Link" "composer|format_link"

copy "composer|format_bold" "Bold"
copy "composer|format_link" "Link"
copy "composer|format_inline_code" "Code"
```

* Port role strings to translation keys

```
copy "Default" "power_level|default"
copy "Restricted" "power_level|restricted"
copy "Moderator" "power_level|moderator"
copy "Admin" "power_level|admin"
```

* Port bug reporting strings to translation keys

```
replace "If you've submitted a bug via GitHub, debug logs can help us track down the problem. " "bug_reporting|introduction"
replace "Debug logs contain application usage data including your username, the IDs or aliases of the rooms you have visited, which UI elements you last interacted with, and the usernames of other users. They do not contain messages." "bug_reporting|description"
copy "To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>." "bug_reporting|matrix_security_issue"
replace "Submit debug logs" "bug_reporting|submit_debug_logs"
replace "Bug reporting" "bug_reporting|title"
replace "If there is additional context that would help in analysing the issue, such as what you were doing at the time, room IDs, user IDs, etc., please include those things here." "bug_reporting|additional_context"
replace "Send logs" "bug_reporting|send_logs"
replace "GitHub issue" "bug_reporting|github_issue"
replace "Download logs" "bug_reporting|download_logs"
copy "Before submitting logs, you must <a>create a GitHub issue</a> to describe your problem." "bug_reporting|before_submitting"
```

* i18n

* Port time duration strings to translation keys

```
replace "%(hours)sh %(minutes)sm %(seconds)ss left" "time|hours_minutes_seconds_left"
replace "%(minutes)sm %(seconds)ss left" "time|minutes_seconds_left"
replace "%(seconds)ss left" "time|seconds_left"
replace "%(date)s at %(time)s" "time|date_at_time"
replace "%(value)sd" "time|short_days"
replace "%(value)sh" "time|short_hours"
replace "%(value)sm" "time|short_minutes"
replace "%(value)ss" "time|short_seconds"
replace "%(days)sd %(hours)sh %(minutes)sm %(seconds)ss" "time|short_days_hours_minutes_seconds"
replace "%(hours)sh %(minutes)sm %(seconds)ss" "time|short_hours_minutes_seconds"
replace "%(minutes)sm %(seconds)ss" "time|short_minutes_seconds"
```

* i18n
2023-08-31 07:35:34 +00:00
dependabot[bot]
2bc129b848
Bump @adobe/css-tools from 4.2.0 to 4.3.1 (#11485)
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 07:17:41 +00:00
Germain
9cfccda97e Use new setPhase helper in RoomHeader component 2023-08-31 07:50:33 +01:00
Germain
b37a808985 Move ViewUser action callback to RoomView 2023-08-31 07:46:09 +01:00
Germain
dc70ea5059
Add face pile to rooms (#11356)
* Add face pile to rooms

* Migrate FacePile to use Compound

* Fix CI

* Use FacePile component in room header

* Add facepile tests

* Make dead code CI happy

* Lint

* Fix tests

* Fix CSS selectors

* Update room face pile snapshot

* Use useMemo instead of useState and useEffect

* Remove unused imports

* Update snapshot

* Update snapshot
2023-08-30 17:55:02 +00:00
Šimon Brandner
af268b4a03
Support for embedded E2EE (#11492)
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-30 17:30:29 +00:00
Andy Balaam
aaea42c626
Use a single synapse for all unread tests. (#11489)
Saves about 30 seconds per run.
2023-08-30 15:15:47 +00:00
Germain
6aa86a858f
Fixes read receipt avatar offset (#11483)
* Fixes read receipt avatar offset

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

* Fix avatar collapsing in thread list

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

* Make composer pills use new avatar design

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

* Update snapshots

* Update UserInfo snapshot

* Update HTMLExport snapshot

* Fixes avatar placeholder font

Fixes https://github.com/vector-im/element-web/issues/26061
2023-08-30 11:47:35 +00:00
Richard van der Hoff
6cc42b7e2e
Improve error handling for DeviceListener (#11484)
... particularly for when it races with a client shutdown.
2023-08-30 09:35:15 +00:00
Charly Nguyen
50160b9969
Allow requesting to join knock rooms via spotlight (#11482)
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
2023-08-30 06:54:26 +00:00
Germain
200631f3a5
Remove unwanted console.table (#11477) 2023-08-29 11:43:02 +00:00
Johannes Marbach
e8e56f8164
Revert "Update react-types (#10762)" (#11476)
This reverts commit 133e973955.
2023-08-29 11:39:52 +00:00
RiotRobot
e73cda1b56 Reset matrix-js-sdk back to develop branch 2023-08-29 11:00:55 +01:00
RiotRobot
063d0f2167 Resetting package fields for development 2023-08-29 11:00:38 +01:00
RiotRobot
93524237a7 Merge branch 'master' into develop 2023-08-29 11:00:32 +01:00
RiotRobot
313aebfeba v3.79.0 2023-08-29 11:00:13 +01:00
RiotRobot
f80a69e193 Prepare changelog for v3.79.0 2023-08-29 11:00:11 +01:00
RiotRobot
71a5df3014 Upgrade matrix-js-sdk to 28.0.0 2023-08-29 10:58:12 +01:00
Germain
968213a5d7
Fix avatar defects (#11473)
* Fix avatar initial centering in pills for bubbles

* Express user info avatar size in pixes

* fix link pill icon

* Fix snapshot test
2023-08-29 07:57:23 +00:00
renovate[bot]
133e973955
Update react-types (#10762)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-25 19:06:37 +00:00
Germain
64f762d7b0
Fix consistent avatar output for Percy (#11472)
* Fix consistent avatar output for Percy

* Fix last room in list clipped

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

* Fix decorated avatar indicator centering

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

* Fix uploader centering
2023-08-25 13:52:20 +00:00
Andy Balaam
c6d9228f94
Fix flaky Cypress test cypress/e2e/widgets/stickers.spec.ts (#11440)
* Fix tests choosing the wrong room by matching on exact room name in viewRoomByName

* Allow either of the two different URLs for thumbnails in sticker test

* Find room by looking inside Rooms for something with the right text

* Check for the download URL of a thumbnail only, which will appear after the thumbnail 404s

* Click the title div instead of the contained span, to avoid clicking something potentially off-screen

* Find by label text because that works when room list is folded

* Find room by title because label text is different

* Attempt to allow opening room by name in all needed cases
2023-08-25 11:04:56 +00:00
Michael Telatynski
9d417cea7c
Migrate credits translations to IDs (#11453)
* Migrate credits translations to IDs

* Discard changes to src/i18n/strings/da.json

* Discard changes to src/i18n/strings/bg.json

* Discard changes to src/i18n/strings/ar.json

* Discard changes to src/i18n/strings/az.json

* Discard changes to src/i18n/strings/be.json

* Discard changes to src/i18n/strings/ca.json

* Discard changes to src/i18n/strings/el.json

* Discard changes to src/i18n/strings/en_US.json

* Discard changes to src/i18n/strings/eo.json

* Discard changes to src/i18n/strings/eo.json

* Discard changes to src/i18n/strings/eu.json

* Discard changes to src/i18n/strings/fa.json

* Discard changes to src/i18n/strings/ga.json

* Discard changes to src/i18n/strings/gl.json

* Discard changes to src/i18n/strings/he.json

* Discard changes to src/i18n/strings/hi.json

* Discard changes to src/i18n/strings/hr.json

* Discard changes to src/i18n/strings/is.json

* Discard changes to src/i18n/strings/ja.json

* Discard changes to src/i18n/strings/jbo.json

* Discard changes to src/i18n/strings/kab.json

* Discard changes to src/i18n/strings/ko.json

* Discard changes to src/i18n/strings/lt.json

* Discard changes to src/i18n/strings/zh_Hans.json

* Discard changes to src/i18n/strings/tzm.json

* Discard changes to src/i18n/strings/tr.json

* Discard changes to src/i18n/strings/th.json

* Discard changes to src/i18n/strings/te.json

* Discard changes to src/i18n/strings/ta.json

* Discard changes to src/i18n/strings/sr.json

* Discard changes to src/i18n/strings/ru.json

* Discard changes to src/i18n/strings/ro.json

* Discard changes to src/i18n/strings/pt_BR.json

* Discard changes to src/i18n/strings/pt.json

* Discard changes to src/i18n/strings/oc.json

* Discard changes to src/i18n/strings/nn.json

* Discard changes to src/i18n/strings/nl.json

* Discard changes to src/i18n/strings/nb_NO.json

* Discard changes to src/i18n/strings/ml.json

* Discard changes to src/i18n/strings/lv.json

* Discard changes to src/i18n/strings/lo.json
2023-08-25 10:37:13 +00:00