David Langley
491f0cd08a
Change license ( #13 )
...
* Copyright headers 1
* Licence headers 2
* Copyright Headers 3
* Copyright Headers 4
* Copyright Headers 5
* Copyright Headers 6
* Copyright headers 7
* Add copyright headers for html and config file
* Replace license files and update package.json
* Update with CLA
* lint
2024-09-09 13:57:16 +00:00
Michael Telatynski
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
Michael Telatynski
b6addb4118
Fix React contexts ( #12855 )
2024-08-01 13:01:05 +01:00
Florian Duros
caef3c1921
Tooltip: improve accessibility in room ( #12493 )
...
* Migrate to `AccessibleButton`
* Update snapshots
* Update snapshots
2024-05-07 10:20:46 +00:00
David Baker
9254e9562e
Don't reference the notification levels by colour ( #12138 )
...
* Don't reference the notification levels by colour
We're about to change what colours they are so either we'd have to rename
a bunch of constants. We may as well make things not reference what colour
anything is in the actual UI. Hopefully these constants are clear enough.
* Rename NotificationColor -> NotificationLevel
* Red -> Highlight
* Grey -> Notification
* Bold -> Activity
* Anywhere else that calls it 'color' -> 'level'
Also fixes some weird mixes of US & UK English.
It turns out this is referenced in... quite a lot of places, so this is
quite a large PR. It can't really be much smaller, sorry.
* One test rename & some hiding due to ts-ignore
* More hiding behind ts-ignore
* Damn you, @ts-ignore...
* Fix test CSS values
* Missed some colour -> level
Co-authored-by: Florian Duros <florianduros@element.io>
* Change other instances of variables renamed in suggestion
* Update new test for renames
---------
Co-authored-by: Florian Duros <florianduros@element.io>
2024-01-15 15:25:48 +00:00
Michael Telatynski
6af4335db1
Migrate more strings to translation keys ( #11680 )
2023-09-29 08:49:26 +01:00
Michael Telatynski
d5cacff6c3
Create more action_*
common strings ( #11438 )
2023-08-23 11:57:22 +01:00
Michael Telatynski
24703eea8f
Switch to importing models/event from main js-sdk export ( #11363 )
2023-08-07 08:24:58 +00:00
Michael Telatynski
e67ca33c4a
Switch to importing models/Room from main js-sdk export ( #11361 )
...
* Switch to importing TypedEventEmitter from main js-sdk export
* Switch to importing js-sdk/matrix in cypress
* Remove duplicated imports
* Fix lint:js-fix to run prettier last otherwise ESLint --fix may cause a mess
* Add lint rule
* Switch to importing models/Room from main js-sdk export
* Fix cypress-axe import
* Fix more imports
* Fix cypress-axe import
* Fix duplicated lint rule
2023-08-04 07:36:16 +00:00
Michael Telatynski
280f6a9d93
Use MatrixClientPeg::safeGet in src/components/views/* ( #10987 )
2023-06-15 08:46:19 +01:00
Michael Telatynski
30429df948
Eliminate the use of MatrixClientPeg in utils ( #10910 )
2023-05-23 16:24:12 +01:00
Patrick Cloke
e19127f8ad
Implement MSC3952: intentional mentions ( #9983 )
...
Implements the intentional mentions feature of MSC3952 (behind
a labs flag).
If enabled, this will send an org.matrix.msc3952.mentions property
on events that will contain the user IDs and/or whether the room is
being mentioned. These mentions also gets propagated via some
custom behaviour for replies and edits.
2023-03-23 11:47:40 +00:00
Andy Balaam
ba36d2cc01
Improve strictNullChecks support in right_panel ( #10415 )
2023-03-22 12:15:26 +00:00
Michael Telatynski
76b82b4b2b
Make more code conform to strict null checks ( #10219
...
* Make more code conform to strict null checks
* Fix types
* Fix tests
* Fix remaining test assertions
* Iterate PR
2023-02-24 15:28:40 +00:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type
in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Michael Telatynski
f1e8e7f140
Enable @typescript-eslint/explicit-member-accessibility
on /src ( #9785 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
2022-12-16 12:29:59 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Michael Weimann
7a33818bd7
Extract createVoiceMessageContent ( #9322 )
2022-09-29 13:06:49 -06:00
Michael Weimann
c182c1c706
Generalise VoiceRecording ( #9304 )
2022-09-21 18:46:28 +02:00
grimhilt
6d03cb35b7
Fix voice messages with multiple composers ( #9208 )
...
* Allow having multiple voice messages in composers
Co-authored-by: grimhilt <grimhilt@users.noreply.github.com>
Co-authored-by: Janne Mareike Koschinski <janne@kuschku.de>
2022-09-05 12:04:37 +02:00
Šimon Brandner
60696d78ca
Support for sending voice messages as replies and in threads ( #9097 )
...
* Support for sending voice messages as replies and in threads
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Add tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-07-26 10:38:05 +02:00
Michael Weimann
3be20cf434
Use doMaybeLocalRoomAction ( #9038 )
...
* Use doMaybeLocalRoomAction
* Revert unnecessary changes
2022-07-13 07:56:36 +02:00
Travis Ralston
39f2bbaaf4
Bring back waveform for voice messages and retain seeking ( #8843 )
...
* Crude way of layering the waveform and seek bar
Not intended for production.
* Use a layout prop instead of something less descriptive
* Fix alignment properly, and play with styles
* Convert back to a ball
* Use `transparent` which makes NVDA happy enough
* Allow keyboards in the seek bar
* Try to make the clock behave more correctly with screen readers
MIDNIGHT
* Remove legacy export
* Remove redundant attr
* Appease the linter
2022-06-14 18:13:13 -06:00
Michael Telatynski
3c5c2bef6d
Remove Piwik support ( #8835 )
...
* Remove all mentions of Piwik
* Kill off all consumer of the old Piwik Analytics module
* Simplify ModalManager interface
* i18n
* Attempt to fix old e2e tests
* Remove unused component
* Iterate PR
2022-06-14 17:51:51 +01:00
Michael Telatynski
964c60d086
Apply corrections identified by SonarQube ( #8457 )
2022-05-03 22:04:37 +01:00
Travis Ralston
97efdf7094
Merge branch 'develop' into travis/remove-skinning
2022-03-31 19:25:43 -06: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
Travis Ralston
997d6d40bf
Step 1: Remove all usage of @replaceableComponent
2022-03-28 14:02:31 -06:00
Travis Ralston
b756f03563
Keep unsent voice messages in memory until they are deleted or sent ( #7840 )
...
Fixes https://github.com/vector-im/element-web/issues/17979
2022-02-18 07:29:08 -07:00
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05:00
Dariusz Niemczyk
5e73a212f4
Replace console.error with logger.error
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02: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
6d80976eae
Merge branch 'develop' into gsouquet/compact-composer-18533
2021-09-03 09:20:38 +01:00
Travis Ralston
730af94014
Autoplay semantics for voice messages
...
Fixes https://github.com/vector-im/element-web/issues/18804
Fixes https://github.com/vector-im/element-web/issues/18715
Fixes https://github.com/vector-im/element-web/issues/18714
Fixes https://github.com/vector-im/element-web/issues/17961
2021-08-30 14:29:37 -06:00
Germain Souquet
4e0f52118d
Update VoiceRecordComposerTile to only end recording
2021-08-26 08:07:51 +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
Travis Ralston
cab4f2e402
Move stop button to the left of the waveform
...
Fixes https://github.com/vector-im/element-web/issues/18416
2021-08-06 09:00:18 -06:00
Travis Ralston
17a3dc5e6d
Stop voice messages that are playing when starting a recording
...
Fixes https://github.com/vector-im/element-web/issues/18410
2021-08-05 12:44:12 -06:00
Travis Ralston
280c017238
Merge pull request #6530 from matrix-org/travis/voice-messages/uploading
...
Improve voice messages uploading state
2021-08-05 08:36:53 -06:00
Travis Ralston
18b321f8e8
Improve hover states (tooltips) for voice message interactions
...
Fixes https://github.com/vector-im/element-web/issues/18375
2021-08-03 13:34:04 -06:00
Travis Ralston
c4e6cc7973
Remove debugging
2021-08-03 12:57:16 -06:00
Travis Ralston
7b565db02d
Update uploading state designs
2021-08-03 12:52:21 -06:00
Travis Ralston
c5d11a9f17
Improve voice messages uploading state
...
Fixes https://github.com/vector-im/element-web/issues/18226
Fixes https://github.com/vector-im/element-web/issues/18224
2021-08-02 23:29:46 -06:00
Travis Ralston
e1bb04f45a
Remove answered TODOs
2021-07-22 09:27:38 -06: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
079e75aae9
Handle upload errors in voice messages
...
Fixes https://github.com/vector-im/element-web/issues/17148
Mostly adding some try/catch blocks, and a generic dialog.
2021-07-21 16:11:10 -06:00
Michael Telatynski
ce78cdf4ad
Conform to new react and typescript eslint rules
2021-07-19 22:43:11 +01:00
Travis Ralston
e045aa940e
Be smart with readonly
2021-07-12 14:11:24 -06:00