Bruno Windels
a73b7229a7
fix lint
2020-01-17 16:31:38 +01:00
Bruno Windels
d20db3560a
fix import paths after build system refactor
2020-01-17 15:50:27 +01:00
Travis Ralston
d1fcef1211
Merge branch 'develop' into bwindels/verification-right-panel
2020-01-16 13:23:32 -07:00
Travis Ralston
cd9fc72fff
Merge branch 'develop' into t3chguy/rightpanel
2020-01-16 10:04:18 -07:00
Michael Telatynski
0f61aa57ff
Apply suggestions from code review
...
Co-Authored-By: Travis Ralston <travpc@gmail.com>
2020-01-16 17:00:04 +00:00
Travis Ralston
5fd27a10bb
Merge branch 'develop' into travis/sourcemaps
2020-01-13 11:19:41 -07:00
Michael Telatynski
9c686bf501
Fix right panel buttons highlighting
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-13 12:15:54 +00:00
Travis Ralston
fde32f13a5
[CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop
2020-01-09 14:15:09 -07:00
Michael Telatynski
0a9d7f43c6
pass the correct phase params for consistency
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-09 15:51:19 +00:00
Michael Telatynski
7dfc392a2b
Merge branches 'develop' and 't3chguy/rightpanel' of github.com:matrix-org/matrix-react-sdk into t3chguy/rightpanel
2020-01-09 15:48:06 +00:00
Michael Telatynski
a62c260f79
Fix userinfo for users not in the room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-07 12:58:24 +00:00
Michael Telatynski
6a1f4c41ce
Merge pull request #3788 from matrix-org/t3chguy/user_info_non-historical
...
User Info fetch latest RoomMember instead of showing historical data
2020-01-06 11:25:54 +00:00
Michael Telatynski
4118faa834
When looking at a MemberInfo, clicking on MemberList should close not switch
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-05 20:31:07 +00:00
Michael Telatynski
fb754b795c
Fix right panel buttons highlighting
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-01-05 20:30:01 +00:00
David Baker
5897c8ca7f
Remove 'unverify' from UserInfoPanel
...
It's not in the designs and it's not a thing we can do with
cross-signing (at least not at the moment).
2020-01-03 15:00:51 +00:00
Bruno Windels
7a88a94936
fixes!
2020-01-03 13:50:13 +01:00
Bruno Windels
075e42c076
use transactionId as key for react
2020-01-03 13:50:13 +01:00
Bruno Windels
de1c3e2f83
use same style as UserInfo for sections and paragraphs
2020-01-03 13:50:13 +01:00
Bruno Windels
2dd1e93d84
show message after clicking "they match"
2020-01-03 13:50:13 +01:00
Bruno Windels
d57e76f3e2
hide verify button for own member
2020-01-03 13:50:13 +01:00
Bruno Windels
8c5f3d6d94
show devices and unverify action also in unencrypted rooms
2020-01-03 13:48:35 +01:00
Bruno Windels
b80bfd04b2
make sure to have roomId of DM when starting verif. req.
2020-01-03 13:47:38 +01:00
Bruno Windels
b866c16071
show cancellation
2020-01-03 13:47:38 +01:00
Bruno Windels
db17321777
await verify so errors (like cancellation) are caught
2020-01-03 13:47:38 +01:00
Bruno Windels
2c28fa0568
use verif in right panel from "verify" button
2020-01-03 13:47:38 +01:00
Bruno Windels
0f415038be
actually start verify process in verification panel
...
temporary code, as ux is not complete
2020-01-03 13:42:18 +01:00
Bruno Windels
c02fc44d25
WIP sas in right panel
2020-01-03 13:42:17 +01:00
Bruno Windels
d8a38e6b74
WIP
2020-01-03 13:42:17 +01:00
Michael Telatynski
705bfcd20d
fix RoomViewStore import in UserInfo
2019-12-28 17:54:46 +00:00
Michael Telatynski
a0cb6ce302
User Info fetch latest RoomMember instead of showing historical data
2019-12-28 17:51:38 +00:00
Michael Telatynski
73800c9a92
Fix UserInfo promote user inverted buttons
2019-12-26 18:04:58 +00:00
Michael Telatynski
0497ef228d
UserInfo hide kick/mute buttons if they make no sense
2019-12-23 18:20:59 +00:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
d56f0f2a25
Convert many imports to handle ES6 exports
...
Reliant upon https://github.com/matrix-org/matrix-react-sdk/pull/3761
2019-12-22 21:04:42 -07:00
David Baker
a928b33f27
Don't show the 'verify' button if the user is verified
...
Which is more in keeping with the designs (and we can do this now
that the new user info panel is only enabled with cross signing).
2019-12-20 16:51:50 +00:00
David Baker
b998e6ffe8
Switch to using checkDeviceTrust
...
In the UserInfo panel. This means we now use cross-signing
verifications in the UserInfoPanel so we can see our cross-signing
verifications working!
Lots more to do here: the remaining device.isVerified() calls in
UserInfoPanel are where it needs to be switched to verifying users
rather than devices, and of course we need to replace all the calls
to device.isVerified() with checkDeviceTrust everywhere else.
2019-12-20 11:31:11 +00:00
Michael Telatynski
24d0d0d596
Merge pull request #3743 from matrix-org/t3chguy/react16_contexts
...
Migrate away from React Legacy contexts API
2019-12-19 20:32:11 +00:00
Michael Telatynski
66783dff9e
Fix scaling of the avatar in UserInfo
2019-12-19 12:27:25 +00:00
Michael Telatynski
3196655524
Replace UserInfo avatar with <MemberAvatar/> for fallback logic
2019-12-19 10:42:47 +00:00
Michael Telatynski
da4d72b3c4
delint
2019-12-17 17:34:03 +00:00
Michael Telatynski
937b32663c
Migrate away from Legacy React Contexts
2019-12-17 17:26:12 +00:00
Michael Telatynski
c1133ebfc6
null-guard useIsEncrypted
2019-12-17 14:05:51 +00:00
J. Ryan Stinnett
2df72bfde2
Update room / user decoration for cross-signing
2019-12-13 17:57:26 +00:00
J. Ryan Stinnett
3ac0deebab
Use static modals for verification
...
Verification with cross-signing may requiring asking for your secret storage
passphrase, which is displayed in it's own modal on top of flows. For now while
verification takes in modals also, mark the verification ones as static so they
don't lose state when secret storage appears on top mid-flow.
2019-12-13 13:55:28 +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
Travis Ralston
4bcf99f65e
Fix member info not opening
...
The subclasses listen for view_user and similar dispatches, which then start up the RightPanel. We weren't registering a listener though because we changed to using the RightPanelStore for most of our logic.
2019-12-06 14:51:49 -07:00
Travis Ralston
a24bbdffd0
Appease the linter
...
Mid-PR cleanup.
2019-12-05 23:58:19 -07:00
Travis Ralston
ca0c393783
Use new right panel store for header buttons
...
This introduces a new dispatch action (unused, so far) and routes the buttons towards the RightPanelStore for processing.
2019-12-05 23:28:06 -07:00
Travis Ralston
6e882251bd
Break the right panel completely
...
This lays a foundation for redirecting all the traffic through the new store, but for now the core parts of the app need to stop caring if the right panel is open.
2019-12-05 17:47:18 -07:00
Travis Ralston
616a5ab55d
Merge branch 'develop' into travis/deactivate-2
2019-11-15 10:24:20 -07:00
Bruno Windels
d416ba2c0c
add verify button while we don't have the verification in right panel
2019-11-15 16:14:18 +01:00
Bruno Windels
3a399e18fc
prevent https://github.com/vector-im/riot-web/issues/11338
2019-11-15 16:14:18 +01:00
Bruno Windels
53019c5e91
don't show devices section when not encrypted, as it just shows spinner
2019-11-15 16:14:18 +01:00
Bruno Windels
92237f1045
cleanup
2019-11-15 16:14:18 +01:00
Bruno Windels
264c8181c2
add canEdit to permission state, more explicit than maxLevel >= 0
2019-11-15 16:14:18 +01:00
Bruno Windels
48b1207c6e
split up PowerLevelEditor into two components
...
one while editing (PowerLevelEditor) and one
while not editing (PowerLevelSection).
Also save when pressing the button, not when changing the
power dropdown.
Also show the spinner next to the dropdown when saving,
not at the bottom of the component.
2019-11-15 16:14:18 +01:00
Bruno Windels
e86ceb986f
pass powerlevels state to power level section and admin section
2019-11-15 16:14:18 +01:00
Bruno Windels
bd853b3102
listen for RoomState.members instead of RoomState.events
...
as the powerlevel on the member is not yet updated at the time
RoomState.events is emitted.
Also listen on the client for this event as the currentState
object can change when the timeline is reset.
2019-11-15 16:14:18 +01:00
Bruno Windels
6db162a3a7
add PL edit mode, don't show selector by default
...
still saves when changing the selector though
2019-11-15 16:14:18 +01:00
Bruno Windels
9e8a2eda1f
small fixes
2019-11-15 16:14:18 +01:00
Bruno Windels
030827f77d
mark destructive actions in red
2019-11-15 16:14:18 +01:00
Bruno Windels
0bd1e7112d
style security section as per design
2019-11-15 16:14:18 +01:00
Bruno Windels
04731d0ae3
RoomState.events fired on RoomState object, not room
2019-11-15 16:14:18 +01:00
Bruno Windels
6afeeddb36
hide verified devices by default with expand button
2019-11-15 16:14:18 +01:00
Bruno Windels
4a1dc55673
fixup: rearrange openDMForUser
2019-11-15 16:14:18 +01:00
Bruno Windels
e32a948d5d
add "unverify user" action to user info
2019-11-15 16:14:18 +01:00
Bruno Windels
29216ef668
update when room encryption is turned on
...
also don't download devices as long as room is not encrypted
2019-11-15 16:14:18 +01:00
Bruno Windels
bd2bf4500a
remove direct message list from UserInfo
2019-11-15 16:14:18 +01:00
Bruno Windels
238555f4ec
fixup: isMe
2019-11-15 16:14:18 +01:00
Bruno Windels
8dd7d8e5c0
fixup: don't consider left DM rooms
2019-11-15 16:14:18 +01:00
Bruno Windels
b475bc9e91
Add direct message button
...
While we don't have canonical DMs yet,
it takes you to the most recently active DM room
2019-11-15 16:14:18 +01:00
Bruno Windels
3e356756aa
style profile info
2019-11-15 16:14:18 +01:00
Bruno Windels
af4ad488bd
Restyle Avatar
...
Make it a circle with the profile picture centered,
with a max height/width of 30vh
2019-11-15 16:14:18 +01:00
Travis Ralston
b05dabe2b7
Add better error handling to Synapse user deactivation
...
Also clearly flag it as a Synapse user deactivation in the analytics, so we don't get confused.
Fixes https://github.com/vector-im/riot-web/issues/10986
2019-11-14 12:02:43 -07:00
Michael Telatynski
168b1b68bb
Revert "s/.done(/.then(/ since modern es6 track unhandled promise exceptions"
...
This reverts commit 09a8fec2
2019-11-12 11:56:21 +00:00
Michael Telatynski
09a8fec261
s/.done(/.then(/ since modern es6 track unhandled promise exceptions
2019-11-12 11:51:23 +00:00
Michael Telatynski
02f8b18346
Merge branch 't3chguy/nvl/userinfo' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/nvl/userinfo
...
Conflicts:
src/components/views/right_panel/UserInfo.js
2019-10-19 16:42:00 +01:00
Michael Telatynski
0e6359ab24
replace @use-it/event-listener as it doesn't like Node EE's
2019-10-19 16:39:06 +01:00
Michael Telatynski
7e4d429fa3
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 19:18:14 +01:00
Michael Telatynski
93429d7c2e
Break withLegacyMatrixClient into a util module
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 19:13:37 +01:00
Michael Telatynski
2494af37c8
Break UserInfo:RoomAdminToolsContainer into smaller components
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 19:08:40 +01:00
Michael Telatynski
37b122aa16
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-08 10:50:37 +01:00
Michael Telatynski
df02eb8e92
Add UserInfo panel (consolidation of MemberInfo & GroupMemberInfo) Labs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-07 16:52:50 +01:00
Michael Telatynski
f1db0cf027
Various ARIA a11y fixes.
...
Notate RightPanel tabs.
Shorten Screen Reader queues.
Make AccessibleTooltipButton screen reader friendly
Flatten DOM for Sticker button using React Fragments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-03 09:35:39 +01:00
Bruno Windels
fee30d4482
adjust prop in HeaderButton
2019-04-11 18:32:38 +02:00
Bruno Windels
483b7fc14d
take buttons into account that are active over multiple phases when toggling
2019-04-11 13:31:21 +02:00
Bruno Windels
02792132e1
dont create functions in render
2019-04-11 13:22:47 +02:00
Bruno Windels
49e96dc404
remove unused dispatcher import
2019-04-10 13:31:27 +02:00
Bruno Windels
6ca1a879c9
remove hacks, now that emitting show_right_panel is centralized
2019-04-10 13:22:31 +02:00
Bruno Windels
fe63b6b5bd
setPhase can now open the panel, don't open it if closed on view_room
2019-04-10 13:21:42 +02:00
Bruno Windels
2b4b6feba2
call togglePhase from header buttons
2019-04-10 13:21:07 +02:00
Bruno Windels
5fb9276ef3
add togglePhase method, where we can show the panel if needed
...
without needing to resort to redispatching the original action
2019-04-10 13:20:03 +02:00
Travis Ralston
99dc2c4738
Add MemberInfo for 3pid invites and support revoking those invites
...
Fixes https://github.com/vector-im/riot-web/issues/625
Fixes https://github.com/vector-im/riot-web/issues/6411
Fixes https://github.com/vector-im/riot-web/issues/5490
2019-03-28 21:02:24 -06:00
J. Ryan Stinnett
3cba5edd6f
Allow theming right panel header buttons
2019-02-13 10:47:04 +00:00
Bruno Windels
ccaa017980
add divider between tabs and regular buttons in room header
2019-02-12 20:05:01 +01:00
J. Ryan Stinnett
319369d1be
Fix remaining warnings for enabled files
2019-01-23 18:38:49 -06:00
J. Ryan Stinnett
20e296b20e
Convert image URLs in React to require
calls
...
This allows Webpack to insert the proper image URL after builds steps like
adding a hash and so on. The path you supply to `require` is relative to the JS
source file, just like any other would be.
2019-01-17 22:06:49 -06:00
Bruno Windels
8c30d05eb8
Revert "Merge pull request #2348 from matrix-org/bwindels/roomgridview-experimental"
...
This reverts commit ece5cb1fcc
, reversing
changes made to 64a3d2521c
.
2019-01-17 10:29:37 +01:00
Bruno Windels
c6952ba5b6
fix some more lint warnings, as limit is 16 now
2019-01-07 16:56:35 +01:00
Bruno Windels
1d43712a8f
Merge branch 'experimental' into nadonomy/icons
2018-12-18 18:22:24 +01:00
Nad Chishtie
074c96cd3e
First pass of normalising icons.
2018-12-18 16:48:20 +00:00
Bruno Windels
c0ab74d5f1
reemit view_right_panel_phase when showing rhs, so right tab is active
2018-12-18 16:27:17 +01:00
Bruno Windels
dafc54c434
don't highlight room header buttons when right panel is collapsed
2018-12-18 15:36:54 +01:00
Bruno Windels
a10f0a3267
don't open right panel when switching room again
...
a view_right_panel_phase is dispatched by RoomHeaderButtons
on view_room, which was triggering this to show the panel again.
Check the fromHeader flag just like when hiding the panel so
only room header buttons can hide or show the right panel
2018-12-18 15:33:45 +01:00
Bruno Windels
f6727c5724
add collapsedRhs to propTypes
2018-12-18 10:34:26 +01:00
Bruno Windels
a734fb9d35
dont set initial phase, show panel when collapsed
2018-12-17 15:55:26 +01:00
Bruno Windels
bbafd8c2d3
toggle right panel when clicking already active header button
2018-12-17 15:22:02 +01:00
Bruno Windels
84044fca1c
fix lint
2018-12-11 11:09:11 +01:00
Bruno Windels
ccf65d5f3c
remove background from group room list header button
2018-12-10 17:45:47 +01:00
Bruno Windels
fb4a441341
fix navigation to room info in group view
2018-12-10 16:52:45 +01:00
Bruno Windels
bd9c0dc6cf
fix lint
2018-10-31 12:20:10 +01:00
Bruno Windels
e80a1c5051
move room/group panel header buttons into room/group header
2018-10-30 17:15:19 +01:00