1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00
Commit Graph

48222 Commits

Author SHA1 Message Date
b0d4cce091 Discard changes to src/settings/handlers/AbstractLocalStorageSettingsHandler.ts 2024-08-05 10:56:44 +01:00
bb58c9425a Merge branch 'develop' into t3chguy/react18/update 2024-08-05 10:56:09 +01:00
090586439f Preparations for React 18 (#12860)
* Add missing types

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Eagerly add `children` to props in prep for React 18

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Avoid assuming that setState immediately sets `this.state` values

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add missing context declaration

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix UserFriendlyError types to work with React 18

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-05 07:59:27 +00:00
712ac34755 Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-02 15:07:31 +01:00
df1b7772f2 Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-02 14:03:31 +01:00
accbe07439 Merge pull request #12857 from matrix-org/dbkr/email_phone_css_temporary_move
Move General user settings styles to more specific places
2024-08-02 13:29:12 +01:00
899ba238ac Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/react18/update 2024-08-02 13:26:10 +01:00
c3505a63ea Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-02 13:22:03 +01:00
3c490fa105 Fix comment typos 2024-08-02 13:12:05 +01:00
2bb46e960c Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-02 09:37:28 +01:00
1daafdc7a3 Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-02 09:04:32 +01:00
50d1257463 Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-02 08:42:38 +01:00
67f5c08301 [create-pull-request] automated change (#12858)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2024-08-02 06:16:25 +00:00
8dfe561225 Fix test to not use otherwise unused class name 2024-08-01 21:36:00 +01:00
69efe91bb5 More reanaming & snapshot 2024-08-01 21:15:05 +01:00
dd61eb932c Fix classname 2024-08-01 18:38:21 +01:00
d60d28d7c4 More snapshots 2024-08-01 18:06:30 +01:00
a634542450 Update snapshot 2024-08-01 17:56:17 +01:00
da67dbcc87 Merge branch 'develop' into dbkr/email_phone_css_temporary_move 2024-08-01 17:38:42 +01:00
c1d4199b02 Upgrade target to es2022 (#12852)
* Upgrade target to es2021

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Upgrade to es2022

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix babel config

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix React contexts

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix types

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix React state

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 16:14:28 +00:00
78378615d1 Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/react18/update
# Conflicts:
#	src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx
#	test/components/views/right_panel/__snapshots__/RoomSummaryCard-test.tsx.snap
2024-08-01 17:04:11 +01:00
8d7f0aa3cc Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 17:01:42 +01:00
77062ac721 Move General user settings styles to more specific places
This was w grab bag of styles for the email/phone components and
one for something now in preferences. Move them elsewhere so I can
rename the tab sensibly.
2024-08-01 16:45:56 +01:00
9cd0c247a2 Convert general user to functional component (#12856) 2024-08-01 15:28:11 +00:00
07670a75ce Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 16:15:53 +01:00
e6bb0f34d4 Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 15:29:35 +01:00
127051892d Invite dialog: display MXID on its own line (#11756)
* Invite dialog: display MXID on its own line

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

* Refactor to satisfy i18n linter

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>

---------

Signed-off-by: Andrew Ferrazzutti <andrewf@element.io>
2024-08-01 14:17:49 +00:00
6f2dd10873 Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 15:10:38 +01:00
317ffcf1ac Update to React 18
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 14:55:09 +01:00
17506f76bf Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 13:14:47 +01:00
939147c6ad Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/es2022
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

# Conflicts:
#	src/components/structures/EmbeddedPage.tsx
#	src/components/structures/FilePanel.tsx
#	src/components/structures/NotificationPanel.tsx
#	src/components/structures/RoomStatusBar.tsx
#	src/components/views/elements/AppTile.tsx
#	src/components/views/messages/EditHistoryMessage.tsx
#	src/components/views/messages/MessageActionBar.tsx
#	src/components/views/right_panel/TimelineCard.tsx
#	src/components/views/rooms/Autocomplete.tsx
#	src/components/views/rooms/EditMessageComposer.tsx
#	src/components/views/rooms/ReplyPreview.tsx
#	src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx
#	src/components/views/spaces/SpaceTreeLevel.tsx
2024-08-01 13:04:00 +01:00
b6addb4118 Fix React contexts (#12855) 2024-08-01 13:01:05 +01:00
a38a5161ef Align RoomSummaryCard styles with Figma (#12793)
* Extract useIsVideoRoom hook

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Align RoomSummaryCard styles with Figma

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 12:00:40 +00:00
9b77279b3e [create-pull-request] automated change (#12851)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 11:20:50 +00:00
fa60edf00f Ignore permalink_prefix when serializing pills (#11726)
* Ignore permalink_prefix when serializing Markdown

fixes vector-im/element-web/issues/26002

During serialization of messages, pills were wrongfully serialized to a URL
starting with `permalink_prefix`. This is against the Spec (which mandates
https://matrix.to/#/ links) and the resulting pills were not recognized as
pills in other clients.

Spec-Appendix concerning matrix.to links: https://spec.matrix.org/v1.8/appendices/#matrixto-navigation

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Test for pill serialization with permalink_prefix set

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Test that permalink_prefix is used for permalink creation

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Fix lint issues introduced

Signed-off-by: Lars Wickel <git@herkulessi.de>

* Incorporate requested changes

Signed-off-by: Lars Wickel <git@herkulessi.de>

---------

Signed-off-by: Lars Wickel <git@herkulessi.de>
Co-authored-by: herkulessi <git@herkulessi.de>
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2024-08-01 11:17:44 +00:00
e6a3238621 Deflake the chat export test (#12854)
Just set a fixed time instead, as per comment (Im not actually
sure my changes broke this, I think it might just be because it's
August now).
2024-08-01 10:37:49 +00:00
bb80f28e66 Fix React state
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 11:35:46 +01:00
a1c6ba3782 Fix types
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 11:12:44 +01:00
2938e5733e Fix React contexts
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 10:56:29 +01:00
f33eec70ed Fix babel config
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 09:59:28 +01:00
6d87029807 Upgrade to es2022
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 09:50:42 +01:00
c290e7e375 Upgrade target to es2021
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-08-01 09:30:19 +01:00
a0c029c3c1 Fix alignment of RTL messages (#12837)
* Fix alignment of RTL messages

Inspired by https://github.com/matrix-org/matrix-react-sdk/pull/5453 but
hopefully with the edited marker in the right place.

This is a PoC: types aren't correct and the style needs pulling
out to a class. Plus it would probably need more visual tests added.
If this looks acceptable, I can make these changes.

* Fix spacing between text and edited annotation

* Update snapshot

* Update more snapshots

* More snapshots

* More more snapshots

* Split out style

* Fix emotes

This will cause them always be right-justified if the display name
is rtl.

* Add playwright test for ltr/rtl message rendering

* Better snapshots

* Await on message sending

* Better waiting, hopefully

* Old snapshot files

* Really hopefully fixed screenshots this time

* Don't include the message action bar in the screenshots
2024-07-31 22:23:46 +00:00
f3ac6692da Handle media download errors better (#12848)
* Handle media download errors better

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add test

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Show error if media download failed

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* More tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-31 14:07:59 +00:00
b55653ddf0 Extract Extensions into their own right panel tab (#12844)
* Extract useIsVideoRoom hook

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Move useWidgets hook to WidgetUtils

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Extract Extensions into their own right panel tab

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove unused components & classes

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-31 09:38:25 +00:00
fae5bf1612 Remove topic from new room header and expand right panel topic (#12842)
* Remove topic from new Room Header

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Hide topic edit in right panel unless user has permission to edit

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Expand right panel room topic by default

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix text align of topic in right panel

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Fix topic colour in right panel

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Exclude `Add topic` from text-align

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Don't show `Add topic` if !perms

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-31 09:23:01 +00:00
2defb1041e [create-pull-request] automated change (#12847)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2024-07-31 06:22:48 +00:00
aeecba97e9 [create-pull-request] automated change (#12846)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
2024-07-31 06:17:53 +00:00
2e6f8511f2 Extract useIsVideoRoom hook (#12843)
* Extract useIsVideoRoom hook

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update RoomInfoLine.tsx

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-30 17:36:04 +00:00
bc21ed3010 Fix picklekey debug (#12845)
https://github.com/matrix-org/matrix-react-sdk/pull/12831 added some logging,
but I messed it up
2024-07-30 17:21:43 +00:00