Commit Graph

224 Commits

Author SHA1 Message Date
Travis Ralston
d8a939df5d Use & enforce snake_case naming convention on config.json settings (#8062)
* Document and support the established naming convention for config opts

This change:
* Rename `ConfigOptions` to `IConfigOptions` to match code convention/style, plus move it to a dedicated file
* Update comments and surrounding documentation
* Define every single documented option (from element-web's config.md)
* Enable a linter to enforce the convention
* Invent a translation layer for a different change to use
* No attempt to fix build errors from doing this (at this stage)

* Add demo of lint rule in action

* Fix all obvious instances of SdkConfig case conflicts

* Fix tests to use SdkConfig directly

* Add docs to make unset() calling safer

* Appease the linter

* Update documentation to match snake_case_config

* Fix more instances of square brackets off SdkConfig
2022-03-18 10:12:36 -06:00
Kerry
9f6c238827 Add simple live share warning (#8066)
* add simple live share warning

Signed-off-by: Kerry Archibald <kerrya@element.io>

* rough first cut of OwnBeaconStore

Signed-off-by: Kerry Archibald <kerrya@element.io>

* working (?) has live beacons status

Signed-off-by: Kerry Archibald <kerrya@element.io>

* lint

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add left panel share warning

Signed-off-by: Kerry Archibald <kerrya@element.io>

* setup for tests

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test ownbeaconstore

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove warning banner

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix test

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix tests for weird asyncstore closure issues

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix OwnBeaconStore more...

Signed-off-by: Kerry Archibald <kerrya@element.io>

* revert loose change to LeftPanel

Signed-off-by: Kerry Archibald <kerrya@element.io>

* Revert "remove warning banner"

This reverts commit 4529813b12e3206731f18e0514aa6e0f6896d03a.

* test live share warning

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-17 09:25:57 +01:00
J. Ryan Stinnett
65691202f7 Add lint for unused locals (#8007) 2022-03-09 12:05:16 +00:00
Michael Telatynski
c257bc3f7a Prefer RoomStateEvent.Update where possible as it fires far less (#7878) 2022-02-24 14:39:25 +00:00
Šimon Brandner
93a9af7b3a Keybinding code unification #3 (#7850) 2022-02-23 09:12:04 +00:00
Michael Telatynski
7fa01ffb06 Improve typing around event emitter handlers (#7816) 2022-02-22 12:18:08 +00:00
Michael Telatynski
8fccef86d8 Wire up drag-drop file uploads for the thread view (#7860) 2022-02-22 11:14:56 +00:00
Kerry
5b8d440406 type Actions (#7862)
* type ViewHomPage action

Signed-off-by: Kerry Archibald <kerrya@element.io>

* type spacestore actions

Signed-off-by: Kerry Archibald <kerrya@element.io>

* lint

Signed-off-by: Kerry Archibald <kerrya@element.io>

* add action types

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use new action types in stores

Signed-off-by: Kerry Archibald <kerrya@element.io>

* remove debug change

Signed-off-by: Kerry Archibald <kerrya@element.io>

* stricter keyboard shortcut types

Signed-off-by: Kerry Archibald <kerrya@element.io>

* action comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-22 10:04:27 +00:00
Michael Telatynski
5620b83d34 Wire up more Posthog tracking (#7689) 2022-02-09 14:25:58 +00:00
Šimon Brandner
a17d585a12 Work towards unifying KeyboardShortcuts and KeyBindingsDefaults #2 (#7674) 2022-01-31 15:55:45 +00:00
UwUnyaa
debf4caade Add a keyboard shortcut to toggle hidden event visibility when labs are enabled. (#7584)
Notes: The keyboard shortcut is control (or cmd) shift h.
Signed-off-by: Katarzyna Stachura <uwunyaa@outlook.com>
2022-01-26 16:50:47 +00:00
Michael Telatynski
88cd2f8af7 Fix unfocused paste handling and focus return for file uploads (#7625) 2022-01-26 09:04:19 +00:00
Šimon Brandner
1f298250b9 Make the Keyboard Shortcuts dialog into a settings tab (#7198) 2022-01-17 11:53:10 +00:00
Germain
de28d82b81 Add onPaste fallback when getInputableElement returns null (#7540) 2022-01-14 12:49:09 +00:00
Timo
ef95644e23 Render Jitsi (and other sticky widgets) in PiP container, so it can be dragged and the "jump to room functionality" is provided (#7450)
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2022-01-13 12:10:41 +01:00
Timo
325e2ba99b Right panel store refactor (#7313)
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2022-01-05 16:14:44 +01:00
Eric Eastwood
9289c0c90f Refactor ContextMenu to use RovingTabIndex (more consistent keyboard navigation accessibility) (#7353)
Split off from https://github.com/matrix-org/matrix-react-sdk/pull/7339
2021-12-17 11:08:56 -06:00
Michael Telatynski
a968b4ce53 Improve typing around LoggedInView (#7384)
* Update SyncState imports

* Improve typing around LoggedInView

* Fix typing
2021-12-16 09:57:10 +00:00
Michael Telatynski
71b561d471 Make compact layout only apply to Modern layout (#7382) 2021-12-15 16:27:02 +00:00
Aaron Raimist
2e8a93834b Auto fix
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 09:10:23 +00:00
Michael Telatynski
2e4fe7891a Fix input field behaviour inside context menus (#7293) 2021-12-07 09:36:28 +00:00
Michael Telatynski
275e9c1d02 Update space panel expand mechanism (#7230) 2021-12-07 09:32:00 +00:00
Michael Telatynski
a4714829f7 Hide clear cache and reload button if crash is before client init (#7242) 2021-12-01 10:54:14 +00:00
Šimon Brandner
cbb34d8ac7 Make CallHandler more EventEmittery (#6704)
* sharedInstance() -> instance

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Use CallState event instead of dispatching

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Simplifie some code

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Use a method to start a call instead of the dispatcher

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Use a method instead of place_conference_call

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Make terminateCallApp() and hangupCallApp() public

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Use hangupAllCalls() instead of the dispatcher

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Make dialNumber(), startTransferToMatrixID() and startTransferToPhoneNumber() public instead of using the dispatcher

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Use answerCall() instead of using the dispatcher

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Use hangupOrReject() instead of the dispatcher

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Update docs

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Improve TS

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Dispatch call_state, see https://github.com/vector-im/element-web/pull/18823#issuecomment-917377277

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Add missing import

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-11-30 18:09:13 +00:00
Germain
7658187186 Fix composer focus after pasting (#7181) 2021-11-22 17:09:16 +00:00
Michael Telatynski
ddbfebbaa0 Fix automatic composer focus, regressed by threads work (#7167) 2021-11-19 17:15:15 +00:00
Michael Telatynski
5ad3261cb2 Implement more meta-spaces (#7077) 2021-11-11 13:07:41 +00:00
Travis Ralston
d188d32423 Add a developer mode flag and use it for accessing space timelines (#6994)
Fixes https://github.com/vector-im/element-web/issues/19416
2021-10-20 06:55:22 -06:00
Michael Telatynski
a688e5b8b3 Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18088
 Conflicts:
	src/components/structures/LoggedInView.tsx
	src/stores/SpaceStore.tsx
2021-09-06 11:41:09 +01:00
Dariusz Niemczyk
a93d5cde09 Simplify rendering to css-only 2021-08-24 14:38:39 +02:00
Dariusz Niemczyk
a5c005756e Fix resizer on left panel 2021-08-24 13:05:46 +02:00
Travis Ralston
a0dc5d2987 Honour user-selected background image from settings
Fixes https://github.com/vector-im/element-web/issues/18705

This is provided as an easter egg, but more importantly as an a11y workaround.
2021-08-23 20:39:46 -06:00
Dariusz Niemczyk
6205cbbdec Merge pull request #6659 from matrix-org/palid/fix/backdrop-blur
Optimize background image from avatar on left panel
2021-08-23 20:05:49 +02:00
Dariusz Niemczyk
e54191f6b0 Move background-blur to fully css version 2021-08-23 19:26:57 +02:00
Dariusz Niemczyk
7dfe57833a Fix GroupFilterPanel not having proper backdrop 2021-08-23 16:57:24 +02:00
Dariusz Niemczyk
ca92101c72 Optimize and rewrite backdrop rendering 2021-08-23 16:20:21 +02:00
Dariusz Niemczyk
51b5b0145b Fix resizer on LoggedInView 2021-08-23 16:18:40 +02:00
Dariusz Niemczyk
0daa6ab845 Merge pull request #6648 from matrix-org/palid/fix/modern-layout
Fix modern layout
2021-08-23 10:18:49 +02:00
Travis Ralston
397a0f7849 Merge pull request #6651 from SimonBrandner/feature/watch-rl-background
Watch `RoomList.backgroundImage`
2021-08-22 23:49:32 -06:00
Dariusz Niemczyk
86b6c6a836 Fix room views not having proper container 2021-08-20 16:32:56 +02:00
Šimon Brandner
74d79ff205 Watch RoomList.backgroundImage
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-20 15:55:52 +02:00
Dariusz Niemczyk
fd3787ce82 Fix modern layout 2021-08-20 13:03:08 +02:00
Dariusz Niemczyk
f5a284a1f0 Fix flex values after blur changes 2021-08-19 16:10:09 +02:00
Dariusz Niemczyk
d65f6dd002 Fix bad merge 2021-08-19 07:11:40 +02:00
Dariusz Niemczyk
455a914cf3 Merge remote-tracking branch 'origin/develop' into gsouquet/fix-backdrop-filter
* origin/develop: (43 commits)
  Update copy to indicate debug logs contain which UI elements you last interacted with
  Fix name of Netlify workflow
  Add type declarations
  Fix pagination and improve typing
  Fix import
  Reset matrix-js-sdk back to develop branch
  v3.28.1
  Prepare changelog for v3.28.1
  Upgrade matrix-js-sdk to 12.3.1
  Explicitly handle first state change
  Properly listen for call_state
  Proper init in constructors
  Resetting package fields for development
  v3.28.0
  Prepare changelog for v3.28.0
  Fix error on accessing encrypted media without keys
  Fix call tile buttons
  Upgrade matrix-js-sdk to 12.3.0
  Remove test code; good job we have tests
  Fix dates
  ...
2021-08-19 07:11:02 +02:00
Dariusz Niemczyk
6310949bc8 Fix background blur not being shown on first load 2021-08-17 19:45:52 +02:00
Dariusz Niemczyk
eb242041a5 Fix missing background tonality without avatar 2021-08-17 18:56:19 +02:00
Šimon Brandner
533f2c2c98 Properly listen for call_state
The previous thing should have never worked, since CallsChanged doesn't get emitted when a call is answered

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-17 09:51:48 +02:00
Šimon Brandner
3fdf4d13ca Proper init in constructors
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-17 09:48:25 +02:00
Dariusz Niemczyk
582b5c90a4 Properly sepearate left column from timeline 2021-08-16 14:26:21 +02:00