Граф коммитов

2036 Коммитов

Автор SHA1 Сообщение Дата
Daniel Calviño Sánchez 90a43ffc1a Remove unneeded CSS rule
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-27 15:42:49 +02:00
Ivan Sein 25423d9ef3
Merge pull request #824 from nextcloud/bugfix/noid/make-unread-count-more-obvious
Make the unread count more obvious
2018-04-27 08:17:41 +02:00
Nextcloud bot b87929008f
[tx-robot] updated from transifex 2018-04-27 00:34:01 +00:00
Daniel Calviño Sánchez d609fa064b Fix working icon position when sending a message
When a message is being sent the submit icon is hidden and the working
icon is shown instead. However, the working icon was not placed at the
same position as the icon it replaced; the CSS rules for the submit icon
were modified in some previous commit, but the CSS rules for the working
icon were not appropriately updated. Now the CSS rules were rewritten so
both elements use the same placement rules; this fixes the issue and
should make it less likely to happen in the future if the placement is
modified again.

Also, now the size is explicitly set to ensure that both elements have
the same size; before it depended on other rules, and which rules
affected the size were different for each element due to being of
different types.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-26 21:58:23 +02:00
Joas Schilling fad03fbb4b
Make the unread count more obvious
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 15:33:00 +02:00
Joas Schilling 2864dc83be
Merge pull request #812 from nextcloud/feature/noid/chat-autocomplete-suggestions
Autocomplete for mentions
2018-04-26 15:14:18 +02:00
Joas Schilling d8c56b4608 Add a comment
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 1f6c2be0ed Fix typo in docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 993647faed Add tests for the search
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 44b47ef315 Add unit tests for the controller
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 982bf986ba Add docs for the /mentions endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 4cf756fbe6 Make the search case-insensitive
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 37dad5b037 Do not suggest the current user
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:50:20 +02:00
Daniel Calviño Sánchez 3244c2a9a9 Add formatted mentions to messages being composed
The server expects mentions to be in plain text, so the formatted
mentions have to be converted to "@" followed by the user name before
the message is sent to the server.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-26 12:50:20 +02:00
Joas Schilling 85cd8181e5 Add basic UI for autocompletion
CSS styles were directly copied from
"apps/comments/css/autocomplete.scss".

JavaScript code in the chat view
was slightly simplified from "apps/comments/js/commentstabview.js".

Currently mentions are not formatted when a message is being composed;
"@" followed by the user name is added to the message so it can be
directly sent without further processing. Formatted mentions will be
introduced in another commit.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:49:24 +02:00
Daniel Calviño Sánchez 790bddd06d Add At.js and dependencies
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:46:58 +02:00
Joas Schilling 63831a4455 Sort suggestions by last chat message
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:46:58 +02:00
Joas Schilling 1472935fb5 Start autocomplete for mentions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-26 12:46:58 +02:00
Joas Schilling dad8c1fdf8
Merge pull request #814 from nextcloud/fix-pointer-cursor-not-shown-on-message-authors
Fix pointer cursor not shown on message authors
2018-04-26 12:23:57 +02:00
Ivan Sein 1968038505
Merge pull request #813 from nextcloud/make-mentions-more-prominent
Make mentions more prominent
2018-04-26 10:05:11 +02:00
Daniel Calviño Sánchez 6effa97a1e Fix pointer cursor not shown on message authors
Clicking on a message author shows the contacts menu (provided the
author is not the current user); in those cases the cursor should be a
pointer so the user knows that an interaction with those elements is
possible.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-26 00:49:41 +02:00
Daniel Calviño Sánchez f382ff2f23 Make mentions more prominent
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-25 15:21:57 +02:00
Joas Schilling f24177ee4b
Merge pull request #805 from nextcloud/format-mentions-without-avatars-in-the-message-list
Format mentions (without avatars) in the message list
2018-04-25 10:53:54 +02:00
Daniel Calviño Sánchez 07d6e7bc6b
Adjust capability docs
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-25 10:20:39 +02:00
Daniel Calviño Sánchez 7f13095a3c Use pointer cursor on mentions not of the current user
A pointer cursor is now used on mentions to make the user aware of a
possible interaction. As the contacts menu is not shown for mentions of
the current user the default cursor is kept in that case.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-25 07:06:19 +02:00
Daniel Calviño Sánchez 7dc7274886 Do not show the contacts menu for mentions of the current user
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-25 07:06:19 +02:00
Daniel Calviño Sánchez ee9383f4c4 Show contacts menu when clicking on a mention
The contacts menu expects its parent element to be its positioning
context, so the mention must have a relative position. Besides that, the
default CSS rules from the server set the position of the contacts menu
assuming that the parent element is an avatar, so the rules have to be
overriden to position it on the text.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-25 07:05:46 +02:00
Daniel Calviño Sánchez ab4e9cacb5 Fix icons in contacts menu
The border-box sizing is set for apps in the server, but the CSS rules
for the icons of the contacts menu (also set in the server!) assume that
content-box sizing is used. Therefore the proper size should be forced
for the icons to be visible.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Daniel Calviño Sánchez a52f7cb450 Fix position of right end of contacts menu
The contacts menu uses both the "bubble" and "contactsmenu-popover" CSS
classes, and the specific rules for ".bubble" elements used in Talk
should not affect the contacts menu.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Daniel Calviño Sánchez 485595bbf2 Show display name instead of user name in formatted mentions
In some cases (like when LDAP is being used) a user can not be easily
identified through its user name (as it is just a hash), so formatted
mentions now show the display name in all cases (and if the server does
not provide a display name the "name" parameter of the template falls
back to the user name).

Note that the acceptance tests do not need to be updated, as the
display name of the mentioned user is the same as its user name.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Daniel Calviño Sánchez dd13cf96cd Add acceptance tests for formatted messages
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Joas Schilling 80d955a81f Copy fix for undefined placeholders from activity app
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-24 17:47:18 +02:00
Daniel Calviño Sánchez f1691c06bf Format rich messages in chat frontend
The RichObjectStringParser was copied from the Notifications app and
adapted to be used in the chat (support for file references was removed,
"-" is taken into account too in parameter IDs, only local users are
taken into account, and if the display name of a mention is empty the
user ID is used instead).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Daniel Calviño Sánchez b526c14308 Add integration tests for receiving rich messages
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Daniel Calviño Sánchez 16524668b8 Return rich messages when calling "receiveMessages"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-24 17:47:18 +02:00
Joas Schilling d7ab059fc8
Only group up to 10 messages and only for up to 15 seconds
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-24 17:37:25 +02:00
Joas Schilling 09a7bd51c7
Merge pull request #807 from nextcloud/bugfix/noid/display-name-should-be-a-string
Make sure the displayname is always a string
2018-04-24 16:49:04 +02:00
Ivan Sein 16bc8888a0
Merge pull request #806 from nextcloud/feature/noid/unread-message-count
Add unread message count to the room list
2018-04-24 16:48:50 +02:00
Joas Schilling e924958052
Make sure the displayname is always a string
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-24 16:34:57 +02:00
Joas Schilling 47255e543d
Add unread message count to the room list
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-24 16:28:32 +02:00
Joas Schilling e321ae37e8
Merge pull request #802 from nextcloud/bugfix/767/use-correct-empty-value
Do not query the last comment info when there is none
2018-04-24 12:29:24 +02:00
Nextcloud bot 315f789388
[tx-robot] updated from transifex 2018-04-24 00:34:12 +00:00
Ivan Sein 6ff792db8f
Merge pull request #804 from nextcloud/bugfix/noid/remove-usless-logs
Remove useless logs
2018-04-23 17:46:51 +02:00
Joas Schilling 5f717327dd
Remove useless logs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-23 16:05:22 +02:00
Joas Schilling b0e5b66eab
Add "not modified" to docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-23 14:27:16 +02:00
Daniel Calviño Sánchez f9fb543dc1 Add helper class to get a rich message from a plain text chat message
The RichMessageHelper replaces the enrichable references in a plain text
message with their equivalent rich object string parameter; currently
only mentions are taken into account.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-23 12:57:18 +02:00
Joas Schilling 158618b19f
Do not query the last comment info when there is none
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-04-23 11:26:09 +02:00
Joas Schilling a52e8f6495
Merge pull request #767 from nextcloud/feature/noid/proper-chat-offset
Add proper chat message offset support
2018-04-23 11:13:06 +02:00
Nextcloud bot 7ef96cc9c1
[tx-robot] updated from transifex 2018-04-23 00:32:57 +00:00
Nextcloud bot 166d83885d
[tx-robot] updated from transifex 2018-04-22 00:35:18 +00:00