matildepark
8dca42ee19
Merge pull request #2759 from liam-fitzgerald/lf/unread-title
...
various-fe: add unread counts to title
2020-04-22 18:40:46 -04:00
Matilde Park
0beabe2195
Merge branch 'master' into mp/sigil-foregrounding
2020-04-22 18:37:13 -04:00
Liam Fitzgerald
f5d8a36df2
Merge branch 'master' into lf/profile-overlay
2020-04-23 07:49:04 +10:00
Liam Fitzgerald
c16b711278
chat-js: correct overlay reflow and review comments
2020-04-22 15:03:19 +10:00
Liam Fitzgerald
8277802027
chat-js: lint changed files
2020-04-22 13:46:03 +10:00
Liam Fitzgerald
8e028ad255
Merge branch 'master' into lf/profile-overlay
2020-04-22 13:39:00 +10:00
Matilde Park
0e357373c0
chat: lint chat-input.js
2020-04-21 14:31:32 -04:00
Matilde Park
de077ffb47
chat: set code toggle only at start of input
2020-04-21 14:30:28 -04:00
Liam Fitzgerald
3ded8c9f68
chat-fe: add backlog loading indicator
...
Adds a backlog loading indicator that displays when we have not yet
received the backlog from the host.
2020-04-21 19:38:30 +10:00
Jared Tobin
995b92650e
Merge branch 'lf/unread-day-indicators' ( #2768 )
...
* origin/lf/unread-day-indicators:
chat-fe: fix unreadnotice position on mobile
chat-fe: add unread and day indicators
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-04-21 13:07:25 +04:00
Liam Fitzgerald
2cec3c4e90
chat-fe: fix unreadnotice position on mobile
2020-04-21 16:58:30 +10:00
Liam Fitzgerald
0fc12b1456
Merge branch 'master' into lf/unread-day-indicators
2020-04-21 15:56:38 +10:00
Liam Fitzgerald
8697c06a7c
chat-fe: fix overlay on FF and address review comments
2020-04-21 15:18:08 +10:00
Liam Fitzgerald
b29e98ec10
Merge branch 'master' into lf/profile-overlay
2020-04-21 15:11:02 +10:00
Liam Fitzgerald
4083af515e
Merge branch 'master' into lf/chat-markdown-input
2020-04-21 13:56:30 +10:00
Liam Fitzgerald
f10bf3c894
chat-fe: add unread and day indicators
2020-04-19 02:23:32 +10:00
Liam Fitzgerald
4d118ce6c4
chat-js: revive # prefix for code messages
2020-04-18 15:10:19 +10:00
Matilde Park
99875b2f45
various: set sigil foreground based on contrast
2020-04-17 19:27:37 -04:00
Liam Fitzgerald
535cace962
chat-js: toggle code editor on icon click
...
Toggles a code editor, to enable sending of 'code' type messages. 'me'
type messages are now sent by beginning a message with /me.
2020-04-17 21:46:17 +10:00
Liam Fitzgerald
11e69b7bd0
chat-js: disabled block level elements in messages
2020-04-17 21:13:58 +10:00
Liam Fitzgerald
63fc6ed513
various-fe: add unread counts to title
2020-04-17 16:51:51 +10:00
Liam Fitzgerald
5fbe955874
chat-fe: more FF scrollback fixes
2020-04-17 15:17:52 +10:00
Liam Fitzgerald
1b90328f39
chat-fe: fix index issue with pending messages
...
To produce message elements we iterate over pendingMessage ++ messages,
but to check whether they're adjacent to a message by the same author,
we index back into messages, which produces incorrect results when
pendingMessages is nonEmpty
2020-04-17 14:20:28 +10:00
Liam Fitzgerald
41be649764
Merge branch 'master' into mp/chat/firefox-take-2
2020-04-17 12:06:34 +10:00
Jared Tobin
e7984324be
Merge branch 'fix-pending' ( #2751 )
...
* origin/fix-pending:
chat-js: fix chat ordering and pending messages
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-04-16 16:54:12 +04:00
Liam Fitzgerald
945fb3fca6
chat-js: render markdown in messages
...
Renders markdown in text messages but not url or code messages.
2020-04-16 20:21:29 +10:00
Liam Fitzgerald
9574765de6
chat-js: use CodeMirror for chat input
...
swaps out the textarea for a CodeMirror in markdown mode. Resolves an
issue related to the input shrinking with the content.
2020-04-16 20:21:29 +10:00
Liam Fitzgerald
a424312d12
chat-js: add CodeMirror dependency
...
Adds CodeMirror dependency and related css
2020-04-16 20:21:27 +10:00
Logan Allen
e98605c1bb
chat-js: fix chat ordering and pending messages
2020-04-15 16:48:33 -04:00
Logan Allen
c497d5a6a6
chat-js: fix auto-join and a chatSynced error
2020-04-15 15:58:03 -04:00
Logan Allen
f035070387
chat-js: fix issue with autojoining
2020-04-15 15:04:54 -04:00
Liam Fitzgerald
8b48f3fa0f
chat-js: adjust line height in chat input
...
Set the line height of the input to be the same as a sent message.
Additionally fixes an issue that would cause unnecessary scrollbars to
be shown.
2020-04-15 15:08:42 +10:00
Liam Fitzgerald
b538cfd3ea
chat-fe: address review comments
2020-04-15 10:48:46 +10:00
ixv
5bb9776b70
Merge pull request #2730 from liam-fitzgerald/lf/chat-synced-fix
...
chat-fe: resubscribe message iff chatSynced is populated
2020-04-14 11:40:45 -07:00
ixv
e5cf4fb813
Merge pull request #2720 from urbit/la-channel-err
...
channel.js: added way to handle event source errors more smoothly, and implemented in chat
2020-04-14 11:40:02 -07:00
Liam Fitzgerald
9ddf06d2a1
chat-fe: correct FF scroll behaviour
...
Firefox treats the reflow in the scroll container weirdly so for the
scrollback case, we save the position to restore later, when the backlog
messages come in. For the 'locked at bottom' case we add a new state
variable and rescroll based on that.
2020-04-14 16:34:10 +10:00
Liam Fitzgerald
a6c5e96902
chat-fe: don't redirect if creating group
2020-04-14 11:50:47 +10:00
Liam Fitzgerald
786f2518e7
chat-fe: resubscribe message iff chatSynced is populated
...
Previously, if a room was navigated to directly, the resubscribe message
would show before the chatSynced state was loaded. Initialises
chatSynced as null and checks it is not null before showing the
resubscribe message.
2020-04-14 11:41:38 +10:00
Matilde Park
a4d37c0313
Merge branch 'master' into mp/chat/firefox-take-2
2020-04-13 21:38:27 -04:00
Liam Fitzgerald
1d81107d72
Merge branch 'master' into lf/profile-overlay
2020-04-14 11:04:52 +10:00
Liam Fitzgerald
a2998bdc41
chat-fe: redirect to DMs on trivial new group case
...
Create or view a DM upon trying to create an invite-only group with one invitee.
2020-04-14 11:01:31 +10:00
ixv
a7f20c37c1
Merge pull request #2700 from liam-fitzgerald/lf/invite-search-short
...
invite-search: handle suggestions for short searches
2020-04-13 16:56:26 -07:00
Liam Fitzgerald
2c870cdfc0
chat-fe: resuscitate scrollback
...
If the initial 20 messages doesn't cause the messages container to
overflow then the backlog will never be requested, making scrollback
impossible. This is due to making the container have position:relative
in order to display an overlay inside it. Fixed by unconditionally
requesting the first page of backlog on load.
2020-04-11 20:07:01 +10:00
Liam Fitzgerald
d2d9158ea3
chat-fe: hide profile overlay on click outside
...
Hides the profile overlay when the users clicks outside the overlay.
2020-04-11 19:34:11 +10:00
Liam Fitzgerald
966155088c
chat-fe: move new DMs to ship select popover
...
Refactored the patp autocomplete into a reusable component, and then
used that to add the DM popover interface. Also introduces some
performance improvements for the popover.
2020-04-11 17:47:11 +10:00
Liam Fitzgerald
803c7b4816
chat-fe: edit group identity if own profile overlay
...
Shows an "Edit Group Identity" button instead of "Send Message" if the
profile overlay being shown is the user's own.
2020-04-11 10:44:57 +10:00
Liam Fitzgerald
e5634a913d
invite-search: always add search query if valid patp
2020-04-11 10:17:49 +10:00
Logan Allen
fb3111e88a
channel.js: added way to handle event source errors more smoothly, and implemented in chat
2020-04-10 19:38:13 -04:00
Logan Allen
98f4df14a4
chat-js: made scrollback work for new message indexing
2020-04-10 22:22:14 +00:00
Logan Allen
6d1efde884
chat-js: fixed scrollback for reverse message chatrooms
2020-04-10 17:29:23 -04:00