David Baker
1a6134e441
Fix another freeze on room switch ( #7900 )
...
* Fix another freeze on room switch
This switches permalinks to use the batch state update event and
removes the incremental updates, as commented. We now spend, on my
profiling, about 450ms in setOutOfBandMembers itself and another
120ms in permalinks.
Fixes https://github.com/vector-im/element-web/issues/21127
* Just bind to the currentstate state updates
4 years ago
David Baker
81cda7c749
Fix freeze on room switch ( #7884 )
...
* Fix freeze on room switch
updateServerCandidates was called on every room member event and
not throttled.
Fixes https://github.com/vector-im/element-web/issues/21127
* Move import
* Disable throttling in tests
* Types
Co-authored-by: Travis Ralston <travisr@matrix.org>
Co-authored-by: Travis Ralston <travisr@matrix.org>
4 years ago
Kerry
5e76d988ca
convert test-utils to typescript ( #7877 )
...
* move js utils into directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* typescripterize js test-utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move test utils to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move remaining mock functions to directory
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update imports
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type wait for update
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Michael Telatynski
7fa01ffb06
Improve typing around event emitter handlers ( #7816 )
4 years ago
Kerry
9db59d75b9
Bump react-focus-lock ( #7858 )
...
* react-focus-lock to 2.5.1
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use enzyme in ASSD test so focus lock finds active element
Signed-off-by: Kerry Archibald <kerrya@element.io>
* findById and flushPromises to test utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
8b9263c808
Clean up some unit test logs ( #7857 )
...
* kill some unit test logs in arrays-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove mock logs that are asserted against anyway
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix safeCOunterpartTranslate warnings in tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more safeCounterpartTranslate warnings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add helper
Signed-off-by: Kerry Archibald <kerrya@element.io>
* naming
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
818fddd72c
Add customisation point to disable space creation ( #7766 )
...
* mock matchMedia in jest setup
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use UIComponent.CreateSpaces in space panel
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* hide add space in spacecontextmenu
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use UIComponent customistations in space oom view add space button
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
292971dd0e
Upgrade to jest 27 ( #7699 )
...
* use jest@27.4.0, replace jest-environment-jsdom-sixteen with jest-environment-jsdom
Signed-off-by: Kerry Archibald <kerrya@element.io>
* polyfill setImmediate
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove done from async test cases
* useRealTimers in test relying on promise flushing
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove jest environment file
Signed-off-by: Kerry Archibald <kerrya@element.io>
* replace ts-jest mocked with jest utils mocked
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
085ecc7f5f
Chat export parameter customisation ( #7647 )
...
* use export settings and hide fields
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix exporter tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test ExportDialog with settings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tidy debugs, rename setting to Parameters
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use reasonable 100gb limit
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use normal setting instead of UIFeature
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use a customisation
Signed-off-by: Kerry Archibald <kerrya@element.io>
* move validateNumberInRange to utils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use nullish coalesce
Signed-off-by: Kerry Archibald <kerrya@element.io>
* use 8gb size limit for customisation
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update comments
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Michael Telatynski
fcc4939075
Fix naming of set-theory utils to match convention ( #7343 )
5 years ago
Dominik Henneke
908e938996
Keep all previously approved widget capabilities when requesting new capabilities ( #7340 )
5 years ago
Travis Ralston
08cd8926e6
Fix a couple relative date tests ( #7184 )
5 years ago
Germain
2a20d9a7df
Display relative time in thread panel event tile ( #7068 )
...
* Null-guard for missing root event in thread panel
* Add formatRelativeTime date utility
* Display relative time format in thread panel event tiles
5 years ago
Aaron Raimist
027b3660bb
Manual fixes
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
5 years ago
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
5 years ago
Šimon Brandner
9c107ae615
Add tests for formatSeconds()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Jaiwanth
7207329c15
Apply review suggestions
5 years ago
Jaiwanth
9cbdc4a613
Use throw error instead of try-catch
5 years ago
Jaiwanth
edfc8af6cf
Apply PR Suggestions
5 years ago
Jaiwanth
e396dcfb10
Remove @types/streamsaver
5 years ago
Jaiwanth
ecf0aba97c
Test for different types of events
5 years ago
Jaiwanth
900accd823
Add test for renderToString
5 years ago
Jaiwanth
850b5452a0
Add tests for reply regex
5 years ago
Jaiwanth
c74d6c6fff
Assign replacements
5 years ago
David Baker
28f5dc483b
Update eslint plugin & fix silly indenting
...
As per https://github.com/matrix-org/eslint-plugin-matrix-org/pull/15
this caused a bunch of silly indenting to creep in, so this fixes it
back to the previous style.
5 years ago
Jaiwanth
b333612dea
Fix comparing MB -> bytes
5 years ago
Jaiwanth
4824c93707
Add a test file
5 years ago
Jaiwanth
04edf4103f
Remove unnecessary awaits
5 years ago
Michael Telatynski
ec173e74e6
Test & Refactor SpaceWatcher to allow all rooms/home change without needing reload
5 years ago
Michael Telatynski
c8d9294350
Discard unused utility now that we use Object.fromEntries
5 years ago
Travis Ralston
0e2bcb474d
delint
5 years ago
Travis Ralston
ec0f940ef0
Adjust recording waveform behaviour for voice messages
...
Fixes https://github.com/vector-im/element-web/issues/17683
5 years ago
Šimon Brandner
a90b8f32f1
Add some tests
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
5 years ago
Michael Telatynski
e7fde2686f
remove unused imports
5 years ago
Michael Telatynski
bceee7978e
improve naming of tests
5 years ago
Michael Telatynski
a63d9220d2
Clear outstanding TODOs
5 years ago
Michael Telatynski
2879b9086c
Use alphabet from js-sdk
5 years ago
Michael Telatynski
8fd72fcf79
Iterate algorithm, base it on new js-sdk string lib
5 years ago
Michael Telatynski
4af2675e23
stash bigint support
5 years ago
Michael Telatynski
3d4411390f
write a shedload more tests
5 years ago
Michael Telatynski
a4fa2779d4
Iterate lexicographic ordering implementation
5 years ago
Michael Telatynski
21fc386317
Move over to new lexicographic string sorting
5 years ago
Aaron Raimist
773af6c7be
Fix test
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
5 years ago
Travis Ralston
df7b598ca7
Improve visible waveform for voice messages
...
This tries to prioritize actual voice to decide the waveform, and clamps noise to zero to ensure the waveform doesn't have a perceptually noisy base.
In theory this better matches the overall voice message content.
5 years ago
Travis Ralston
b007ea81b2
Rescale and smooth playback waveform to better match expectation
5 years ago
Ayush PS
b90a1de178
Merge branch 'develop' into err
5 years ago
Ayush PS
c843387043
Merge branch 'develop' into Bubble-bericht
5 years ago
Travis Ralston
32e3ce3dea
Handle basic state machine of recordings
5 years ago
Šimon Brandner
46bfbbadf9
Enable indent rule and fix indent
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago