Travis Ralston
3a7c5dc241
Merge pull request #3760 from matrix-org/travis/babel7-wp-flex
...
Use `flex-start` instead of `start` for postcss
2019-12-27 12:05:50 -07:00
Travis Ralston
58f169be92
Merge pull request #3769 from matrix-org/travis/babel7-wp-lang-dropdown
...
Define getLanguageFromBrowser() for LanguageDropdown
2019-12-25 15:15:55 -07:00
Travis Ralston
9cb810e55f
Merge pull request #3768 from matrix-org/travis/babel7-wp-bbl-pl
...
Introduce babel's export-default-from plugin to fix build errors
2019-12-25 15:15:41 -07:00
Travis Ralston
8a8b23eaed
Merge pull request #3770 from matrix-org/travis/babel7-wp-skin-dbg
...
Add a bit of debugging to incorrect components in the Skinner
2019-12-25 15:15:34 -07:00
Travis Ralston
56adb8244b
Add a bit of debugging to incorrect components in the Skinner
2019-12-22 21:41:01 -07:00
Travis Ralston
cfa21cbb8c
Define getLanguageFromBrowser() for LanguageDropdown
...
Without it we can't compile, so we should define it. It looks like it's never been defined, and LanguageDropdown seems to use it as a last resort - it should be safe to land.
2019-12-22 21:38:44 -07:00
Travis Ralston
23e5333935
Introduce babel's export-default-from plugin to fix build errors
...
We do a lot of default exporting, so we kinda need this. It even asks for it to be installed when it is missing.
2019-12-22 21:36:56 -07:00
Travis Ralston
e7928e8def
Use flex-start
instead of start
for postcss
...
This is just something the loaders complain about - apparently `start` is old and we should feel bad.
2019-12-22 20:56:19 -07:00
Travis Ralston
38e75aaae0
Merge pull request #3722 from matrix-org/travis/babel7
...
[BREAKING] Refactor the entire build process for babel@7 and TypeScript (chunk 1 of many)
2019-12-17 10:44:20 -07:00
Travis Ralston
d06f476a4d
Merge pull request #3723 from matrix-org/travis/babel7-reskindex
...
Implementation of new potential skinning mechanism
2019-12-17 08:09:59 -07:00
Travis Ralston
9865ce899b
Add a bunch of docs
...
We're making an assumption here that the decorator is actually all over the app when it's not.
2019-12-16 16:34:46 -07:00
Travis Ralston
0a9985fb48
Rename decorator for clarity
2019-12-16 16:10:11 -07:00
Travis Ralston
434570eca9
Explain why MatrixClientPeg is the way it is
2019-12-16 16:07:58 -07:00
Travis Ralston
b8faaa23c1
Remove irrelevant targets
2019-12-16 16:06:43 -07:00
Travis Ralston
20a615396b
Implementation of new potential skinning mechanism
...
With a switch to Only One Webpack™ we need a way to help developers generate the component index without a concurrent watch task. The best way to do this is to have developers import their components, but how do they do that when we support skins? The answer in this commit is to change skinning.
Skinning now expects to receive your list of overrides instead of the react-sdk+branded components. For Riot this means we send over *only* the Vector components and not Vector+react-sdk.
Components can then be annotated with the `replaceComponent` decorator to have them be skinnable. The decorator must take a string with the dot path of the component because we can't reliably calculate it ourselves, sadly.
The decorator does a call to `getComponent` which is where the important part of the branded components not including the react-sdk is important: if the branded app includes the react-sdk then the decorator gets executed before the skin has finished loading, leading to all kinds of fun errors. This is also why the skinner lazily loads the react-sdk components to avoid importing them too early, breaking the app.
The decorator will end up receiving null for a component because of the getComponent loop mentioned: the require() call is still in progress when the decorator is called, therefore we can't error out. All usages of getComponent() within the app are safe to not need such an error (the return won't be null, and developers shouldn't use getComponent() after this commit anyways).
The AuthPage, being a prominent component, has been converted to demonstrate this working. Changes to riot-web are required to have this work.
The reskindex script has also been altered to reflect these skinning changes - it no longer should set the react-sdk as a parent. The eventual end goal is to get rid of `getComponent()` entirely as it'll be easily replaced by imports.
2019-12-12 19:48:45 -07:00
Travis Ralston
225695ab5c
Fix exports for rate limited functions and MatrixClientPeg
...
MatrixClientPeg in particular doesn't work very well with this.
2019-12-12 19:33:08 -07:00
Travis Ralston
f5264db028
Disable end-to-end tests too
...
They rely on a working riot-web build, which this is not.
2019-12-12 14:44:46 -07:00
Travis Ralston
59ddefdb8f
Disable tests for new TypeScript build
...
We're switching to Jest anyways, and getting these things to run is basically impossible at the moment.
2019-12-12 14:39:01 -07:00
Travis Ralston
ff584d1644
yarn.lock changes for upgrade
2019-12-12 14:38:12 -07:00
Travis Ralston
a5dadda63b
Convert SdkConfig to TypeScript as a proof of concept
2019-12-12 14:37:32 -07:00
Travis Ralston
97af0403e5
Upgrade to babel@7 and support typescript
...
This breaks the tests
2019-12-12 14:37:14 -07:00
Travis Ralston
c02beb9ba3
Copy typescript configs from js-sdk
2019-12-12 14:35:28 -07:00
Travis Ralston
25f5cca8a9
Remove unused jenkins.sh
2019-12-12 14:35:15 -07:00
J. Ryan Stinnett
b7fe06706d
Merge pull request #3720 from matrix-org/jryans/4s-new-key-backup
...
Create new key backups using secret storage
2019-12-12 17:33:11 +00:00
J. Ryan Stinnett
afac8827ca
Merge pull request #3721 from matrix-org/jryans/sign-in-to-session
...
Replace sign-ins with sessions
2019-12-12 17:03:10 +00:00
J. Ryan Stinnett
38ee1aed09
Replace sign-ins with sessions
...
The designs were changed to use the term "sessions" instead of "sign-ins".
2019-12-12 16:35:02 +00:00
J. Ryan Stinnett
3cbb3c12cd
Update cross-signing details on trust changes
2019-12-12 15:42:27 +00:00
J. Ryan Stinnett
6338ee9683
Only allow key caching inside the access helper
2019-12-12 15:34:01 +00:00
J. Ryan Stinnett
458cc9598d
Support restoring key backup with stored secret
2019-12-12 15:18:36 +00:00
J. Ryan Stinnett
e87ff54eee
Clean up cross-signing debug panel
2019-12-12 14:27:57 +00:00
J. Ryan Stinnett
4417235d9e
Show whether backup key is stored
2019-12-12 14:06:44 +00:00
J. Ryan Stinnett
d2f2d3b344
Handle cross-singing sigs in key backup details
2019-12-12 13:51:45 +00:00
Travis Ralston
7230d51cca
Merge pull request #3703 from matrix-org/travis/right-panel-v2
...
Refactor RightPanel to match expected behaviour
2019-12-11 10:50:45 -07:00
Travis Ralston
633aa59e6c
Merge pull request #3716 from matrix-org/travis/mjolnir-render
...
Render policy room event updates in the timeline
2019-12-11 10:50:27 -07:00
J. Ryan Stinnett
8cbc9baddd
Add testing flow for new key backups with SSSS
...
This adds a path to test key backups with SSSS via an extra button only visible
when the cross-signing feature is enabled.
2019-12-11 16:32:49 +00:00
J. Ryan Stinnett
66f7600969
Add accessSecretStorage
helper with common flow setup
...
This moves the details of dialogs that may be needed when accessing secret
storage to centralised helper. In addition, this clears the secret storage key
cache so that keys are only live for a single operation.
2019-12-11 15:07:46 +00:00
J. Ryan Stinnett
c5099b9b96
Re-add the secret storage key cache
2019-12-11 14:28:02 +00:00
J. Ryan Stinnett
2a91a6d08c
Merge pull request #3718 from matrix-org/travis/wrap-encryption
...
Wrap the await call for unknown device lookups
2019-12-11 11:32:43 +00:00
J. Ryan Stinnett
c2cd97fab3
Merge pull request #3640 from matrix-org/jryans/4s-new-key-backup
...
Add testing flow to bootstrap secret storage
2019-12-11 11:04:36 +00:00
J. Ryan Stinnett
108293dcba
Flip back to develop
2019-12-11 10:39:04 +00:00
J. Ryan Stinnett
fae819dfe5
Merge remote-tracking branch 'origin/develop' into jryans/4s-new-key-backup
2019-12-11 10:05:20 +00:00
Michael Telatynski
cb50f5ff5f
Merge pull request #3715 from matrix-org/t3chguy/fix_roomlist_context_menu_regression
...
Fix remaining context menu regressions
2019-12-11 09:36:45 +00:00
Travis Ralston
db91465c56
Wrap the await call for unknown device lookups
...
Otherwise we're awaiting the result of `map()`, which isn't accurate.
2019-12-10 22:00:08 -07:00
Michael Telatynski
c1b1f98201
Merge pull request #3712 from matrix-org/t3chguy/react16_refs
...
Migrate away from React Legacy string refs
2019-12-10 17:43:37 +00:00
Travis Ralston
b6d0308a54
Merge pull request #3706 from matrix-org/travis/dm-copy
...
Update copy for DM invites
2019-12-10 10:19:47 -07:00
Travis Ralston
c8c344804e
Remove special case RHS resizer logic
...
It doesn't seem to affect anything by being removed.
2019-12-10 10:01:45 -07:00
Travis Ralston
b93cadf4d1
Reset the right panel when changing rooms/groups
...
This is to prevent the member info from staying open, which could explode if the user isn't in the room you're switching to.
2019-12-10 09:58:44 -07:00
J. Ryan Stinnett
4956e83228
Remove secret storage key cache for now
2019-12-10 16:53:15 +00:00
J. Ryan Stinnett
80c120b93b
Cross-signing storage now handled in JS SDK
2019-12-10 16:47:18 +00:00
Travis Ralston
4548713c19
Appease the linter
2019-12-09 20:38:56 -07:00