Michael Telatynski
936445ab2d
Merge pull request #4660 from matrix-org/t3chguy/kill_UDE_and_UDD
...
Remove legacy codepaths for Unknown Device Error (UDE/UDD) handling
2020-06-03 10:45:47 +01:00
Travis Ralston
1f1f613777
Add a focus_composer dispatcher action
...
and use it
2020-06-02 19:07:46 -06:00
Travis Ralston
613b994f9d
Revert "Prevent PersistedElements overflowing scrolled areas"
2020-06-02 00:21:31 -06:00
Travis Ralston
5b6118dad4
Remove the unused GroupsButton too
2020-06-01 15:39:22 -06:00
Jorik Schellekens
5caae2051b
Merge pull request #4678 from JorikSchellekens/joriks/draggable-cleanup-console
...
Remove logging to console for irc name resize
2020-06-01 18:22:23 +01:00
Jorik Schellekens
6801751745
No logging
2020-06-01 18:08:52 +01:00
Jorik Schellekens
53129cafc7
Move comment
2020-06-01 15:36:55 +01:00
Jorik Schellekens
fb9b14ec51
Remove superflous list
2020-06-01 15:35:25 +01:00
Jorik Schellekens
69747b6114
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/appearance-tab
2020-06-01 14:32:31 +01:00
Jorik Schellekens
9e9bcb4974
Move id generator into constrcutor
2020-06-01 12:04:47 +01:00
Travis Ralston
822a126cb6
Merge pull request #4663 from JorikSchellekens/develop
...
Fix field placeholder regression
2020-05-29 10:47:04 -06:00
Michael Telatynski
d02a18bfff
Apply FocusLock to ImageView to capture Escape handling
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-29 01:44:09 +01:00
Jorik Schellekens
66c0d53f3e
Create and use stylised checkboxes
2020-05-28 22:33:00 +01:00
Jorik Schellekens
6559fd499e
Fix field placeholder regression
2020-05-28 21:09:42 +01:00
Michael Telatynski
8aaa7825ef
Also kill off things that these kept behind
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-28 17:12:19 +01:00
Jorik Schellekens
81922231ed
Move Appearance tab to ts
2020-05-28 13:55:07 +01:00
Jorik Schellekens
076a3e058d
Merge pull request #4635 from JorikSchellekens/joriks/field-ts
...
Move Field to Typescript
2020-05-26 16:13:03 +01:00
Jorik Schellekens
ba3fe850e0
Implement review
...
- lint member order
- cleaner type coersion
- specify access modifiers everywhere
2020-05-26 12:09:23 +01:00
Michael Telatynski
707e22ad09
Merge pull request #4402 from matrix-org/t3chguy/alias
...
Replace `alias` with `address` in copy for consistency
2020-05-26 09:36:58 +01:00
Jorik Schellekens
dfc73626fa
Fix import
2020-05-25 18:18:47 +01:00
Jorik Schellekens
fc1f14f5aa
Appease the types
2020-05-25 17:53:09 +01:00
Jorik Schellekens
303691eb72
Missing export
2020-05-25 17:37:07 +01:00
Jorik Schellekens
5c9398a6b1
Types exiliary files
2020-05-25 16:47:57 +01:00
Jorik Schellekens
63f78b0808
Move tooltip to ts
2020-05-25 13:40:05 +01:00
Jorik Schellekens
6d9d4ee547
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/font-scaling-slider
2020-05-20 13:46:17 +01:00
Jorik Schellekens
3e30df17fb
Slider is more responsive
2020-05-20 13:07:33 +01:00
Travis Ralston
b96c1ada8a
Merge pull request #4494 from pv/auxpanel-scrolling-persisted
...
Prevent PersistedElements overflowing scrolled areas
2020-05-19 15:28:58 -06:00
Jorik Schellekens
323d0762fc
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/irc-ui
2020-05-19 18:03:44 +01:00
Jorik Schellekens
2e325191bc
Merge remote-tracking branch 'nv/develop' into joriks/irc-ui
2020-05-19 17:18:36 +01:00
Travis Ralston
9aff2e836e
Merge pull request #4593 from matrix-org/travis/dispatcher-types
...
Convert the dispatcher to TypeScript
2020-05-18 23:22:32 -06:00
Jorik Schellekens
4deeef5fca
Remove ability to remove avatars
2020-05-18 16:57:00 +01:00
Jorik Schellekens
17f535e5f8
Fix review problems
...
- removed superfluous position and classes
- fixed compact view
- fixed event list summary avatar and text overlap
- fixed a problem where the mention list refuses to load.
2020-05-18 16:37:10 +01:00
Michael Telatynski
1eea203db6
Merge pull request #4599 from matrix-org/t3chguy/progress_colour
...
Consolidate password/passphrase fields into a component & add dynamic colour to progress
2020-05-18 11:08:08 +01:00
Travis Ralston
798e7a1f86
Merge branch 'develop' into travis/dispatcher-types
2020-05-15 09:56:02 -06:00
Michael Telatynski
89c16603fc
Remove the now inlined ZxcvbnProgressBar.tsx
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 21:06:18 +01:00
Michael Telatynski
cf3c4d9e5f
Extract Password field from Registration into a reusable component
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 20:20:36 +01:00
Michael Telatynski
8dd561d28a
Convert Validation to TypeScript
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 19:33:17 +01:00
Michael Telatynski
09a4af49f3
Consolidate zxcvbn progress bars into a component and add dynamic colour
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 18:49:55 +01:00
Michael Telatynski
239197a3cb
Merge pull request #4394 from matrix-org/t3chguy/qrcode
...
wrap node-qrcode in a React FC and use it for ShareDialog
2020-05-14 17:31:26 +01:00
Michael Telatynski
dd747a9a09
Merge pull request #4585 from matrix-org/t3chguy/sso_hash
...
Pass screenAfterLogin through SSO in the callback url
2020-05-14 17:30:31 +01:00
Michael Telatynski
4c7d703275
Reuse QRCode for VerificationQRCode and specify widths
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-14 11:20:27 +01:00
Michael Telatynski
1ba19e78f8
Merge branches 'develop' and 't3chguy/qrcode' of github.com:matrix-org/matrix-react-sdk into t3chguy/qrcode
...
Conflicts:
package.json
2020-05-14 10:50:42 +01:00
Travis Ralston
a5f3318f3b
Convert view_user dispatch to prove the conversion works
...
This is a relatively obvious dispatch action that doesn't require a lot of complicated type definitions, so should be a good candidate to prove the thing works. If for some reason the thing stops working, we've done something wrong.
This also adds a bit of generic types to the dispatch call so we don't confuse the tsx parser by using `dis.dispatch(<ViewUserPayload>{...})` as it thinks that's supposed to be a component. We still get type safety, and the thing remains happy with the generics approach.
2020-05-13 21:07:50 -06:00
Travis Ralston
90a898d03f
Move dispatcher into a subdirectory
...
We're expecting to have a whole bunch of types for the dispatched payloads, so pull the thing into a directory we can throw them in.
2020-05-13 21:07:50 -06:00
David Baker
50107ebe47
Re-fix OpenID requests from widgets
...
https://github.com/matrix-org/matrix-react-sdk/pull/4591 reverted
https://github.com/matrix-org/matrix-react-sdk/pull/4459 . We need
to pass both URLs as we need both the wURL (for the widget's 'identity'
ie. OpenID) and the URL that's actually in the iframe (for the
messaging).
2020-05-13 16:10:40 +01:00
Jorik Schellekens
3f04f5163a
Implement more nitpicks
...
- fix avatar inital aligment
- right align names
- set flair height to avatar's
- fix conditions for resizing to be more stable
2020-05-13 14:04:46 +01:00
David Baker
92824411e8
Fix persistent widgets on desktop / http
...
WidgetMessaging needs the URL of the widget that gets rendered into
the iframe because that's where the postmessages will be coming from.
Fixes https://github.com/vector-im/riot-web/issues/13369
2020-05-13 12:33:10 +01:00
Michael Telatynski
d8b6b7b976
Pass screenAfterLogin through SSO in the callback url
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-13 06:24:04 +01:00
Jorik Schellekens
5029c3f143
Implement IRC draggable display name width
2020-05-13 02:16:43 +01:00
Michael Telatynski
0da8ef6a1e
Merge pull request #4560 from matrix-org/t3chguy/redact_file
...
Close ImageView when redacting
2020-05-11 10:10:25 +01:00
Michael Telatynski
5402839f30
Close ImageView when
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-08 00:15:48 +01:00
Jorik Schellekens
33a5b5142d
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/font-scaling-slider
2020-05-07 18:01:20 +01:00
Jorik Schellekens
bc5fc57dd6
Lint
...
This is why we shouldn't rely on regex
2020-05-07 14:22:15 +01:00
Jorik Schellekens
771ae5e18f
Fix encryption badge layouts and replies.
...
Begin removing dependence on slider.
Move settings to labs.
Username disambiguation.
2020-05-07 14:04:56 +01:00
Jorik Schellekens
5568e6488d
Fix encryption badge layout
2020-05-07 14:04:34 +01:00
Jorik Schellekens
0af265bf93
Fix replies
2020-05-07 14:04:34 +01:00
Jorik Schellekens
027826c2e1
Replies have the same layout as messages
2020-05-07 14:04:33 +01:00
Michael Telatynski
f0085a9feb
Merge branches 'develop' and 't3chguy/redaction_redesign' of github.com:matrix-org/matrix-react-sdk into t3chguy/redaction_redesign
2020-05-07 09:56:21 +01:00
Jorik Schellekens
bab7d5f461
Some lints
2020-05-06 17:25:54 +01:00
Agusti Bau
6e99faefde
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into comunities-drag-from-context
2020-05-02 13:40:57 +02:00
Agusti Bau
baa9cd8078
formatted files
2020-05-02 13:25:18 +02:00
Agusti Bau
a84a3c4780
hide badge when context menu is open
2020-05-02 13:12:31 +02:00
Agusti Bau
fc5a5c411f
provided.placeholder has no effect
2020-05-02 13:09:04 +02:00
Agusti Bau
01131a4036
removed unnecessary divs
2020-05-02 12:55:56 +02:00
Jorik Schellekens
af8430b98a
Inverted boolean
2020-04-28 15:48:54 +01:00
Jorik Schellekens
1b83faaa8d
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/font-scaling-slider
2020-04-28 15:38:46 +01:00
Jorik Schellekens
175b5e70b6
Lint Slider
2020-04-28 14:20:49 +01:00
Jorik Schellekens
137b94703a
Lint types
2020-04-28 14:20:49 +01:00
Jorik Schellekens
a8407c9508
Use purecomponent
...
Co-Authored-By: Travis Ralston <travpc@gmail.com>
2020-04-28 14:00:15 +01:00
Pauli Virtanen
38962560ac
Style fixes
...
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-28 02:29:20 +03:00
Michael Telatynski
a5830c229e
more tidying
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-27 23:30:40 +01:00
Michael Telatynski
c7870090f8
clean ups
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-27 23:29:38 +01:00
Michael Telatynski
83a4558d49
remove RedactedGrouper for now
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-27 23:27:46 +01:00
Agusti Bau
98a949bed1
Refactored DNDTagTile to use useContextMenu
...
Signed-off-by: Agusti Bau <agustibau@gmail.com>
2020-04-26 18:54:35 +02:00
Pauli Virtanen
d690d4bed2
Prevent PersistedElements overflowing scrolled areas
...
As the DOM element is not in reality contained inside "the parent",
it may overflow the area if the parent gets partially hidden by
scrolling etc.
To make the effect visually less annoying, emulate this by clipping to
the element wrapper. This is not a full general-purpose fix, but
improves the current situation.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-25 16:09:46 +03:00
Agusti Bau
5f3e3b3ec2
Extracted context menu from TagTile to DNDTagTile
2020-04-25 01:09:07 +02:00
Michael Telatynski
d3b0e008c1
first draft of Redaction ELS
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-24 15:39:23 +01:00
Travis Ralston
50783c2432
Appease the linter
2020-04-23 23:25:53 -06:00
Travis Ralston
28865e27bc
Don't overwrite the 'domain' data key for all widgets
...
Some widgets, which aren't Jitsi widgets, might need this to be something else.
2020-04-23 15:24:27 -06:00
Travis Ralston
efaf4fbbda
Decode dollar signs in safe widget URLs before rendering/templating
...
Fixes https://github.com/vector-im/riot-web/issues/13344
2020-04-23 15:24:27 -06:00
Travis Ralston
d66d497638
Merge pull request #4460 from matrix-org/travis/integ-logging
...
Update logging for unmanaged widgets, and add TODO comments for other areas
2020-04-23 08:17:54 -06:00
Travis Ralston
3d4032e542
Merge pull request #4459 from matrix-org/travis/fix-openid-widget
...
Fix OpenID requests from widgets
2020-04-23 08:17:38 -06:00
Jorik Schellekens
4b4599c1d8
tslint
2020-04-23 14:39:11 +01:00
Jorik Schellekens
a16fe09d42
Use em to detach slider from root font-size
2020-04-23 10:58:00 +01:00
Jorik Schellekens
8f0d81e770
Linearly interpolate between value intervals.
2020-04-23 10:45:48 +01:00
Jorik Schellekens
014be5ce5f
Add support to disable slider
2020-04-23 10:45:48 +01:00
Jorik Schellekens
5f50facfba
Make slider independant of label size
2020-04-23 10:45:48 +01:00
Jorik Schellekens
26ccd6f07d
Cleaner clamping of value range
2020-04-23 10:45:48 +01:00
Jorik Schellekens
c99e1de803
Clamp indicated value within value range
2020-04-23 10:45:48 +01:00
Jorik Schellekens
0d0da6cfdc
Fix types, abandon propTypes
2020-04-23 10:45:48 +01:00
Jorik Schellekens
dcea1f32b3
tslint
2020-04-23 10:45:48 +01:00
Jorik Schellekens
abd94a65bd
Move compoenets/FontSlider to views/Slider
2020-04-23 10:45:47 +01:00
Michael Telatynski
80b8120bc3
Update login security copy and design to match Figma
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-04-22 22:32:02 +01:00
Pauli Virtanen
798f5d401b
Ensure active Jitsi conference is closed on widget pop-out
...
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 20:44:05 +03:00
Pauli Virtanen
cf4137d4b2
Make WidgetAPI an EventEmitter + use for terminate + cleanups
...
Use EventEmitter for emitting events, rename terminate event code,
plus misc cleanups from review.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 19:37:52 +03:00
Pauli Virtanen
352ea29d17
Implement widget ReceiveTerminate capability
...
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 19:37:52 +03:00
Pauli Virtanen
94745e9407
Minimize widget immediately, and end it later
...
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 19:37:52 +03:00
Pauli Virtanen
4fac781051
Tell widgets to terminate gracefully in AppTile:_endWidgetActions
...
If the widget fails to terminate in two seconds, proceed with disposing
the iframe nevertheless.
This allows e.g. Jitsi to hangup the conference when minimizing the
widget, instead of abrupt disconnect that can leave ghost users behind.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 19:37:52 +03:00
Travis Ralston
3a360b91b9
Update logging for unmanaged widgets, and add TODO comments for other areas
...
Just a minor thing that is bothersome. Renaming classes and functions is a bit more of an impact than is worth right now, so have settled for littering TODO comments all over the place.
2020-04-22 00:34:08 -06:00
Travis Ralston
d851f2e45f
Fix OpenID requests from widgets
...
Fixes https://github.com/vector-im/riot-web/issues/13131
Widgets can request an OpenID token to authenticate the user when the widget is missing authentication information. A common case for this is the Dimension sticker picker: sometimes the Riot is running in doesn't have the configuration to match the Dimension instance, so Riot rightly refuses to send an auth token to the widget. When this happens, it requests a token through postMessage().
There's a toggle on the permission dialog to remember the setting, which is the widget's security key. As an added measure, the security key generation ensures the widget URL matches as the 'remember this choice' toggle will silently work in the background, and it could be dangerous if the widget's URL changed and Riot secretly allows the widget to identify the user. This check was failing because the WidgetMessaging class was being set up with the rendered URL, which will not match the widget's URL at all. To fix this, we simply use the widget's URL to set up the messaging, which by proxy uses the right URL in calculating the security key.
2020-04-22 00:27:20 -06:00