final_ca's People
final_ca's Issues
Close session bug
can't send notification to user that left, otherwise there is a websocket crash
view js
Task 3 : Subtask 3.4 : Presentation slides
display notifications
Task 3 : Subtask 3.3 : Final check
Check responses, commands, view requests are all implemented. Verify all functionality
Handle leaving all rooms
Add check for user in JoinRoomCmd, otherwise all users will be added to the chatroom. Use Observable-obsserver pattern to communicate commnand to all users.
Task 1 : SubTask 1.5 : Implement sending a message to single User/ All Users(Admin check)
The view needs to send a webSocket message for sending a text message on ChatApp. A check needs to be done on message for admin or other user. Message needs to be added in ChatRoom. Need to inform view of the message and who sent it. inform one user if not admin, and inform all users if admin.
UI HTML
enforce single input selection for select menus
validate empty fields
Task 3 : Subtask 3.2 : Unit Tests
Write unit tests for all use cases
Implement entering a room.
load the user list when entering a room
Join Room notification to other users
Task 2 : Subtask 2.2 : Notify reason for leaving
Implement functionality where group members are informed about reason of leaving
debug app flows
there are a lot of edge cases/bugs currently in the app. play around with the functions to see if you can find the bugs
add comments/documentation
- how to run unit tests
- message notification (green text)
- no modifying rooms
- delete room when owner leaves
Task 2 : Subtask 2.5 : Handle session close
Send message to all users when a user disconnects from the browser. Remove user from the chat room. Modify leaveRoomCmd.
Task 2 : Subtask 2.1 : View updating
Implement view functions to render data to front end
Task 1 : SubTask 1.3 : Implement joining a chatroom
The view needs to call a API for joining a room. Implement JoinRoomCmd. Notify all users in front end that the user has joined the room, add user to ChatRoom user list. We also need to update the Joined and available chatrooms. The view needs to be updated with the new lists and other users in the joined chat room need to be updated of user joining.
FrontEnd -> WSC -> DA -> ChatRoom Model -> Response to view
The response to the view should return the List of users in the chat room entered/joined.
validate inputs
make sure websocket doesnt crash when given a bad input
Task 1 : Subtask 1.2 : Implement creating a new Chat Room
The view needs to call a API for creating new chat room. A function to create a room is called in the DA, set restrictions. We also need to send response to front-end.
FrontEnd -> WSC -> DA -> ChatRoom Model -> Response to view
leaveRoomNotification Test case
Implement CAC
Task 1 : SubTask 1.4 : Leave a ChatRoom
The view needs to call a API for leaving a chat room. Remove user from the ChatRoom class' user list.
We also need to update the user's available and joined chatrooms too, this also needs to updated in the front end through lists. Notify users in the particular chatroom that user has left.
The reason for leaving is NOT to be specified. We will add that functionality later.
FrontEnd -> WSC -> DA -> ChatRoom Model -> Response to view
Task 1 : Subtask 1.1 : Implement User Login flow
The view needs to call a API for user login, the user/session mapping is done within the user class. DA needs to be used to add user. We also need to send response to front-end.
FrontEnd -> WSC -> DA -> User Model -> response to view
notify message received
Notification Flow refinement
Task 2 : Subtask 2.4 : Kick users for using 'hate'
Words hate usage triggers quitting user from all groups
Bug: new user can't see existing room names
the only roomid: roomname mapping is done on newroomresponse, so new users cant see preexisting roome names
Task 3 : Subtask 3.1 : Handle owner leaving room
Implement the functionality when admin quits group
Notify other observers in the leave room and join room functions, maybe send message in DA.
Task 2 : SubTask 2.2 : Load message history for user
Implement functionality when particular user is clicked on in chat room users list. The message history with that clicked user needs to be displayed.
backend check for send msg to all
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.