Commit Graph
100 Commits
Author SHA1 Message Date
David Baker 761eee2cdc Remove button props / style too 2022-07-01 13:10:08 +01:00
David Baker 7dc6fb27ea Add embed mode
https://github.com/vector-im/element-call/commit/2db23e411074a9e2e0b4fc5d480a7f05abb9915c
from postmessage_ptt branch done in a slightly nicer way
2022-06-28 15:08:14 +01:00
David Baker d2c820f080 Update js-sdk for chrome audio renderer hang fix
Fixes https://github.com/vector-im/element-call/issues/267
2022-06-10 21:03:52 +01:00
David Baker eb9f2ccbaa Merge remote-tracking branch 'origin/main' into dbkr/version_warning 2022-06-10 12:11:19 +01:00
David Baker d4b211e678 Update js-sdk version 2022-06-10 12:07:14 +01:00
David Baker 9fc4fbc3e7 Icon / styling fixes + typo
* Use icon from compound
 * Use warning colour
 * Fix capitalisation
2022-06-10 12:06:06 +01:00
David Baker 1f5ac411f6 Add warning if incompatible versionsd are being used
This will probably be overly sensitive until we start timing out
member events (ie. https://github.com/matrix-org/matrix-js-sdk/pull/2446
lands) because lots of calls might have old member events from people
who've joined previously.
2022-06-09 21:56:58 +01:00
David Baker edbcf95ead Bump js-sdk for https://github.com/matrix-org/matrix-js-sdk/pull/2445 2022-06-08 19:29:49 +01:00
David Baker 17098cf2ab Also yarn.lock 2022-06-08 14:35:27 +01:00
David Baker 7ef3dcc56c Bump js-sdk version for a couple of PTT network reliability fixes 2022-06-08 14:34:29 +01:00
David Baker 017ec13981 Disable typescript warnings 2022-06-01 16:05:58 +01:00
David Baker 5282ab5f12 Merge remote-tracking branch 'origin/main' into dbkr/avoid-browser-index-import 2022-06-01 16:03:18 +01:00
David Baker 582e6637dc Merge remote-tracking branch 'origin/main' into dbkr/lower_sdk_timeout 2022-06-01 16:02:48 +01:00
David Baker 0411e1cac8 Fix app when built in production mode
The recent typescripting appears to have caused the typescript
compiler to get confused about dependency references and start
refwrencing things like CRYPTO_ENABLED in the js-sdk before it's
defined them.

This avoids using things from the (javascript) browser-index import
and instead pulls everything in from the typescript files, then
fixes the resulting type failures, (in some cases with hacks).
2022-06-01 15:55:02 +01:00
David Baker d9bd48b9a6 Split out client sync listeber into separate useEffect 2022-06-01 10:21:44 +01:00
David Baker 771424cbf0 Expand comment 2022-06-01 10:11:02 +01:00
David Baker 7ee2f630db Add more typers to useInteractiveLogin
otherwise apparently Typescript can't trace the MatrixClient type
through.
2022-06-01 09:59:59 +01:00
David Baker 626fdb9f79 Merge remote-tracking branch 'origin/main' into dbkr/matrix-utils-ts 2022-06-01 09:37:59 +01:00
David Baker 2cf40ff0b8 Fix room creation
The room alias is not part of the spec. Synapse returns it anyway,
but it's not part of the js-sdk types. We don't really need the
server to tell us what the alias is, so just generate it locally
instead.
2022-06-01 09:29:47 +01:00
David Baker 9edc1acc90 Add type to indexeddb variable 2022-06-01 09:07:00 +01:00
David Baker e9b963080c Show when connection is lost on PTT mode 2022-05-30 16:28:16 +01:00
David Baker 1164e6f1e7 Add return type too 2022-05-30 15:53:44 +01:00
David Baker 21c7bb979e Convert useGroupCall to TS 2022-05-30 15:30:57 +01:00
David Baker 1ff9073a1a Sort call feeds consistently when choosing active speaker 2022-05-30 12:14:25 +01:00
David Baker 7ed2f9bd9a Lower timeout on js-sdk API call to 5s 2022-05-30 11:46:27 +01:00
David Baker 2cdbeb6f12 Fix imports 2022-05-30 11:41:59 +01:00
David Baker 7bd95621f1 More types 2022-05-30 11:28:16 +01:00
David Baker a05501a909 Convert matrix-utils to typescript 2022-05-30 10:09:13 +01:00
David Baker 92d15e110a Update to include https://github.com/matrix-org/matrix-js-sdk/pull/2383 2022-05-19 19:10:31 +01:00
David Baker 3e19843bf7 Bump js-sdk dependency to encrypt to-device messages 2022-05-18 14:53:43 +01:00
David Baker c7da1177ab Add CODEOWNERS file 2022-05-17 18:44:22 +01:00
David Baker d019add257 Merge remote-tracking branch 'origin/main' into dbkr/rageshake_ptt 2022-05-17 15:41:57 +01:00
David Baker cc8ce7a05c Move feedback button to overflow menu
To be consistent with normal view and avoid nested dialogs.

Also disable space for the PTT key when the feedback dialog is visible,
since otherwise you can't type a space. Involves some rearrangement of
modal state.

Remove accidentally comitted vite port config.
2022-05-17 15:36:13 +01:00
David Baker b3285974f9 Enable rageshake on PTT mode
By putting another 'Submit Feedback' button in the developer section
of the setting modal (we can work out a better place for it).
2022-05-16 16:58:39 +01:00
David Baker 9fd7329554 Add sound when speaker stops speaking
And also a slightly nicer blocked sound (ok, I couldn't let it go).
2022-05-13 21:00:14 +01:00
David Baker 3fc9c1b74a Import createref separately 2022-05-13 20:43:20 +01:00
David Baker f6f0c20b08 Chain promises correctly 2022-05-13 20:39:21 +01:00
David Baker 2af87fa8b8 Fixes for touch interface on push-to-talk button
* Avoid also getting a 'mousedown' event by making the event listener
   non-passive so the preventDefault() works
 * Remember the touch that pressed the button so we only un-press
   when that touch ends, otherwise the button gets released if the
   user taps the screen anywhere else.
2022-05-13 18:28:48 +01:00
David Baker d34c8d08a4 Add comment 2022-05-13 18:09:45 +01:00
David Baker 0f687fb8b8 Fix races on mute / unmute
By serialising everything on a promise chain
2022-05-13 17:58:59 +01:00
David Baker 603dd3786a Play the blocked sound on time limit
Play the 'blocked' sound effect whenever the user is till holding
the button but can't speak anymore, whether they've been cut off
by someone else or have reached their time limit.
2022-05-12 14:13:03 +01:00
David Baker b222b4f708 Fix hold-to-speak and prompt text on mobile 2022-05-12 12:07:04 +01:00
David Baker 323505fbb4 Put back listeners commented for testing 2022-05-12 10:04:14 +01:00
David Baker 2b06c6f2e6 More types on PTTCallView
Give it a props type
2022-05-11 17:44:26 +01:00
David Baker 5a56e46f7b Prettier 2022-05-11 16:50:41 +01:00
David Baker abe9ece38f Add push-to-talk sound effects
Fixes https://github.com/vector-im/element-call/issues/296
2022-05-11 16:28:08 +01:00
David Baker cb8d837370 Fetch redirects file from github 2022-05-11 13:20:35 +01:00
David Baker 0d3daf5fa3 move config files into config/ 2022-05-11 12:11:49 +01:00
David Baker 6d7be57dcf More comments 2022-05-11 11:42:17 +01:00
David Baker 5b913205af Add redirects to netlify deployment 2022-05-11 11:39:48 +01:00
David Baker abdfcd879d Hopefully add sentry to cd builds 2022-05-10 21:24:20 +01:00
David Baker b2418d5384 Put manual deployment updating back
the netlify action's deployment updating doesn't seem to work
2022-05-10 20:48:30 +01:00
David Baker f2232a0740 Enable production deploys
and also remove the manual deployment updating as it looks like the netlify action supports it anyway
2022-05-10 19:55:05 +01:00
David Baker 04c6d990bd Make dir name match 2022-05-10 19:39:27 +01:00
David Baker 455bb09108 Try bumping token permissions 2022-05-10 19:35:40 +01:00
David Baker d8fe617535 Try this path 2022-05-10 19:20:15 +01:00
David Baker 970568fd17 yaml indenting 2022-05-10 19:19:22 +01:00
David Baker f6677889e0 Hopefully deploy main branch to netlify 2022-05-10 19:11:45 +01:00
David Baker 04780ab7aa Seems we can turn noUnusedLocals on after all 2022-05-10 18:12:10 +01:00
David Baker b7df8019f0 Import request typings
to tell tsc about _Request which has abort()
2022-05-10 18:09:17 +01:00
David Baker 0a9115248d Include more js-sdk types 2022-05-10 17:45:54 +01:00
David Baker 27d492e9e2 Pin js-sdk commit & add olm for types 2022-05-10 17:41:50 +01:00
David Baker bc22d36ef8 Use the merged js-sdk 2022-05-10 17:22:20 +01:00
David Baker cf9625f33e Final type fixes
Revert previous type import hack and type a couple more bits
2022-05-10 17:18:26 +01:00
David Baker 446fd9c7c0 Make tsc happy with the js-sdk 2022-05-07 19:02:54 +01:00
David Baker adc7892d8c Enable type checking & disable lint warning 2022-05-06 22:55:47 +01:00
David Baker f805f4ead6 Remove some unnecessary tsconfig bits 2022-05-06 22:44:03 +01:00
David Baker 00ffa1b6cd Add types from merge & fix import order 2022-05-06 22:43:22 +01:00
David Baker 055fbe786d Merge remote-tracking branch 'origin/main' into dbkr/typescript_round_1 2022-05-06 21:41:14 +01:00
David Baker 5fb1f556d5 Prettier 2022-05-06 21:34:58 +01:00
David Baker f4ba315cef Add more hook dependencies 2022-05-06 21:33:49 +01:00
David Baker 7e5610eb36 Prettier 2022-05-06 21:27:07 +01:00
David Baker 1253638861 Store unmuteError in main state 2022-05-06 21:23:29 +01:00
David Baker 4488947eed Initial round of typescripting 2022-05-06 11:32:09 +01:00
David Baker bf8f164f55 Fix lint errors
Various hooks either missing dependencies or with extra ones.

Two remaining errors are from the recapcta code where I can't
work out if the extra dependency is intentional or not.
2022-05-05 13:15:07 +01:00
David Baker 5487fbc048 Set formatter to prettier
Although this will only work with the extension installed
2022-05-05 12:31:09 +01:00
David Baker a70dbb130f Run prettier 2022-05-05 12:26:30 +01:00
David Baker 7edf544d73 Return to normal state when time limit reached 2022-05-05 12:22:51 +01:00
David Baker ad3bde9920 Undo unintentionally commented line 2022-05-04 17:36:35 +01:00
David Baker 85a98b3706 Remove onWindowBlur
we already do this in usePTT
2022-05-04 17:35:43 +01:00
David Baker 85e3f3761a Add all the license headers 2022-05-04 17:09:48 +01:00
David Baker f0b116714b Fix mouseup/down behaviour of PTT button
Handle mouseup events anywhere so the button releases if you move
the cursor out of the button & release. Likewsie for window losing
focus.
2022-05-04 16:52:45 +01:00
David Baker 894815268a Merge remote-tracking branch 'origin/main' into ptt 2022-05-04 11:37:52 +01:00
David Baker 8ecec0bc7e 3 more warnings in the PTT stuff 2022-05-04 11:35:33 +01:00
David Baker 66839e02f6 Add ESLint support too 2022-05-04 11:35:15 +01:00
David Baker bad8f36bf5 Add prettier support
+ CI to check formatting, and fix the couple of instances that
were not in prettier format (case in HTML clour codes).
2022-05-04 11:35:15 +01:00
David Baker 0136fd3cab Run prettier 2022-05-04 11:24:25 +01:00
David Baker 61309bacd9 Add ESLint support too 2022-05-03 15:32:16 +01:00
David Baker b3e88d33a7 Add prettier support
+ CI to check formatting, and fix the couple of instances that
were not in prettier format (case in HTML clour codes).
2022-05-03 14:24:04 +01:00
David Baker 73fda641c8 Switch js-sdk depdendency back to group-call branch 2022-05-03 13:19:57 +01:00
David Baker be01a4bd81 Commit missed file 2022-05-03 12:05:40 +01:00
David Baker 0814e3c905 Revert unintentional commit 2022-05-03 12:05:22 +01:00
David Baker 43d579744f Put PTT behind 'feature flag'
AKA does the URL hash start with '#ptt'

This will let us merge PTT back to the main branch
2022-04-29 19:25:00 +01:00
David Baker 48a008093b Fix toggle button toggling
Just use isSelected directly rather than makking the button have its
own state. Also, the isPressed from useToggleButton looks like its
whether the user has the mouse button down on it or not rather than
whether the toggle switch is on, which was making the state wrong.
2022-04-29 19:08:32 +01:00
David Baker 70c099c4b5 Wire up pressing the PTT button to unmute as well as spacebar 2022-04-29 18:56:17 +01:00
David Baker b65874a6fc export variables 2021-12-20 21:00:06 +00:00
David Baker 31845dea10 Fix docker build
and add catchall route
2021-12-20 20:05:05 +00:00
David Baker 032d623acb Use unprivilged nginx image 2021-12-20 18:43:45 +00:00
David Baker ccd8b484a6 Add env vars to build script
with hardcoded values for now
2021-12-20 17:53:23 +00:00
David Baker f66158a4da Add CI 2021-12-20 16:59:39 +00:00