Skip to content

Commit

Permalink
Project Submission Milestone (#69)
Browse files Browse the repository at this point in the history
* Bump firebase from 8.0.1 to 8.0.2

Bumps [firebase](https://github.com/firebase/firebase-js-sdk) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/firebase/firebase-js-sdk/releases)
- [Changelog](https://github.com/firebase/firebase-js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/firebase/firebase-js-sdk/compare/firebase@8.0.1...firebase@8.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @testing-library/jest-dom from 5.11.5 to 5.11.6

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.11.5 to 5.11.6.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](testing-library/jest-dom@v5.11.5...v5.11.6)

Signed-off-by: dependabot[bot] <support@github.com>

* - add mocha and chai, add basic mocha test, replace test script with mocha

* - modify test scripts

* - rename test file name

* - organize code inside firebase-manager

* - move show msg details check inot helper function, write unit tests for shouldShowMsgDetails

* - simplify a function, add check throw error test

* - add script to watch for unit tests folder

* - add tests for getDateFromTimestamp

* - add tests for getClassNameForChatRoom

* - move test before build in CI

* - refactor chat room assignment

* Bump @testing-library/react from 11.1.2 to 11.2.1

Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.1.2 to 11.2.1.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v11.1.2...v11.2.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump dateformat from 3.0.3 to 4.0.0

Bumps [dateformat](https://github.com/felixge/node-dateformat) from 3.0.3 to 4.0.0.
- [Release notes](https://github.com/felixge/node-dateformat/releases)
- [Commits](https://github.com/felixge/node-dateformat/commits)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump firebase from 8.0.2 to 8.1.1

Bumps [firebase](https://github.com/firebase/firebase-js-sdk) from 8.0.2 to 8.1.1.
- [Release notes](https://github.com/firebase/firebase-js-sdk/releases)
- [Changelog](https://github.com/firebase/firebase-js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/firebase/firebase-js-sdk/compare/firebase@8.0.2...firebase@8.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @testing-library/react from 11.2.1 to 11.2.2

Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 11.2.1 to 11.2.2.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](testing-library/react-testing-library@v11.2.1...v11.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump react-redux-firebase from 3.7.0 to 3.8.1

Bumps [react-redux-firebase](https://github.com/prescottprue/react-redux-firebase) from 3.7.0 to 3.8.1.
- [Release notes](https://github.com/prescottprue/react-redux-firebase/releases)
- [Changelog](https://github.com/prescottprue/react-redux-firebase/blob/master/CHANGELOG.md)
- [Commits](prescottprue/react-redux-firebase@v3.7.0...v3.8.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump react-scripts from 4.0.0 to 4.0.1

Bumps [react-scripts](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/create-react-app/commits/react-scripts@4.0.1/packages/react-scripts)

Signed-off-by: dependabot[bot] <support@github.com>

* Update firebase-hosting-pull-request.yml

* - change page name, - remove facebbook script tags

* - remove assets, - add create channelbutton

* - add button to create new channel

* - add tests for util file

* - migrate chat helper and mocha to Jest test

* - update ci file with test command

* - migrate Util test to Jest

* - pull out ChatRoomList data

* - fix error

* - add test for AppHeader

* Bump @material-ui/core from 4.11.0 to 4.11.1

Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/v4.11.1/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.11.1/packages/material-ui)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @testing-library/user-event from 12.2.2 to 12.3.0

Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.2.2 to 12.3.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](testing-library/user-event@v12.2.2...v12.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @material-ui/core from 4.11.1 to 4.11.2

Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.11.1 to 4.11.2.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/v4.11.2/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.11.2/packages/material-ui)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump dateformat from 4.0.0 to 4.2.2

Bumps [dateformat](https://github.com/felixge/node-dateformat) from 4.0.0 to 4.2.2.
- [Release notes](https://github.com/felixge/node-dateformat/releases)
- [Commits](felixge/node-dateformat@v4.0.0...v4.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump firebase from 8.1.1 to 8.1.2

Bumps [firebase](https://github.com/firebase/firebase-js-sdk) from 8.1.1 to 8.1.2.
- [Release notes](https://github.com/firebase/firebase-js-sdk/releases)
- [Changelog](https://github.com/firebase/firebase-js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/firebase/firebase-js-sdk/compare/firebase@8.1.1...firebase@8.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @material-ui/icons from 4.9.1 to 4.11.2

Bumps [@material-ui/icons](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-icons) from 4.9.1 to 4.11.2.
- [Release notes](https://github.com/mui-org/material-ui/releases)
- [Changelog](https://github.com/mui-org/material-ui/blob/v4.11.2/CHANGELOG.md)
- [Commits](https://github.com/mui-org/material-ui/commits/v4.11.2/packages/material-ui-icons)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @testing-library/user-event from 12.3.0 to 12.5.0

Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.3.0 to 12.5.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](testing-library/user-event@v12.3.0...v12.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump dateformat from 4.2.2 to 4.3.1

Bumps [dateformat](https://github.com/felixge/node-dateformat) from 4.2.2 to 4.3.1.
- [Release notes](https://github.com/felixge/node-dateformat/releases)
- [Commits](felixge/node-dateformat@v4.2.2...v4.3.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Create codeql-analysis.yml

* - move msg details to the left for receiver msg

* - add mrgin to msg time details

* - Fix incorrect reverse ordering of messages and sort by created at time

* - fixed msg input box width issue

* - add hamburger menu to appheader

* - fix build error

* - update readme

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
aditmodhvadia and dependabot[bot] authored Dec 10, 2020
1 parent 9fa13d4 commit ac9d0a4
Show file tree
Hide file tree
Showing 26 changed files with 2,186 additions and 3,771 deletions.
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\App.js":"1","E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\store.js":"2","E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\components\\SendMessage.js":"3","E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\components\\AppHeader.js":"4","E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\index.js":"5","E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\firebase-manager.js":"6","E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\components\\ChatRoom.js":"7"},{"size":1140,"mtime":1606281296124,"results":"8","hashOfConfig":"9"},{"size":1568,"mtime":1604079741364,"results":"10","hashOfConfig":"9"},{"size":2513,"mtime":1607560241376,"results":"11","hashOfConfig":"9"},{"size":1303,"mtime":1607549692585,"results":"12","hashOfConfig":"9"},{"size":151,"mtime":1603825815179,"results":"13","hashOfConfig":"9"},{"size":1573,"mtime":1607547752490,"results":"14","hashOfConfig":"9"},{"size":2758,"mtime":1607547213875,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1azq718",{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\App.js",[],"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\store.js",[],"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\components\\SendMessage.js",[],"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\components\\AppHeader.js",[],"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\index.js",[],"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\firebase-manager.js",[],"E:\\Projects\\BU-Web-Development\\FinalProject\\Simple-Chat-App\\src\\components\\ChatRoom.js",[]]
67 changes: 67 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main, develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, develop ]
schedule:
- cron: '27 18 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
30 changes: 15 additions & 15 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SIMPLE_CHAT_APP_6D88E }}'
projectId: simple-chat-app-6d88e
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
# name: Deploy to Firebase Hosting on PR
# 'on': pull_request
# jobs:
# build_and_preview:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: npm ci && npm run build
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SIMPLE_CHAT_APP_6D88E }}'
# projectId: simple-chat-app-6d88e
# env:
# FIREBASE_CLI_PREVIEWS: hostingchannels
12 changes: 7 additions & 5 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
# events but only for the main branch
on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
branches: [main, develop]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -21,13 +21,15 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2

- name: Install all npm modules
run: npm i

# Runs unit tests with mocha
- name: Run tests
run: npm test
# Builds the react application
- name: Build and test the React Application
- name: Build the React Application
run: npm run build
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Instead by using Simple Chat application everyone can quickly join the conversat

### Features

- [x] Users can login using their Google accounts or facebook (pending) and can view all the chat rooms present.
- [x] Users can login using their Google accounts or facebook and can view all the chat rooms present.
- [x] Users can send messages to the chat rooms.
- [x] Users receive messages from others almost instantly.
- [x] Users can see the name and profile image of the user who sent the message.
- [x] Users can sign in and sign out of the application.
- [ ] Users can create new chat rooms with name and image(Maybe). (Low priority)
- [ ] User can set the time to live for the messages of a new chat room. (Low Priority)
- [x] Users can create new chat rooms.
- [x] Messages with profanity or explicit content are filtered.
- [x] Users who send messages with profanity or explicit content will be banned from the chat room. (Low Priority)
- [ ] Users can see the last message sent in a chat room. (Low Priority)
- [x] Users can see the last message sent in a chat room. (Low Priority)
- [ ] User can set the time to live for the messages of a new chat room. (Low Priority)
Loading

0 comments on commit ac9d0a4

Please sign in to comment.