Richard Lewis
aefccb134c
Ensure deleting is set to false.
2018-03-29 16:56:25 +01:00
Richard Lewis
4ac9653ab9
Refactor widget postMessage API.
2018-03-28 12:22:06 +01:00
Michael Telatynski
fac89d9c58
Merge branch 'develop' into t3chguy/m.relates_to
2018-03-28 08:38:33 +00:00
Luke Barnard
944940057e
Remember that React needs React
2018-03-27 13:04:26 +01:00
Luke Barnard
2ffcad0981
Convert GeminiScrollbarWrapper to stateless component
2018-03-27 13:04:26 +01:00
Luke Barnard
39e9d52c04
Make sure to proxy special prop ref
2018-03-27 13:04:26 +01:00
Luke Barnard
b80568b1c5
Wrap GeminiScrollbar in a component, enabled forceGemini
...
Fixes https://github.com/vector-im/riot-web/issues/6294
2018-03-27 13:04:26 +01:00
Michael Telatynski
b5ed08eba2
Merge
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-03-24 17:52:49 +00:00
David Baker
580b68a1b6
Merge pull request #1652 from pvagner/dialog-a11y
...
Dialog a11y
2018-03-20 11:35:57 +00:00
Michael Telatynski
661073493b
implement desired m.room.message->m.text fallbacks
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-03-16 18:31:17 +01:00
Richard Lewis
4d8f5072f7
Allow react performance profiling on widget iframes.
2018-03-16 10:20:14 +00:00
Richard Lewis
66ea78de65
Clean up whitelisted permission addition / logging.
2018-03-13 11:59:15 +00:00
Richard Lewis
8b311c706c
Null guard widget listener
2018-03-13 11:58:47 +00:00
Richard Lewis
f820374f9f
Logging.
2018-03-13 11:01:51 +00:00
Richard Lewis
de33294000
Center loading spinner.
2018-03-13 10:07:49 +00:00
Richard Lewis
b2d23b6999
Switch to 'm.sticker' message events. Allow whitelisting of wisget capabilities.
2018-03-12 13:56:02 +00:00
Michael Telatynski
14f29e4740
fix the bugs Tulir found - THANKS
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-03-09 23:37:42 +00:00
Richard Lewis
fdec4b36c9
Hide padding if last control.
2018-03-08 17:25:28 +00:00
Richard Lewis
3ab8b1f866
Hide sticker picker delete button and show minimise button.
2018-03-08 17:20:42 +00:00
Michael Telatynski
ed8f087eb6
fix access of element [0] of array even though it sometimes does not exist
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-03-06 15:17:57 +00:00
Richard Lewis
e2cedbe9d7
Pull in changes from develop
2018-03-05 16:43:59 +00:00
Michael Telatynski
df56a67fda
Add reply fallback and run gen-i18n
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-03-04 12:39:34 +00:00
David Baker
9a7a7ea2d6
Merge pull request #1784 from matrix-org/luke/fix-group-avatar-default-colour
...
Fix varying default group avatar colour for given group
2018-03-01 15:56:33 +00:00
Luke Barnard
94c1baa25d
Fix varying default group avatar colour for given group
2018-03-01 15:42:22 +00:00
Luke Barnard
4037a22492
Fix bug where avatar change not reflected in LLP
...
Fixes vector-im/riot-web#6189
2018-03-01 14:40:03 +00:00
Luke Barnard
567d83ba52
Update PowerSelector to support powerLevelKey prop
...
As a key to send as second argument to onChange. This is useful
when passing the same callback to multiple PowerSelectors.
2018-02-28 16:15:20 +00:00
Richard Lewis
2b0790b32b
Fix PropTypes.
2018-02-25 22:36:59 +00:00
Richard Lewis
b2bf4d4709
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into rxl881/snapshot
2018-02-23 15:37:33 +00:00
Richard Lewis
d755b8284c
Remove logging and cleanup.
2018-02-23 15:22:56 +00:00
Richard Lewis
13bebd69c9
Made comment "react-style".
2018-02-21 23:35:57 +00:00
Richard Lewis
ecde099146
Fix typo.
2018-02-21 23:24:53 +00:00
Richard Lewis
7e8660cd37
Add comment for "is" attribute.
2018-02-21 23:23:44 +00:00
Richard Lewis
ffb524b6a5
Allow widget iframes to request camera and microphone permissions.
2018-02-21 23:10:08 +00:00
Michael Telatynski
90f9badbf3
s/Reply/ReplyThread/
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-20 15:40:19 +00:00
Michael Telatynski
7048d85246
attach message_sent and replies to file uploads
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-19 23:42:04 +00:00
Michael Telatynski
6510989ac6
move unmounted init to willMount
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-19 14:28:31 +00:00
Michael Telatynski
8fa56f8c9a
update and improve comments
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-19 14:27:10 +00:00
Michael Telatynski
4c08c51044
Reply; delay call to onWidgetLoad until after async setState completes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-16 21:24:42 +00:00
Michael Telatynski
0d6fc9bd3a
fix Composer focus after twiddling with Replies
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-16 21:17:41 +00:00
Michael Telatynski
f1a3592eff
fix 12/24h in Reply/ReplyPreview
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-16 21:14:03 +00:00
Michael Telatynski
2e3cbb309e
Merge branches 'develop' and 't3chguy/m.relates_to' of github.com:matrix-org/matrix-react-sdk into t3chguy/m.relates_to
2018-02-16 14:35:04 +00:00
Luke Barnard
a34fea8af8
Merge branch 'develop' into luke/feature-tag-panel-tile-context-menu
2018-02-13 16:51:00 +00:00
Luke Barnard
db0ea9eb0e
Merge branch 'develop' into luke/room-list-flux
2018-02-13 10:18:24 +00:00
Luke Barnard
e3f68f12c8
Add context menu to TagTile
...
With two options: View Community and Remove, which
removes the tag from the panel.
2018-02-12 18:01:08 +00:00
Michael Telatynski
aeedf48d84
fix weird in
op behaviour with null
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-11 11:45:13 +00:00
Michael Telatynski
7bf05b0715
add unmounted guard
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 16:01:19 +00:00
Michael Telatynski
25bc9cfbe7
make spinner size more appropriate
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 15:47:32 +00:00
Michael Telatynski
7425d01b21
tidy, improve error handling and improve Replies, run gen-i18n
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 15:45:42 +00:00
Michael Telatynski
23c0daa83a
pass onWidgetLoad to fix console err for e2e
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 12:41:31 +00:00
Michael Telatynski
fbb950e064
mass s/Quote/Reply
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 12:38:25 +00:00
Michael Telatynski
18145460b2
fix Replies for e2e
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 12:31:22 +00:00
Michael Telatynski
1c3d8cbe6e
initial refactor of Replies to use B
explicit over-the-wire format
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-02-10 11:19:43 +00:00
Richard Lewis
9e3c1fbc7a
Pass room name.
2018-02-09 11:44:27 +00:00
Richard Lewis
5e30468a00
Linting
2018-02-07 14:48:43 +00:00
Richard Lewis
7b75dbbd15
Use default AppTile menu bar.
2018-02-07 14:44:01 +00:00
Peter Vágner
14991afbe5
Merge branch 'develop' into dialog-a11y
2018-02-06 23:04:15 +01:00
Luke Barnard
cf4ae681f4
Offline mode ( #1723 )
...
* Allow the client to run without connection to HS (i.e. using indexeddb)
Allows running without having pushRules (it's safe not to have these
when running from indexeddb sync.)
This means rooms will be displayed with "unknown" notifcation state.
This assumes anything that uses the push rules will get pushRule state
again when the client starts syncing again.
For recovering from being disconnected,
* If an avatar has fallen back, try again on reconnection
* If a thumbnail image failed to load, retry on reconnect
* Load joined groups when reconnecting
Update tests to give MELS a context.matrixClient
2018-02-06 17:50:53 +00:00
Luke Barnard
ff8fcb3139
Merge branch 'develop' into luke/room-list-flux
2018-02-05 11:39:39 +00:00
Michael Telatynski
6dd63ae644
Null guard against falsey (non-null) props.node, to make react happy
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-01-29 19:17:46 +00:00
lukebarnard
73e3a594ac
Prevent TagTiles from being dragged into other droppables
...
for the time being at least.
2018-01-25 22:52:19 +01:00
Michael Telatynski
e3e3535072
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-01-22 17:02:20 +00:00
Michael Telatynski
4490715b60
Merge branch 'develop' into t3chguy/rich_quoting_linear
2018-01-22 16:46:20 +00:00
Michael Telatynski
a6cefb83f8
basic error handling for malformed quotes
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-01-22 16:41:32 +00:00
Michael Telatynski
3b1d69edbb
Change Quotes to be linearly rendered rather than recursively nested
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-01-22 16:34:47 +00:00
lukebarnard
75a1922731
Fix linting
2018-01-19 14:07:13 +00:00
Matthew Hodgson
6c15bd8599
fix NPE when getGroupProfiles returns null
2018-01-19 10:39:38 +00:00
Richard Lewis
23bef68a8f
Fix duplicate message listeners
2018-01-18 13:16:06 +00:00
Richard Lewis
1293c53c4b
Cleanup
2018-01-18 12:02:45 +00:00
Richard Lewis
3331c8af27
Use dispatcher ref for unregister call.
2018-01-17 15:40:04 +00:00
lukebarnard
16c13fb079
Replace TagPanel react-dnd with react-beautiful-dnd
...
This new library handles the simple case of an ordered vertical
(or horizontal) list of items that can be reordered.
It provides animations, handles positioning of items mid-drag
and exposes a much simpler API to react-dnd (with a slight loss
of potential function, but we don't need this flexibility here
anyway).
Apart from this, TagOrderStore had to be changed in a highly
coupled way, but arguably for the better. Instead of being
updated incrementally every time an item is dragged over
another and having a separate "commit" action, the
asyncronous action `moveTag` is used to reposition the tag in
the list and both dispatch an optimistic update and carry out
the request as before. (The MatrixActions.accountData is still
used to indicate a successful reordering of tags).
The view is updated instantly, in an animated way, and this
is handled at the layer "above" React by the DND library.
2018-01-15 18:12:27 +00:00
Richard Lewis
5e6da4d758
* Fix key error
...
* Remove redundant logging
* Catch error
2018-01-15 14:22:41 +00:00
Richard Lewis
1ab71f6f50
Load stickers in AppTile
2018-01-11 13:20:58 +00:00
Richard Lewis
4f3670941d
Bind functions
2018-01-11 12:33:02 +00:00
Richard Lewis
d0c16fa7a1
Convert to ES6 class.
2018-01-11 11:49:46 +00:00
David Baker
292a6c5767
Merge pull request #1674 from aidalgol/rebase-dialogs
...
Normalise dialogs
2018-01-11 10:49:40 +00:00
Michael Telatynski
1a7dc22a8d
make wantsDateSeparator generic and throw into DateUtils
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-01-10 12:06:24 +00:00
Michael Telatynski
1bc9d344ae
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/nvl/rich_quoting
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
# Conflicts:
# src/components/views/messages/TextualBody.js
2018-01-10 11:54:58 +00:00
Michael Telatynski
a977ab9be4
change handler name to suit convention
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-01-10 11:51:23 +00:00
Aidan Gauland
9365860075
Update copyright line
2018-01-09 18:40:12 +13:00
Richard Lewis
0577316c86
Fix duplicate event registration.
2018-01-08 13:40:33 +00:00
Richard Lewis
dc1423052f
De-register listener.
2018-01-08 11:32:23 +00:00
David Baker
5aed77c752
Merge pull request #1677 from aidalgol/PropTypes
...
Remove use of deprecated React.PropTypes
2018-01-05 11:53:55 +00:00
Peter Vágner
cf472c791d
Consume all combinations of space / enter, keyDown / keyUp presses and
...
try to explain this key handling inconsistency with some additional
comments as per the review discussion.
2018-01-05 11:45:45 +01:00
Richard Lewis
54d128658e
Comment logging.
2018-01-04 23:00:10 +00:00
Richard Lewis
d20aebfbd7
Correctly handle sticker message events.
2018-01-04 18:58:55 +00:00
Richard Lewis
eb4053bc99
Handle sticker message payloads
2018-01-04 18:41:47 +00:00
lukebarnard
55bfff24c4
Fix forgotten rename during d5e2a73d99
2018-01-04 17:46:44 +00:00
lukebarnard
d495519986
Fix shift-ctrl-click
...
isOnlyCtrlOrCmdKeyEvent is predicated on !shiftKey, so another function was needed for cases where we ignore other keys
2018-01-03 11:39:15 +00:00
lukebarnard
133837cdbe
Document initial state
2018-01-02 15:59:10 +00:00
lukebarnard
833cd321f3
Log warning in case of failed group profile fetch
2018-01-02 15:58:24 +00:00
lukebarnard
31855f18f8
Initialise profile state
2018-01-02 15:56:32 +00:00
lukebarnard
2cb4c897ce
Move getInitialState
before componentWillMount
2018-01-02 13:45:19 +00:00
lukebarnard
3cb128094d
Add more comments to TagTile to explain what it is
2018-01-02 13:44:22 +00:00
lukebarnard
80f11e5c77
Comment tag PropType
2018-01-02 13:34:47 +00:00
Richard Lewis
a408b98504
Set widget ID on WidgetMessaging instance.
2017-12-29 14:34:52 +00:00
Richard Lewis
7660176079
Fix comment linting errors.
...
Stop listening and cleanup endpoints correctly.
2017-12-28 22:27:12 +00:00
Aidan Gauland
35780f5ae0
Remove use of deprecated React.PropTypes
...
Replace all uses of React.PropTypes with PropTypes and importing PropTypes from
'prop-types'.
2017-12-26 14:03:18 +13:00
Aidan Gauland
e4b86f0730
Fix use of deprecated module
...
Use PropTypes from "prop-types" instead of the deprecated React.PropTypes
submodule.
2017-12-26 11:55:15 +13:00
Aidan Gauland
45d86ea7ca
Add DialogButton component
...
A component to normalise the buttons in dialogs.
2017-12-23 17:02:19 +13:00
Richard Lewis
baf472b4a3
Only show snapshot button when apps are maximised.
2017-12-19 17:16:38 +00:00
Richard Lewis
08bcfc5c4e
Make sure that capabilities array is initialised.
2017-12-19 17:15:06 +00:00
Michael Telatynski
47d4e5f8d1
nest quotes, but only when people want to click through them
...
loads pre-emptively
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-12-18 19:28:01 +00:00
Michael Telatynski
9603b21199
s/Quote/Reply/ and ES6 tweaks
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-12-17 20:20:45 +00:00
Richard Lewis
83f9a4162b
Request capabilities (e.g. ability to take snapshots) from widgets.
2017-12-16 09:16:24 +00:00
Richard Lewis
e63f5696a6
Screenshot handlers
2017-12-15 21:36:02 +00:00
Michael Telatynski
0ad0c0e9f7
finish i18n, and add a Date Sep to quote if it needs it
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-12-15 18:39:01 +00:00
Luke Barnard
6f896098e3
Get Group profile from TagTile instead of TagPanel
...
So that instead of getting all group profiles everytime the tags
change order, get them when the TagTile mounts for a group tag.
2017-12-15 17:18:46 +00:00
Richard Lewis
f2ad7be3f3
Add event handlers and comments.
2017-12-15 16:56:02 +00:00
Richard Lewis
f410112983
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into rxl881/snapshot
2017-12-15 10:18:56 +00:00
Luke Barnard
9975941f3c
Merge pull request #1653 from matrix-org/luke/feature-ordered-tag-panel
...
DnD Ordered TagPanel
2017-12-14 10:36:16 +00:00
Peter Vágner
9f5857a7cc
Merge branch 'develop' into dialog-a11y
2017-12-14 11:04:59 +01:00
Richard Lewis
c739269777
Update widget title on edit.
2017-12-13 10:14:26 +00:00
Michael Telatynski
38e8488c2a
we don't actually use state.room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-12-12 23:25:38 +00:00
Richard Lewis
c93266b6af
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into rxl881/titleBar
2017-12-11 13:08:49 +00:00
Michael Telatynski
b6182f7e6c
Tidy Quote class, removing comments etc
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-12-10 12:54:19 +00:00
Michael Telatynski
0f85391587
Implement Rich Quoting/Replies
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-12-10 12:50:41 +00:00
Richard Lewis
24db57bfb6
Fix api prefix.
2017-12-08 18:47:00 +00:00
Matthew Hodgson
f2d68e4601
Merge pull request #1649 from matrix-org/rxl881/titleBar
...
Add maximize / minimize apps drawer icons.
2017-12-08 19:18:45 +01:00
Richard Lewis
20917e1a07
Set page title from widget data, if available.
2017-12-08 15:12:48 +00:00
Luke Barnard
72550961e5
Move 'commit_tags' to action creator
2017-12-08 10:52:20 +00:00
Luke Barnard
4603d593de
Merge pull request #1588 from pvagner/develop
...
Add some missing translatable strings
2017-12-07 09:41:39 +00:00
Peter Vágner
839f938c91
Argh! Reworked AccessibleButton key handling again. It turned out by
...
fixing behaviour when pressing the enter key breaks behaviour when
pressing space to activate the buttons. So we are now handling enter
onKeyDown and space onKeyUp. Also briefly explained the situation with
comments.
2017-12-07 10:20:27 +01:00
Richard Lewis
ed675fe791
Allow bypass of widget loading screen on hide / show.
2017-12-06 22:54:32 +00:00
Luke Barnard
65d88334a9
Fix linting
...
React DnD specifies functions with upper-case first letters
2017-12-06 16:48:18 +00:00
Richard Lewis
e20db416f2
Add field to bypass riot widget loading screen.
2017-12-06 16:44:41 +00:00
Luke Barnard
a8a650c24a
Move TagTile to separate file, and make it dragable
2017-12-06 11:25:46 +00:00
Peter Vágner
f9b0243c8e
Merge branch 'develop' into dialog-a11y
2017-12-06 11:10:18 +01:00
Peter Vágner
802abe7091
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into develop
2017-12-06 11:07:01 +01:00
Peter Vágner
eda453bbe5
Fixed an issue where pressing enter key to activate the AccessibleButton
...
was also activating normal button that might just have received the
system focus as a result of the key press and the other way round.
The most obvious occurence of this issue is that dialogs were
reappearing when dismissed by pressing the enter key.
2017-12-05 23:23:40 +01:00
Richard Lewis
3206527d73
Remove logging.
2017-12-05 21:59:44 +00:00
Richard Lewis
7f86ed35a3
Only show custom title if different from app name.
2017-12-05 21:49:11 +00:00
Richard Lewis
1415a83a61
Merge branch 'rxl881/titleBar' of https://github.com/matrix-org/matrix-react-sdk into rxl881/customTitle
2017-12-05 21:42:47 +00:00
Richard Lewis
d5d5397959
Set custom widget title.
2017-12-05 21:41:44 +00:00
Richard Lewis
9fd8deb16d
Add maximize / minimize apps drawer icons.
2017-12-05 18:18:51 +00:00
Richard Lewis
49a2985515
Register message endpoints.
...
Store endpoint origins only.
2017-12-05 00:08:17 +00:00
Richard Lewis
c9b8aab0e0
Workings for future posterity - Can't access iframe content from parent. iframe needs to initiate. Postmessage data up the stack.
2017-12-03 19:44:59 +00:00
Richard Lewis
3a89b90e57
Add stub handler for image snapshot
2017-12-03 11:25:15 +00:00
Richard Lewis
5ff5ca4705
Remove logging and broken title fetching functions.
2017-11-30 14:50:30 +00:00
Richard Lewis
2cfbbb000e
Refactor messaging listerners.
2017-11-30 10:20:29 +00:00
Richard Lewis
4f5f44ff38
Add widget postmessage API stub.
2017-11-29 22:16:22 +00:00
Luke Barnard
3addb924b1
Replace (IRC) with flair
...
If a user has public groups that are honoured in their flair, remove the (IRC) to give the appearance that the flair replaces it.
2017-11-28 13:50:05 +00:00
Peter Vágner
093f110199
Make the toggle button on the memberEventListSummary translatable
2017-11-18 17:48:57 +01:00
Peter Vágner
184b29daf8
Revert "Make the disabled PowerSelector element showing custom value translatable. Fixes #5547 "
...
This reverts commit 681f43913a
.
2017-11-18 16:58:36 +01:00
Stefan Parviainen
8090aadb0e
Add aria-labels to ActionButtons
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-11-17 14:33:39 +01:00
Luke Barnard
dad797d4a2
Run linting --fix
2017-11-16 13:19:36 +00:00
Richard Lewis
750e64deee
Pass required props to TintableSvg.
2017-11-15 15:17:21 +00:00
Richard Lewis
7bab7813bb
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into rxl881/invertOutlineColour
2017-11-15 13:26:29 +00:00
Richard Lewis
59d405d4fa
Use TintableSvgButtons for widget menubar icons.
2017-11-15 13:24:38 +00:00
Richard Lewis
6c2e9096cd
Tintable SVGs that behave like normal image buttons / links.
2017-11-15 13:08:24 +00:00
Matthew Hodgson
96a3eff5d3
lint hell
2017-11-15 11:25:56 +00:00
Travis Ralston
bd4102eb3d
Merge branch 'develop' into travis/granular-settings
2017-11-14 19:12:48 -07:00
Richard Lewis
58966c5c3d
Make edit icon green by default
2017-11-14 19:53:59 +00:00
Richard Lewis
e87940f63c
Make app tile title stronger
2017-11-14 19:53:32 +00:00
Luke Barnard
3fa1bece0a
Simplify further
...
Also fix not-i18n-friendly "of" to be "=".
2017-11-14 13:06:54 +00:00
Luke Barnard
c3492634bd
Merge branch 'luke/fix-member-info-power-level-display' into luke/fix-restrict-power-level-options
2017-11-14 12:41:36 +00:00
Luke Barnard
d2ef6bffa8
Remove reverseRoles
...
This variable seemed redundant in hindsight, it seemed better to remove it than to worry about where it went in the component.
2017-11-14 12:02:37 +00:00
Travis Ralston
c5c346f0b7
Merge branch 'develop' into travis/granular-settings
2017-11-13 12:18:41 -07:00
Luke Barnard
52af7a7659
Attempt to clarify the affect that the users_default has on power levels
...
This modifies displayed power levels such that:
- If users_default is !== 0:
- the power level 0 is displayed as "Restricted (0)"
- the power level users_default is displayed as "Default ({users_default})"
- Otherwise:
- the power level 0 is displayed as "Default (0)"
When changing users_default, to say, 10, when the textual powers are rendered
again, they will take users_default into account. So those previously at 10
and which would have previously have been rendered "Custom of 10" will now
read "Default (10)". Conversely, those that were "Default (0)" will now read
"Restricted (0)".
2017-11-13 17:03:48 +00:00
Luke Barnard
88010fa26c
Determine whether power level is custom once Roles have been determined
...
Instead of potentially inspecting an empty {} before mounting.
This fixes an issue where "Custom of N" would appear on the first mount of MemberInfo - part of https://github.com/vector-im/riot-web/issues/5107#issuecomment-331882294
2017-11-13 11:57:34 +00:00
Luke Barnard
a96bfee9f2
Remove unused UserSettingsStore import
2017-11-10 16:12:27 +00:00
Luke Barnard
ceda5939f9
Remember to import React
2017-11-10 15:55:55 +00:00
Luke Barnard
853d33a93a
Make groups a fully-fleged baked-in feature
2017-11-10 15:42:11 +00:00
Luke Barnard
6e1cf6ce17
Merge pull request #1548 from matrix-org/rxl881/widgetrendering
...
Improve widget rendering on prop updates
2017-11-10 12:41:20 +00:00
Richard Lewis
ba8a9f2a43
Comment length
2017-11-10 11:50:14 +00:00
Luke Barnard
6deeaf94d6
group name not required
2017-11-10 11:43:05 +00:00
Richard Lewis
d2070a08d8
Replace 'qs' dep. with 'querystring'
2017-11-10 11:42:56 +00:00
Peter Vágner
681f43913a
Make the disabled PowerSelector element showing custom value translatable. Fixes #5547
2017-11-10 11:26:53 +01:00
Richard Lewis
bd6b5c4498
Improve function name.
2017-11-10 10:17:55 +00:00
Richard Lewis
98ac3dd19b
Explicitly set initialisation state.
2017-11-10 09:44:58 +00:00
Richard Lewis
da8b1ff1cd
Ensure that loading state is reset when showing app panel.
2017-11-09 14:28:24 +00:00
Richard Lewis
f796bc79c3
Fix addition of scalar token to widget URL.
...
Add error logging.
2017-11-09 14:07:29 +00:00
Luke Barnard
9027780215
Show group name in flair tooltip if one is set
...
e.g. "Group Name (+group_id:homeserver)" or "+group_id:homeserver"
Fixes https://github.com/vector-im/riot-web/issues/5341
2017-11-09 12:38:43 +00:00
Richard Lewis
8016fb82d7
Fix broken commit.
2017-11-08 20:38:54 +00:00
Richard Lewis
56581ef408
Fix various loadingElement related issues.
2017-11-08 20:38:31 +00:00
Richard Lewis
b2b07d9370
Formatting
2017-11-08 20:17:28 +00:00
Richard Lewis
be0a76dbd6
Update variable name and JSdoc for improved clarity.
2017-11-08 17:44:54 +00:00
Travis Ralston
289b0c2b6a
Merge branch 'develop' into travis/granular-settings
2017-11-07 14:55:12 -07:00
Luke Barnard
646cabf324
Add missing whitespace
2017-11-07 15:15:10 +00:00
Luke Barnard
ddc1ff2f23
Name things in a sane way
2017-11-07 15:13:26 +00:00
Luke Barnard
62305a1ccd
Implement tooltip for group rooms
2017-11-07 14:07:31 +00:00
Richard Lewis
96de72ab44
Switch to using existing dep "qs" and record in package.json
2017-11-07 12:45:12 +00:00
Richard Lewis
d3784b4925
Fix URL parameter encoding.
2017-11-07 12:33:38 +00:00
Richard Lewis
eb8c15075a
Fix url params parsing.
2017-11-07 11:58:38 +00:00
Richard Lewis
70c4100350
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into rxl881/widgetrendering
2017-11-07 11:04:05 +00:00
Travis Ralston
781b94c8f4
Appease the linter
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-05 15:37:06 -07:00
Travis Ralston
45140cab69
Don't assume false
means "use state"
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-04 19:52:42 -07:00
Travis Ralston
cb17c0a379
Migrate blacklistUnverifiedDevicesPerRoom
...
This currently causes a split-brain scenario for the application due to the priority of each level. Granular settings assumes a simple override, however the crypto setting wants per room to be overriden with the global setting, regardless of the room setting. Some additional comments are needed on the intended behaviour.
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-04 19:15:55 -07:00
Travis Ralston
c7eee36990
Fix lanugage detection
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-04 16:38:26 -06:00
Travis Ralston
4f1ad974fc
Delay URL preview saving until the save button is pressed
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-11-04 16:32:13 -06:00
Matthew Hodgson
3fd5937687
Merge pull request #1571 from matrix-org/t3chguy/class-warning-thing
...
Fixes React warning
2017-11-04 15:41:57 +00:00
Travis Ralston
893c39bfbe
Merge branch 'develop' into travis/granular-settings
2017-11-03 22:00:07 -06:00
Michael Telatynski
b2cd65e182
Fixes React warning
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2017-11-03 12:30:58 +00:00
Richard Lewis
853ada027d
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into rxl881/widgetrendering
2017-11-02 18:34:46 +00:00
Richard Lewis
0e854ee356
Fix loading and initialisation spinners.
2017-11-02 18:33:11 +00:00
Richard Lewis
a52bb9d603
Pass URL to check.
2017-11-02 17:27:59 +00:00
David Baker
8895ab7e5b
Merge pull request #1564 from matrix-org/dbkr/pillify_at_room
...
Pillify room notifs in the timeline
2017-11-02 14:22:58 +00:00
David Baker
4f8d6d8fbe
Pillify room notifs in the timeline
...
This scans text nodes in the DOM for room notifications and turns
them into pills. Changes the pillification code around a bit so it
works with text nodes. Uses the push processor directly to test
the event against the room notifiation rule so we know whether
this event would actually trigger a room notification (needs to
hook into push at a lower level because otherwise our own room
notifications would not pillify since our own events never
generate notifications).
Requires https://github.com/matrix-org/matrix-js-sdk/pull/565
2017-11-01 19:42:47 +00:00
Richard Lewis
17c0405862
Restructure to pass props from componentWillRecieveProps.
2017-10-31 16:31:46 +00:00
Richard Lewis
758df29b23
Fix onLoad on wrong element.
2017-10-31 10:43:17 +00:00
Richard Lewis
35b33263ea
Use querystring lib
2017-10-31 10:37:40 +00:00
Richard Lewis
1cb878bb57
Formatting
2017-10-31 10:04:37 +00:00
Richard Lewis
648b295971
Removed comment
2017-10-31 10:04:02 +00:00
Travis Ralston
f070604350
Rename SettingsCheckbox to be a bit more generic
...
Splitting out the logic to two components doesn't make sense, but this isn't always a checkbox.
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-30 20:08:27 -06:00
Travis Ralston
9c846e4dd9
Fix URL preview options
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-30 19:49:44 -06:00
Travis Ralston
72517f95bb
Don't explode if the SdkConfig isn't available
...
This can happen prior to logging in, for some reason.
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 22:53:59 -06:00
Travis Ralston
c056f4faa6
Make URL preview checkboxes pretty again
...
Works for all other settings too!
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 22:17:15 -06:00
Travis Ralston
b139c8d01c
Generate unique IDs for SettingsCheckbox
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 22:16:46 -06:00
Travis Ralston
786bd87fec
Support URL previews (with bugs)
...
Known issues at this point:
* The room-level setting accepts the current user's default, which is wrong
* The checkboxes on RoomSettings are not independent
* The checkboxes in RoomSettings need some layout fixes
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 21:48:29 -06:00
Travis Ralston
b5d5c81f32
Add a new component to back various settings
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 20:43:27 -06:00
Travis Ralston
0d3f0eaf98
Convert local settings to granular settings
...
This breaks language selection.
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-29 16:53:00 -06:00
Travis Ralston
bf815f4be9
Support labs features
...
Signed-off-by: Travis Ralston <travpc@gmail.com>
2017-10-28 20:21:50 -06:00
Richard Lewis
3756ce606d
Check URL prop updates and ensure that widgets are refreshed.
2017-10-27 17:49:14 +01:00
Richard Lewis
7662b5ac8f
Unfinished, non-working changes to try and handle URL changes gracefully
2017-10-27 13:47:51 +01:00
Stefan Parviainen
53e983f9c7
Fix merge conflict
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-10-25 18:19:27 +02:00
David Baker
8ed3474b64
Merge pull request #1529 from matrix-org/luke/fix-can-edit-editable-item-lists
...
Only show editing UI for aliases/related_groups for users /w power
2017-10-25 15:52:51 +01:00
Richard Lewis
fd85c74bc5
Merge pull request #1520 from matrix-org/rxl881/deleteWidget
...
Add a delete confirmation dialog for widgets
2017-10-25 10:45:52 +01:00
Richard Lewis
2e3bdfd55d
Fix string indentation.
2017-10-25 10:45:17 +01:00
Stefan Parviainen
88fd60066f
Fix typo
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-10-24 20:07:57 +02:00
Stefan Parviainen
b5024cca75
Further simplify MemberEventListSummary a bit
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-10-24 19:34:08 +02:00
Luke Barnard
640d88f25d
Typo
2017-10-24 16:21:18 +01:00
Luke Barnard
ee7ebc425c
Only show editing UI for aliases/related_groups for users /w power
2017-10-24 16:19:09 +01:00
Richard Lewis
11d4a63a32
Update text and split across multiple lines.
2017-10-23 23:59:36 +01:00
Richard Lewis
8b7f737c97
Remove logging.
...
Return early.
2017-10-23 23:47:37 +01:00
Richard Lewis
54bd916862
Split string across multiple lines.
2017-10-23 20:08:52 +01:00
Stefan Parviainen
115772d526
Fix merge conflict
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-10-23 19:57:52 +02:00
Stefan Parviainen
ef30ba889b
Make MemberEventListSummary more translatable
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-10-23 19:55:40 +02:00
Richard Lewis
3c4c986aca
Update button text
2017-10-23 18:42:43 +01:00
Luke Barnard
2f418976aa
Only show flair for groups with avatars set
...
Fix vector-im/riot-web#5377
2017-10-23 17:06:47 +01:00
Richard Lewis
ee60155846
Add delete widget confirmation dialog.
2017-10-23 17:05:44 +01:00
Matthew Hodgson
440b8e0e31
16px for flair please
2017-10-23 14:56:24 +01:00
Luke Barnard
fd65cb1396
Merge pull request #1501 from matrix-org/luke/groups-are-communities
...
Groups -> Communities
2017-10-19 12:16:15 +01:00
Luke Barnard
71443e9b94
Remove logs comments
2017-10-19 10:34:24 +01:00
Luke Barnard
5f3c06b38a
Factor out Flair cache into FlairStore
...
This will make invalidating the userGroups cache for the user architecturally more sound (the plan is to have GroupStore hit FlairStore as opposed to Flair itself in order to invalidate the cache).
2017-10-19 10:28:59 +01:00
Luke Barnard
a40704f085
Merge branch 'develop' into luke/groups-are-communities
2017-10-18 15:57:37 +01:00
Stefan Parviainen
7eeed3e093
Simplify MemberEventListSummary by using pluralization provided by the i18n library
...
Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-10-17 23:46:23 +02:00
Luke Barnard
1b8c5b50db
Don't show room IDs when picking rooms
2017-10-17 18:02:35 +01:00
Luke Barnard
eaa5dd5f22
Groups -> Communities in the UI
...
Translation files still need updating, and this would be much simpler with a script that could automate the tedium
2017-10-16 13:18:39 +01:00
Luke Barnard
d3f9a3aeb5
Run eslint --fix
...
Fixing 1000s of lint issues. Some rules cannot be `--fix`ed but this goes some way to linting the entire codebase.
2017-10-11 17:56:17 +01:00
Luke Barnard
060bf3bdf6
Remove inline CSS
2017-10-11 16:02:01 +01:00
David Baker
0f84216a9f
Grey out login form when no valid HS
2017-10-11 14:05:34 +01:00
David Baker
92be3af990
Make it clearer which HS you're logging into
...
Otherwise there's no indication without clicking 'custom server'
2017-10-10 19:16:42 +01:00
Luke Barnard
8d46b19916
Restrict Flair in the timeline to related groups of the room
2017-10-04 14:06:49 +01:00
Luke Barnard
9e3954865a
Fix a couple of bugs with EditableItemList
...
- fix entering the same thing twice (which had the bug of not emptying the "new" field)
- fix editing items in the list (which would stack overflow because of typo)
2017-10-04 13:15:38 +01:00
Luke Barnard
28b8582bd6
Merge branch 'develop' into luke/refactor-editable-list-from-alias-settings
2017-10-04 10:37:45 +01:00
Luke Barnard
4e9694be6d
Maintain "blur to add" function to match previous UX
2017-10-04 10:28:26 +01:00
Luke Barnard
d25ebfb844
Remove cruft from EIL
2017-10-04 10:15:44 +01:00
Luke Barnard
8243c39d83
Factor out EditableItemList from AliasSettings
...
Such that we can reuse the same UI elsewhere, namely when editing related groups of a room (which is an upcoming feature).
2017-10-04 10:00:01 +01:00
Stefan Parviainen
a96169e80e
Fix merge conflict
2017-10-02 17:57:22 +02:00
Luke Barnard
c8b2158156
Lint
2017-09-29 10:42:23 +01:00
Luke Barnard
18e0d8da86
Rename Flair feature to Groups
2017-09-29 10:27:40 +01:00