Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#137138341-Feature/Add Emojis To Chat #30

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

aknwosu
Copy link
Contributor

@aknwosu aknwosu commented Feb 17, 2017

What does this PR do?

This PR adds a feature to the chat message-box, supporting emojis and unicode characters.

Description of Task to be completed?

As a user in a game I want to be able to use emojis in the group chat so that I have a more enjoyable and expressive chat experience

How should this be manually tested?

Launch the Cards For Humanity project locally or on Heroku and navigate to the sign-in/sign-up screen. The pictures for the new sign-in and sign-up screen is attached in the screenshots below.

What are the relevant pivotal tracker stories?

Users should be able to use emojis in the chat window

box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}
.emoji-picker-container {

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);

Choose a reason for hiding this comment

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

Rule declaration should be followed by an empty line

transform: relative;
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces
0px should be written without units as 0
Color literals like rgba(0, 0, 0, 0.1) should only be used in variable declarations; they should be referred to via variable everywhere else.

overflow: hidden;
transform: relative;
-webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces
Avoid vendor prefixes.
0px should be written without units as 0
Color literals like rgba(0, 0, 0, 0.1) should only be used in variable declarations; they should be referred to via variable everywhere else.

border-radius: 2px;
overflow: hidden;
transform: relative;

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces
Avoid vendor prefixes.
0px should be written without units as 0
Color literals like rgba(0, 0, 0, 0.1) should only be used in variable declarations; they should be referred to via variable everywhere else.

position: absolute;
z-index: 5002;
width: 220px;

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

left: 2px !important;
position: absolute;
z-index: 5002;

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

top: -280px !important;
left: 2px !important;
position: absolute;

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

.emoji-menu {
top: -280px !important;
left: 2px !important;

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

}
.emoji-menu {
top: -280px !important;

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces
!important should not be used

@@ -66,5 +66,7 @@ console.log(' Express app started on port ' + port);

// Initializing logger
logger.init(app, passport, mongoose);
// expose ap

//expose app

Choose a reason for hiding this comment

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

Expected space or tab after '//' in comment spaced-comment

window.emojiPicker = new EmojiPicker({
emojiable_selector: '[data-emojiable=true]',
assetsPath: 'https://cdn.rawgit.com/OneSignal/emoji-picker/gh-pages/lib/img/',
popupButtonClasses: 'fa fa-smile-o'

Choose a reason for hiding this comment

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

Strings must use doublequote quotes

// Initializes and creates emoji set from sprite sheet
window.emojiPicker = new EmojiPicker({
emojiable_selector: '[data-emojiable=true]',
assetsPath: 'https://cdn.rawgit.com/OneSignal/emoji-picker/gh-pages/lib/img/',

Choose a reason for hiding this comment

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

Strings must use doublequote quotes

$(function () {
// Initializes and creates emoji set from sprite sheet
window.emojiPicker = new EmojiPicker({
emojiable_selector: '[data-emojiable=true]',

Choose a reason for hiding this comment

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

Identifier 'emojiable_selector' is not in camel case camelcase
Strings must use doublequote quotes

var msgElement = document.createElement('div');

msgElement.className = 'msg';
$('#results').append(msgAvatarElement).append(msgUsernameElement).append(msgTextElement);

Choose a reason for hiding this comment

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

Strings must use doublequote quotes

});

/** Function to add a data listener **/
var startListening = function () {

Choose a reason for hiding this comment

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

Expected a function declaration func-style

textInput.value = '';
});

/** Function to add a data listener **/

Choose a reason for hiding this comment

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

Missing JSDoc @returns for function valid-jsdoc

var msgText = textInput.value;
// replace myFirebase.set(...); with the next line
database.ref('msg').push({ avatar: msgAvatar, username: msgUser, text: msgText });
textInput.value = '';

Choose a reason for hiding this comment

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

Strings must use doublequote quotes

var msgAvatar = avatarInput;
var msgText = textInput.value;
// replace myFirebase.set(...); with the next line
database.ref('msg').push({ avatar: msgAvatar, username: msgUser, text: msgText });

Choose a reason for hiding this comment

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

Strings must use doublequote quotes

const gameID = sessionStorage.getItem('gameID');
const usernameInput = sessionStorage.getItem('Username');
const avatarInput = sessionStorage.getItem('Avatar');
const textInput = document.querySelector('#text');

Choose a reason for hiding this comment

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

Strings must use doublequote quotes

} else {
$scope.pickedCards.pop();
}
}

<<<<<<< HEAD

Choose a reason for hiding this comment

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

Parsing error: Unexpected token

@coveralls
Copy link

coveralls commented Feb 27, 2017

Coverage Status

Coverage remained the same at 57.87% when pulling bde9a1c on feature/add-emojis-to-chat-137138347 into ad05dbc on development.

@aknwosu aknwosu force-pushed the feature/add-emojis-to-chat-137138347 branch from bde9a1c to ad493a4 Compare March 1, 2017 13:07
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.

None yet

3 participants