Germain
252f2ebec0
Remove hidden read receipts migration ( #11139 )
...
* Remove hidden read receipts migration
* remove unused values
* Remove hidden RR migration test
2023-07-07 10:55:16 +00:00
Michael Telatynski
8107f1d271
Conform more of the codebase to strict types ( #11191 )
2023-07-05 11:53:22 +01:00
Michael Telatynski
9b5b053148
Use MatrixClientPeg::safeGet for strict typing ( #10989 )
2023-06-21 17:29:44 +01:00
Michael Telatynski
e3930fb8b0
Show all labs even if incompatible, with appropriate tooltip explaining requirements ( #10369 )
...
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-03-15 08:37:41 +00:00
Michael Telatynski
503df62191
Conform more of the codebase to `strictNullChecks` ( #10358
...
* Conform more of the codebase to `strictNullChecks`
* Fix types
* Iterate
* Iterate
2023-03-13 15:07:20 +00:00
Michael Telatynski
ad8d27d2b2
Fix some features not being configurable via `features` ( #10276 )
2023-03-03 13:31:51 +00:00
Michael Telatyński
eca28ac2f3
Apply strictNullChecks to src/settings/* ( #10252
...
* Apply strictNullChecks to src/settings/*
* Fix inherited types
2023-02-28 10:24:59 +00:00
Michael Telatynski
4574c665ea
Conform more code to strict null checking ( #10167 )
...
* Conform more code to strict null checking
* Delint
* Iterate PR based on feedback
2023-02-16 17:21:44 +00:00
Michael Telatynski
145a5a8a8d
Conform more code to strict null checking ( #10153 )
...
* Conform more code to strict null checking
* Conform more code to strict null checking
* Iterate
* Iterate
2023-02-15 13:36:22 +00:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Michael Telatynski
61a63e47f4
Comply with noImplicitAny ( #9940 )
...
* Stash noImplicitAny work
* Stash
* Fix imports
* Iterate
* Fix tests
* Delint
* Fix tests
2023-02-13 11:39:16 +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 Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Šimon Brandner
b0dfb2262e
Separate labs and betas more clearly ( #8969 )
...
* Separate labs and betas more clearly
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Capitalize `L` in `Labs`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Use `labsSections` instead of `SdkConfig.get("show_labs_settings")`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Link to `betas.md` instead of `labs.md`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Change labs label back to `Labs`
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve labs section copy
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve labs flags copy
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* i18n
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix cypress tests
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Reduce diff
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Remove empty line
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix comment
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Remove margin-bottom for the last child
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve code based on review
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix ts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve ts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Fix ts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve code
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Improve TS
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-11-30 21:20:26 +00:00
Robin
0d6a550c33
Prepare for Element Call integration ( #9224 )
...
* Improve accessibility and testability of Tooltip
Adding a role to Tooltip was motivated by React Testing Library's
reliance on accessibility-related attributes to locate elements.
* Make the ReadyWatchingStore constructor safer
The ReadyWatchingStore constructor previously had a chance to
immediately call onReady, which was dangerous because it was potentially
calling the derived class's onReady at a point when the derived class
hadn't even finished construction yet. In normal usage, I guess this
never was a problem, but it was causing some of the tests I was writing
to crash. This is solved by separating out the onReady call into a start
method.
* Rename 1:1 call components to 'LegacyCall'
to reflect the fact that they're slated for removal, and to not clash
with the new Call code.
* Refactor VideoChannelStore into Call and CallStore
Call is an abstract class that currently only has a Jitsi
implementation, but this will make it easy to later add an Element Call
implementation.
* Remove WidgetReady, ClientReady, and ForceHangupCall hacks
These are no longer used by the new Jitsi call implementation, and can
be removed.
* yarn i18n
* Delete call map entries instead of inserting nulls
* Allow multiple active calls and consolidate call listeners
* Fix a race condition when creating a video room
* Un-hardcode the media device fallback labels
* Apply misc code review fixes
* yarn i18n
* Disconnect from calls more politely on logout
* Fix some strict mode errors
* Fix another updateRoom race condition
2022-08-30 15:13:39 -04:00
Travis Ralston
32478db57e
Migrate the hidden read receipts flag to new "send read receipts" option ( #9141 )
...
* Migrate the hidden read receipts flag to new "send read receipts" option
For safety.
* Appease linter & ignore guests
* `void`
2022-08-08 13:48:28 -06:00
Šimon Brandner
19e514d83c
Remove dead code ( #9035 )
2022-07-11 07:52:44 +02:00
Travis Ralston
4653394a1f
Guard watchers against invalid settings ( #8857 )
2022-06-16 23:15:02 -06:00
Michael Weimann
b87c537885
Prevent level order to be modified ( #8821 )
2022-06-13 08:03:16 +02:00
Michael Telatynski
ba2ce5ecba
Abstract electron settings properly to avoid boilerplate-hell ( #8798 )
...
* Remove unused method `BasePlatform::screenCaptureErrorString`
* Improve platform typescripting
* Remove redundant awaits
* Abstract electron settings properly to avoid boilerplate-hell
* i18n
* Fix stray semi-colons
* Fix setting level order for Platform settings
2022-06-10 22:38:50 +01:00
Janne Mareike Koschinski
bca9caa98e
Settings toggle to disable Composer Markdown ( #8358 )
2022-04-19 14:53:59 +01:00
Michael Telatynski
7a1a2c41d2
Improve Threads beta around degraded mode ( #8318 )
...
* Hide MAB Threads prompt if user would have degraded mode
* Confirm user wants to enable Threads beta if in degraded mode
* fix
* Fix copy
2022-04-14 11:50:55 +01:00
Michael Telatynski
9ed771ad7a
Have LocalEchoWrapper emit updates so the app can react faster ( #7358 )
2021-12-17 08:53:03 +00:00
Aaron Raimist
7b94e13a84
Merge branch 'develop' into sort-imports
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 08:34:20 +00:00
Michael Telatynski
c8765821b5
Group Labs flags ( #7190 )
2021-11-25 16:21:10 +00:00
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05:00
Dariusz Niemczyk
5290afcc4c
Replace console.warn with logger.warn
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02: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
Paulo Pinto
1b334e47aa
Fix issue that caused the value of certain settings to be inverted ( #6896 )
...
When using the SettingsStore.watchSetting() method for settings which have an
invertedSettingName, the newValueAt argument passed to the callback function,
would erroneously contain the inverted value.
This was making it so that such settings appeared to be disabled when they
should in fact be enabled, or vice-versa. This was however only the case for
code which took in account the newValueAt argument. Code using the newValue
argument was not affected.
The settings which have an invertedSettingName, and were thus potentially
impacted are:
- MessageComposerInput.dontSuggestEmoji
- hideRedactions
- hideJoinLeaves
- hideAvatarChanges
- hideDisplaynameChanges
- hideReadReceipts
- Pill.shouldHidePillAvatar
- TextualBody.disableBigEmoji
- dontSendTypingNotifications
- TagPanel.disableTagPanel
- webRtcForceTURN
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-10-07 16:42:23 +02:00
Dariusz Niemczyk
2d1d42b90e
Globally replace all console.logs via codemod ( #6827 )
...
This commit replaces all the `console.log` to `logger.log` via an automated script.
Related: vector-im/element-web#18425
2021-09-21 09:48:09 -06:00
Michael Telatynski
4f47907abf
Show disabled spaces section in preferences regardless
2021-08-11 23:33:10 +01:00
Michael Telatynski
12461a79e1
Move SettingsStore `setting_updated` dispatch to action enum
2021-07-27 17:19:45 +01:00
Michael Telatynski
7d90612371
Iterate PR
2021-06-17 16:22:40 +01:00
Michael Telatynski
cf501371fa
move Settings monitors over to an ES6 Map
2021-05-19 09:11:14 +01:00
Michael Telatynski
cb2ee0451d
move Settings watchers over to an ES6 Map
2021-05-19 09:06:01 +01:00
Michael Telatynski
2435332d37
fix beta disabled behaviour
2021-04-30 12:42:16 +01:00
Michael Telatynski
d2959e1acc
Add mechanism for disabling Betas
2021-04-30 12:30:05 +01:00
Michael Telatynski
c5f653245a
Show Spaces beta card in Labs & My Communities view
...
the image is temporary
2021-04-27 16:29:42 +01:00
Travis Ralston
52c73a7a58
Add developer tool to explore and edit settings
2021-02-18 14:56:19 -07:00
Travis Ralston
1f219d8530
Simple support for generics off the settings store
...
Ideally the settings store returns the right type, but for now we can feed it the type we need/expect.
2021-01-18 17:40:32 -07:00
J. Ryan Stinnett
accbe78d9a
Add null path
2021-01-14 17:37:18 +00:00
J. Ryan Stinnett
658a8dfa99
Use device storage for allowed widgets if account data not supported
...
With guest accounts, account data is not available, so we use device storage to
hold allowed widgets as a good enough place.
Fixes https://github.com/vector-im/element-web/issues/16145
2021-01-14 17:30:25 +00:00
su-ex
20f3ab0293
Fix inverted settings default value
...
Currently it doesn't matter what's set in the default property once the invertedSettingName property exists
2020-11-03 20:57:58 +01:00
Michael Telatynski
8e9ff05762
Update src/settings/SettingsStore.ts
...
Co-authored-by: Travis Ralston <travpc@gmail.com>
2020-09-18 19:14:24 +01:00
Michael Telatynski
cf7b4dd311
Add isEnabled comment
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-09-18 19:09:45 +01:00
Michael Telatynski
2bea8457e9
UI Feature Flag: Communities
2020-09-16 12:56:40 +01:00
Travis Ralston
4f851542ac
Implement force state for features like in the proposal
2020-08-17 13:51:41 -06:00
Travis Ralston
71643862c0
Implement new config style for features
2020-08-17 13:24:55 -06:00
Travis Ralston
eda4e24926
Update LabsUserSettings for new feature behaviour
2020-08-17 13:19:15 -06:00
Travis Ralston
96087d61f6
Convert feature setting usages to regular settings
2020-08-17 13:12:18 -06:00