Commit graph

20 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
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
James Salter
3defb863b3
Automatic error reporting (#7046)
* Enable sentry global handlers if automaticErrorReporting is on

* Pass the exception through on session restore error

Passing the exception object itself through to the BugReportDialog means a stack trace can be correctly recorded in Sentry
2021-10-29 08:34:25 +00:00
Aaron Raimist
f3867ad0a9 Merge branch 'develop' into sort-imports 2021-10-27 21:50:56 -05:00
James Salter
8170697bbf
Add a global mxSendSentryReport so we can debug sentry from the console (#7042) 2021-10-27 13:05:58 +00:00
Aaron Raimist
bdc56be863
Auto fix
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05:00
James Salter
a1a19c7433
disable debug in Sentry (#7011) 2021-10-22 15:51:19 +00:00
James Salter
a4e3c4090c
Use VERSION as sentry release (set by packaging scripts) (#7008)
This will be undefined for dev builds.
2021-10-22 15:06:01 +01:00
James Salter
115c6e8357
Sentry uses RELEASE from webpack to correspond with sourcemap uploader (#6996)
use RELEASE from webpack to correspond with sourcemap uploader
2021-10-20 16:20:50 +00: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
David Baker
c3e173248d Fix import breaking types in release mode 2021-08-24 17:43:23 +01:00
James Salter
ecd142f2a5 Add type declarations 2021-08-18 09:21:57 +01:00
James Salter
0d9e27f34a Fix import 2021-08-17 15:58:14 +01:00
James Salter
16d02f24bd lint 2021-08-16 13:06:19 +01:00
James Salter
065a70b63f Add copyright header 2021-08-12 17:46:28 +01:00
James Salter
cc9ddb351f Remove test error on startup, and send correct user text 2021-08-11 18:01:22 +01:00
James Salter
ba1618812c Send user text as context 2021-08-11 18:00:21 +01:00
James Salter
c6202bf653 lint 2021-08-11 18:00:21 +01:00
James Salter
dface1928d Load all rageshake attributes 2021-08-11 18:00:21 +01:00
James Salter
de398f46f4 initial spike 2021-08-11 18:00:21 +01:00