Skip to content

Comments

[WIP] Add person selector#55

Merged
jancborchardt merged 2 commits intomasterfrom
make-user-autocomplete
Oct 19, 2016
Merged

[WIP] Add person selector#55
jancborchardt merged 2 commits intomasterfrom
make-user-autocomplete

Conversation

@LukasReschke
Copy link
Member

@LukasReschke LukasReschke commented Oct 17, 2016

This adds a person selector as well as avatars so that initiating a call will be more intuitive. This is WIP and doesn't already do everything.

The idea is basically that by default you just type a name and then once you have completed that join a channel for those two people. The other person will then get a notification (to be done later) and a screen will be shown to the current user indicating that you're waiting until the other user joins the channel.

TODO

  • Join channel if name is selected
  • Create channel if name is selected and does not already exists
  • Show the other users' name to each other in the menu overview (i.e. the initiator sees "Frank" while Frank sees "Lukas")

To create a group chat the three dot menu is currently being implemented by @Ivansss on another branch.

Fixes #25
Fixes #11

cc @jancborchardt @ChristophWurst FYI

@LukasReschke LukasReschke added this to the 1.0.0 milestone Oct 17, 2016
@LukasReschke
Copy link
Member Author

@jancborchardt Needs CSS love…

@LukasReschke LukasReschke force-pushed the make-user-autocomplete branch 2 times, most recently from 586f566 to c3d87cf Compare October 17, 2016 22:38
@LukasReschke
Copy link
Member Author

To have this kinda performant nextcloud/server#1158 is required, aka: Use master. Not a stable branch 😉

@codecov-io
Copy link

codecov-io commented Oct 17, 2016

Current coverage is 0.70% (diff: 100%)

Merging #55 into master will not change coverage

@@            master       #55   diff @@
========================================
  Files            8         8          
  Lines          283       283          
  Methods         22        22          
  Messages         0         0          
  Branches         0         0          
========================================
  Hits             2         2          
  Misses         281       281          
  Partials         0         0          

Powered by Codecov. Last update d88b2e7...c3d87cf

format: 'json',
search: term,
perPage: 200,
itemType: 'folder',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

cc @rullzer – keep like that or change?


OCA.SpreedMe.Rooms.create(roomname);
$('#edit-roomname').on("select2-loaded", function() {
$('body').find('.avatar').each(function () {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Messy to have this three times here and above… Move into function or do some other kind of JS magic.

return '<span><div class="avatar" data-user="' + escapeHTML(element.id) + '" data-user-display-name="' + escapeHTML(element.id) + '"></div>' + escapeHTML(element.id) + '</span>';
},
formatSelection: function (element) {
return '<span><div class="avatar" data-user="' + escapeHTML(element.id) + '" data-user-display-name="' + escapeHTML(element.id) + '"></div>' + escapeHTML(element.id) + '</span>';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess proper templating helps 🙈

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, why is there a div (block-level element) in a span (inline element) ;) Shouldn’t be like that. Just make both elements divs.

LukasReschke and others added 2 commits October 19, 2016 12:13
This adds a person selector as well as avatars so that initiating a call will be more intuitive.

Fixes #25
Fixes #11

Signed-off-by: Lukas Reschke <[email protected]>
Signed-off-by: Jan-Christoph Borchardt <[email protected]>
@LukasReschke LukasReschke force-pushed the make-user-autocomplete branch from 3c10221 to b4db524 Compare October 19, 2016 10:13
@jancborchardt jancborchardt merged commit 1d8b0df into master Oct 19, 2016
@jancborchardt jancborchardt deleted the make-user-autocomplete branch October 19, 2016 10:15
marcoambrosini pushed a commit that referenced this pull request Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants