Commit graph

1616 commits

Author SHA1 Message Date
Timo
1f5c22e325
Posthog new api key (#815)
new api key

Signed-off-by: Timo K <timok@element.io>
Co-authored-by: Timo K <timok@element.io>
2023-01-03 16:59:06 +01:00
David Baker
b9ee9583e4
Fix fullscreen on Safari (#814)
* Fix fullscreen on Safari

Safari only supports it via the webkit prefix

Fixes https://github.com/vector-im/element-call/issues/539

* NOT THAT LOGGER, VSCODE
2023-01-03 11:24:10 +00:00
David Baker
fef503c65d
Upload source maps to sentry (#810)
* Pretend to upload source maps to sentry

* Build release not in docker so we can upload source maps sensibly

and also upload the release as a plain tarball while we're at it

* fix yaml

* Try specifying version this way

* test rebuild

* pass secrets through

* Too many sentries

* It's almost 2023 and we're still having BSD vs GNU tar issues

* Maybe get sensible tag name & release identifier

* Wrong plugin, and also try the 'release' option which might the right thing

* Try a different github action

see if github likes that any better

* add contents write permission

and switch to the asset upload plugin that had the helpful doc

* actually put release name in tarball path

* copy docker config to right path

* Prettify vite config

* Only activate sentry plugin if we have secrets

* Use env var for tag name

* Also spelling env correctly would likely help

* Fix variable syntax

* Put env var in correct place

One day maybe I will not find yaml syntax confusing
2023-01-03 10:48:48 +00:00
David Baker
dc37c83aac
Merge pull request #809 from vector-im/dbkr/optional_rageshake
Don't show option to submit bug reports if no endpoint configured
2023-01-03 09:55:08 +00:00
Avery
398e238bfb Translated using Weblate (Spanish)
Currently translated at 100.0% (139 of 139 strings)

Translation: Element Call/element-call
Translate-URL: https://translate.element.io/projects/element-call/element-call/es/
2023-01-02 16:33:20 +00:00
David Baker
10819ed044
Merge pull request #812 from vector-im/dg/use_env_variable
Use environment variable for branch name
2022-12-23 10:39:10 +00:00
Davide Girardi
6edcdd3890 Use environment variable for branch name 2022-12-23 10:53:02 +01:00
Robin
5e47a439ca
Merge pull request #811 from vector-im/dbkr/gha_filter_on_head_repo
Add conditional on head_repo on Netlify main GHA job
2022-12-22 18:51:20 -05:00
David Baker
d1091eda17 Add conditional on head_repo on Netlify main GHA job
As per comment
2022-12-22 20:22:54 +00:00
Timo
0488cbdd8c
Change posthog key and host to selfhosted instance (#775)
* change posthog key and host

* Refresh Key

* change key again
2022-12-22 19:59:29 +01:00
David Baker
5823cd41e8 Translate separately so the i18n gets less confused 2022-12-22 14:23:19 +00:00
David Baker
de0f2e65a5 Don't show option to submit bug reports if no endpoint configured 2022-12-22 14:12:49 +00:00
David Baker
891ff86b49
Merge pull request #808 from vector-im/dbkr/remove_overflow_fullscreen
Remove the overflow menu button in fullscreen mode
2022-12-22 13:28:14 +00:00
David Baker
d7d7bee685 Remove the overflow menu button in fullscreen mode
It didn't work and fixing it is a bit of a project: see comment

https://github.com/vector-im/element-call/issues/807
2022-12-22 12:16:05 +00:00
David Baker
2c2aded094
Merge pull request #806 from vector-im/dbkr/too_many_olms
Remove Olm from devDependencies
2022-12-21 22:21:04 +00:00
David Baker
f35b50d89f Remove Olm from devDependencies
It was in devDependencies as well as dependencies for some reason
2022-12-21 18:49:49 +00:00
David Baker
0880faf312
Merge pull request #799 from vector-im/dbkr/sample_config
Make sample config just have the HS config
2022-12-21 17:58:43 +00:00
David Baker
51be754ad8
Merge pull request #798 from vector-im/dbkr/move_to_config_file
Move default homeserver to config file
2022-12-21 17:57:16 +00:00
David Baker
70522ed8da Also add comment 2022-12-21 15:26:24 +00:00
David Baker
3581aceb5a Addd ResolvedConfigOptions back 2022-12-21 15:25:08 +00:00
David Baker
16e8ea3420
Merge pull request #801 from vector-im/dbkr/pr_preview_use_branch_config
Use config from the branch we built on PR previews
2022-12-21 15:23:08 +00:00
David Baker
29f48f25f4 Actually remove the bit that's no longer neccessary 2022-12-21 15:17:34 +00:00
David Baker
089234ae09 Use config from the branch we built on PR previews
No harm in doing this - just as easy to override config in the code
itself.
2022-12-21 15:11:24 +00:00
David Baker
4dd823eca4
Merge pull request #800 from vector-im/dbkr/pr_preview
Add deploy previews
2022-12-21 14:42:35 +00:00
David Baker
6bc5b16b02 These appear to be important? 2022-12-21 13:09:41 +00:00
David Baker
f67eb328bf Add permissions, fix artifact name, filter branches 2022-12-21 12:36:00 +00:00
David Baker
1c824da32b Add config & redirects files 2022-12-21 12:08:08 +00:00
David Baker
1442e57a23 Prettify workflow file 2022-12-21 12:01:06 +00:00
David Baker
39e92b9e2e Add deploy previews
Using workflow from element-web
2022-12-21 11:57:15 +00:00
David Baker
c879090a34 Re-jig config accessors
We only ever used the static instance() method to get to the config
object, so just make a static instance that returns the ConfigOptions
directly, throwing an exception if it's not yet initialised. This way
the types can all be non-optional (plus it's shorter).
2022-12-21 10:17:53 +00:00
David Baker
6303b357ab Update default homeserver to match what the docs say 2022-12-21 10:01:37 +00:00
David Baker
b3d97810a8 Unused import 2022-12-21 09:44:28 +00:00
David Baker
eaf14a0562 Don't send rageshakes or start sentry if we don't have config for them 2022-12-21 09:42:27 +00:00
David Baker
fd3c0d9fc6 Don't guess the server name from the URL
It only uses the default HS URL anywayso just use the default
server name.
2022-12-21 09:27:25 +00:00
Robin
7765cfe1c2
Merge pull request #792 from RiotTranslateBot/weblate-element-call-element-call
Translations update from Weblate
2022-12-20 15:32:38 -05:00
David Baker
b94562d43b Indent config sample properly 2022-12-20 18:26:10 +00:00
David Baker
19e478f2a9 Make sample config just have the HS config
The other options are things people usually won't need or want to
set, so just keep it to the basics.

 * Rename config sample to match element-web
 * Update / simplify build instructions
 * Rename nginx config file to differentiate it from EC config
2022-12-20 18:13:08 +00:00
David Baker
d6b8ecdfd1 Remove default HS env var from build 2022-12-20 17:42:20 +00:00
David Baker
47ade7ee3c Add default HS for CD deployment 2022-12-20 17:37:07 +00:00
David Baker
23387ee75f Fix syntax 2022-12-20 17:32:04 +00:00
David Baker
c85d1c1d9c Don't touch the product name option for now 2022-12-20 17:30:47 +00:00
David Baker
96de515e56 Move default homeserver to config file 2022-12-20 17:26:45 +00:00
David Baker
e4c25bcc69
Merge pull request #797 from vector-im/dbkr/fix_docker_build
Fix docker build
2022-12-20 13:34:00 +00:00
David Baker
824ed06f36 Fix docker build
Remove the element-call directory level which isn't necessary any
more (accidentally removed the `cd element-call` in #794).
2022-12-20 11:44:27 +00:00
David Baker
aa57cf039a
Merge pull request #794 from vector-im/dbkr/simplify_build
Simplify build process
2022-12-19 18:55:41 +00:00
David Baker
850d6a40cc Simplify build process
* We don't need to check out the js-sdk separately anymore
 * Remove the vite proxying: there's no need since Matrix HSes allow
   cross origin requests. This will let us move the default homeserver
   config to the config file (in a separate PR...)
 * Remove the product name variable which just set it to the default anyway
2022-12-19 18:43:42 +00:00
David Baker
282a4853cf
Merge pull request #791 from vector-im/dbkr/spatial_audio_ff_only
Make spatial audio Firefox-only
2022-12-19 15:22:33 +00:00
David Baker
7c26bdbda3 Put the maximised conditional back
and comment it
2022-12-19 15:10:25 +00:00
David Baker
4ad5ea49c2 Merge remote-tracking branch 'origin/main' into dbkr/spatial_audio_ff_only 2022-12-19 13:18:12 +00:00
Timo
e3aa810230
Posthog widget embedding (#767)
* load analytics id from url in embedded mode

Signed-off-by: Timo K <timok@element.io>

* add start call in the widget code path

Signed-off-by: Timo K <timok@element.io>

* send group call id instead of call name

Signed-off-by: Timo K <timok@element.io>

* generate analyticsid based on account analyticsid
This make it impossible to find users from the element web posthog instance
in the element call instance

* move registration type setup PosthogAnalytics.ts

* Order identificaition and tracking.
This fixes an issue that the widget version did not identify the user before sneding
the first track event.
Because start call is called right after app startup.

Signed-off-by: Timo K <timok@element.io>
2022-12-19 12:16:59 +01:00