Travis Ralston
dad1d3f131
Fix runtime react errors for various parts of the app
...
These are just the ones that were causing console flooding on reload in development.
* Elements in a list need a `key`
* `super()` needs to be supplied with the same props as the parent
* `<div>` (AccessibleButton) cannot be a descendant of `<p>` - this was a problem in the NewRoomIntro "Add topic" button
* `label` is a non-boolean property and cannot receive "false"
2021-10-18 13:47:42 -06:00
Germain Souquet
d315641056
Make threads use 'm.thread' relation
2021-10-14 17:04:27 +01:00
Travis Ralston
ad53662704
add comma
2021-10-12 15:26:22 -06:00
Travis Ralston
71c5b02390
Add feature flag for polls and placeholder dialog
...
We're anticipating development of polls soon, so for efficiency reasons we're getting the labs flag in early. If something goes wrong with the plan, this whole change will be reverted.
2021-10-12 15:13:56 -06: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
Travis Ralston
333418232d
Merge pull request #6808 from SimonBrandner/task/context_menus-ts
...
Convert `/context_menus` and `/avatars` to TS
2021-09-14 13:07:15 -06:00
Šimon Brandner
5baaa6b77e
Convert MemberStatusMessageAvatar to TS
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-09-14 19:23:12 +02:00
Dariusz Niemczyk
e913f03a67
Add missing types
2021-09-13 22:11:43 +02:00
Germain Souquet
aa53444267
Improve narrow composer usability
2021-09-09 13:27:25 +01:00
Germain Souquet
bbf66a0011
Make label clickable on narrow mode context menu
2021-09-07 17:10:09 +01:00
Germain Souquet
646ef197fe
Fix PR UI defects
2021-09-07 16:02:26 +01:00
Travis Ralston
329292eb9b
Revert "Revert "Create narrow mode for Composer""
2021-09-06 22:11:35 -06:00
Travis Ralston
945181fe39
Revert "Create narrow mode for Composer"
2021-09-06 22:08:50 -06:00
Germain Souquet
f549c1d52b
Code style updates
2021-09-06 08:14:49 +01:00
Germain Souquet
997f43cb82
Implement new narrow mode UI
2021-09-03 12:03:19 +01:00
Germain Souquet
6d80976eae
Merge branch 'develop' into gsouquet/compact-composer-18533
2021-09-03 09:20:38 +01:00
Germain Souquet
bb87834dc8
Appease linter
2021-09-02 10:06:09 +01:00
Germain Souquet
e416952c90
Merge branch 'develop' into gsouquet/compact-composer-18533
2021-09-02 08:31:29 +01:00
Germain Souquet
95d1b06abb
Make composer able to reply in thread or in room timeline
2021-09-01 12:12:40 +01:00
Germain Souquet
a1f6708a56
Hide voice recording button in narrow mode
2021-08-27 11:12:25 +01:00
Germain Souquet
9018973f15
Position sticker picker correctly
2021-08-25 17:59:06 +01:00
Germain Souquet
31b3b2e2ed
Fix Sticker and Emoji picker opening on narrow mode
2021-08-25 15:39:50 +01:00
Germain Souquet
3c33e3cc61
Make all buttons part of a button array
...
Preparation work for narrow layout of the message composer.
The voice record button needed to be extracted from VoiceRecordComposerTile
2021-08-25 11:35:23 +01:00
Germain Souquet
30a762944a
Implement a very low fidelity UI for threads
2021-08-20 12:11:04 +01:00
Germain Souquet
d1dbfbd014
hide thread events from the timeline
2021-08-17 11:10:02 +01:00
Travis Ralston
fea30e5f5f
Fix disabled state for voice messages + send button tooltip
...
Fixes https://github.com/vector-im/element-web/issues/18413
2021-08-05 12:38:15 -06:00
Travis Ralston
711210d16e
Merge pull request #6437 from matrix-org/travis/voice-messages/delabs
...
Remove voice messages labs flag
2021-08-02 02:02:36 -06:00
Travis Ralston
7f01e31040
Fix timing of voice message recording UI appearing
...
Fixes https://github.com/vector-im/element-web/issues/18223
We delay the composer's state until a recording is truly ready here, preventing buttons from disappearing while we're still figuring things out.
2021-07-26 23:33:21 -06:00
Michael Telatynski
e78a1adb6f
Merge pull request #6459 from matrix-org/t3chguy/eslint1
2021-07-23 16:23:38 +01:00
Michael Telatynski
f5630acea7
Adhere to better eslint rules
2021-07-23 10:35:10 +01:00
Travis Ralston
eec63574e6
Move src/voice to src/audio for better naming
...
Many of these files are used by Audio and Voice messages.
Fixes https://github.com/vector-im/element-web/issues/18131
2021-07-22 09:26:26 -06:00
Travis Ralston
0e3cc6b8f4
Remove voice messages labs flag
...
Fixes https://github.com/vector-im/element-web/issues/17151
2021-07-21 18:09:35 -06:00
Michael Telatynski
ce78cdf4ad
Conform to new react and typescript eslint rules
2021-07-19 22:43:11 +01:00
Šimon Brandner
ab4cd9d0fd
Delint
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-03 10:10:17 +02:00
Šimon Brandner
b7ef7d2a47
Fifth batch of burning
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-03 10:06:42 +02:00
Michael Telatynski
e768ecb3d0
Typescript conversion of Composer components and more
2021-06-30 13:01:26 +01:00
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
2021-06-29 13:11:58 +01:00
Michael Telatynski
1ffbaee560
update style of imports in all modified files
2021-05-26 14:14:55 +01:00
Michael Telatynski
4a5c634d82
Iterate PR
2021-05-24 22:02:50 +01:00
Michael Telatynski
d8acc0612a
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/12740
...
Conflicts:
src/components/views/rooms/EditMessageComposer.js
src/components/views/rooms/SendMessageComposer.js
2021-05-24 21:57:38 +01:00
Travis Ralston
5e646f861c
Wire up the send button for voice messages
...
This fixes a bug where we couldn't upload voice messages because the audio buffer was being read, therefore changing the position of the cursor. When this happened, the upload function would claim that the buffer was empty and could not be read.
2021-04-27 18:59:10 -06:00
J. Ryan Stinnett
4b66082b0f
Add change event type
2021-04-26 15:27:30 +01:00
J. Ryan Stinnett
809454e66a
Use new managed prop for emoji composer menu
2021-04-26 15:23:55 +01:00
J. Ryan Stinnett
bf43144f6e
Add ActionPayload type
2021-04-26 15:21:49 +01:00
J. Ryan Stinnett
b8a915bb76
Tweak private / underscores for fields and methods
2021-04-26 14:02:53 +01:00
J. Ryan Stinnett
d7e6f4b4b5
Add basic types
2021-04-23 17:05:50 +01:00
J. Ryan Stinnett
0e92251f70
Fix simple lint errors
2021-04-23 16:28:55 +01:00
J. Ryan Stinnett
31a28b1a9e
Update extensions for some files with types
...
This migrates one bucket of files using some amount of Flow typing to mark them
as TypeScript instead. The remaining type errors are fixed in subsequent
commits.
2021-04-23 16:05:30 +01:00