Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

#170947581 users are able to chat #53

Merged
merged 4 commits into from
Mar 24, 2020

Conversation

Ntare22
Copy link
Contributor

@Ntare22 Ntare22 commented Mar 16, 2020

What does this PR do?

  • implements users are able to chat

Description of Task to be completed?

  • add chat.html page
  • add chat functionality to the ioMiddleware

How should this be manually tested?

  • clone this repo
  • run npm install
  • register a user through /api/v1/auth/register
  • access the chat through /public/chat.html
  • enter the token of the user in the localStorage by opening the developer tools on your browser and going to Application.
  • create a token key and add the token
  • start writing messages

Any background context you want to provide?

  • N/A

What are the relevant pivotal tracker stories?

Screenshots (if appropriate)

image

Questions:

@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from 0f03596 to 97255f9 Compare March 16, 2020 15:54
@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch 3 times, most recently from 48d2c9e to da3e372 Compare March 17, 2020 17:57
src/index.js Outdated Show resolved Hide resolved
@izzett222 izzett222 force-pushed the ft-users-able-to-chat-170947581 branch from da3e372 to 6fc3421 Compare March 19, 2020 10:05
@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch 4 times, most recently from 912c4a4 to 6ef8a12 Compare March 20, 2020 16:22
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-s4nj7i March 20, 2020 16:39 Inactive
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-s4nj7i March 20, 2020 16:43 Inactive
@Baraka-Mugisha
Copy link
Collaborator

Could you add a screenshot to the PR showing this feature?

@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from 6ef8a12 to 88ff378 Compare March 21, 2020 15:38
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-ypjqax March 23, 2020 09:17 Inactive
clientSocket2.disconnect();
clientSocket3.disconnect();
sinon.restore();
// done();
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you remove commented code

public/chat.html Outdated
Comment on lines 34 to 36
socket.on('connection', (msg) => {
console.log(msg);
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

hey @Ntare22 are you using this piece pf code

@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from 88ff378 to c623e4a Compare March 23, 2020 10:41
@Ntare22 Ntare22 requested a review from izzett222 March 23, 2020 11:06
@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from c623e4a to 00a7234 Compare March 23, 2020 11:09
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-kfbzhc March 23, 2020 11:09 Inactive
izzett222
izzett222 previously approved these changes Mar 23, 2020
Baraka-Mugisha
Baraka-Mugisha previously approved these changes Mar 23, 2020
bbaime98
bbaime98 previously approved these changes Mar 23, 2020
}
"Request not found or not yours to approve": "Request not found or not yours to approve",
"Request not found or not yours to manage": "Request not found or not yours to manage"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

add new line please.

@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch 2 times, most recently from fbb9a49 to 659b79c Compare March 23, 2020 15:32
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-1rdi0o March 23, 2020 15:52 Inactive
izzett222
izzett222 previously approved these changes Mar 23, 2020
@bbaime98
Copy link
Collaborator

bbaime98 commented Mar 23, 2020

Use the following to totally remove package-lock: git rm --cached package-lock.json then git add, commit and push. Remember to add it first into gitignore as well.

@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from 659b79c to 1c2fdab Compare March 24, 2020 09:09
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-oc2yek March 24, 2020 09:25 Inactive
add chat.html page
add chat functionality to the ioMiddleware

[ #170947581 in progress]
add chat.html page
add chat functionality to the ioMiddleware

[ #170947581 in progress]
@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from 1c2fdab to eb413f5 Compare March 24, 2020 09:31
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-6l2cc8 March 24, 2020 09:38 Inactive
bbaime98
bbaime98 previously approved these changes Mar 24, 2020
Copy link
Collaborator

@bbaime98 bbaime98 left a comment

Choose a reason for hiding this comment

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

Great work Jim!

add chat.html page
add chat functionality to the ioMiddleware
add tests

[ Finishes #170947581 ]
@Ntare22 Ntare22 force-pushed the ft-users-able-to-chat-170947581 branch from 67394d1 to 4d4ecb3 Compare March 24, 2020 10:01
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-m5rce2 March 24, 2020 10:13 Inactive
@Ntare22 Ntare22 temporarily deployed to devrepublic-ft-users-ab-m5rce2 March 24, 2020 10:35 Inactive
@jabichris jabichris merged commit 269cd21 into develop Mar 24, 2020
@Ntare22 Ntare22 temporarily deployed to devrepublic-bn March 25, 2020 15:00 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants