Skip to content

Commit

Permalink
Firebase! (#402)
Browse files Browse the repository at this point in the history
* Add FirebaseAuth

--Add Firebase Packages
--Break NavBar into RFC and create new NavBarSignIn component
--Add listeners to index.js for auth status
--Add new redux actions and reducers for Auth
--Batch dispatch of fetchUserSignatures on Auth change
--Add initial state file for no-user and resets
--containers/App is now RFC connected to redux stores
--components/Application is for RFC that receives props form App Container
--Add proptypes accordingly

* Correct NavBar homeText render based on routepath

* Move NotFound to Components

* Reorg of CampaignPage and SignCampaign

--Break into more modular components
--More from RCC to RFCs where possible
--Still require cleanup work

* Remove displayName slice fuction from NavBar

* Solve linting errors

* Update react-google-button

* Update Security Vulnerabilities

* Solve linting errors after package updates

* Solve linting errors after updates

* Add eslint-config-prettier

--Resolve error between eslint/prettier/husky
--Should format and write on precommit

* Solve MongoosePromise Error and Linting

--Reverted install of NPM packaged to solve eslint/Prettier

* Refactor State Inputs

* Add Firebase WasteProviders and Refactor CampaignStep2

-Brought is WasteProviders Array
--Set Form to accept new data array

* Set user in Firestore doc on registration

* Firebase reducers

* Add Signatures Listeners from Friebase

* Clear Console Logs

* Hook up Firebase for Active Campaign && Choose Campaign

* App overhaul

* working n Firebase

* Update Router Middleware to match docs

* Add Choose Campaign Funcionality

* Refine nearbyCampaigns Logic

  -Usese geoCoordiantes

* Restructure Campaign Container

  -Make CampaignContainer
  -Move Components into seperate folders
  -Make Campaign by Id only show one marker
  -Make Campaign Container page use component features

* Reformat Auth in Prep for Sign Campaign

--Reorg Redux auth to be more semantic
--Change variable names to be more semantic
--Apply changed to Nav, campaign and routes

* Prep for Signatures in Firebase

* Restructure File Structure

* Add "AddSignature" and reformat Sign Campaign

* Workon firebase Auth and Already Signed

* Solve AuthObject and Sign Campaign Renders

  -Added signedCampaignId to AuthObject
  -Add conditional rendering to Sign Campaign
  -Remove Signature Listeners

* Hookup MyCampaign in NavBar

* Correct createNewCampaigns and AutoSuggest

* Make Conditional Render for MyCampaign NavItem

* Make googleMap Close on HomeLinl

* Connect FacebookAuth & add Firestore Envs

  -Connected Facebook auth with basic user info
  -Added firebase docs for hosting
  -Add firestore rules and indexes docs for future dev
  -Commented out handleApiError

* Restructure FirebaseInitialSearch

* Update auth and linting

* prepping for env variables

* Mod build scripts

* linting updates

* Solve Linting

* Solve Linting

* travis linting

* Solve button link and style bug

* Remove Node Backend

* Add NewCampaignModal and Logic

* Render NewWelcomeCampaign or Null Logic

* Add UpdateCampaing Modal Development

* Add lodash_merge

* Create CampaignUpdate Modal

* Add Tabs to Update Campaign Modal

* Solve type in firebaseCampaigns

* Fix ExactMatch Bug

* Delete Client/.env.prod

* Polish UpdateCampaignModal and Logic

* removed example test

* Add WasteProvider Tooltip

* Style for mobile UpdateCampaignModal

* Handle UpdateCmapignModal fields undefined

* Improve UpdateCampaignModal

* Breakout Update WasteProvider Component

* Breakout UpdateWasteProvider and PropTypes fixes

* Travis Firebase updates

* Eslint/Prettier

* Fix linting

* Fix Homejs PropType Error

* Fix linting

* Fix travis.yml

* Switch Travis build to Yarn instead of Yarn and NPM

* Pull out NPM and sub Yarn only per ReadMe

* Change cypress to run Electron

* Change Cypress to Electron from Chrome

* Update Cypress to 3.0

-- remove travis npm-module caching
-- yarn frozen lock

* Update assertions and --Chrome

* Add cypress debugger

* Refaactor Cy tests and lear debugger

* Update cy test to remove nested get()

* Remove NPM and Backend packages

* Clean up for backend removal

* Add travis.yml

* Turn off auto-show update modal

* Update CreateNewCampaign Logic and Testing

* Move DLM to Components and remove old Campaign Continaer

* Expand top level collapse panel by default
  • Loading branch information
hoop71 authored and katiescruggs committed Aug 14, 2018
1 parent 0696eb6 commit 1ede19f
Show file tree
Hide file tree
Showing 128 changed files with 7,528 additions and 3,275 deletions.
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*]
Expand All @@ -9,4 +6,4 @@ indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
insert_final_newline = true
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"node": true
},
"rules": {
"indent": ["error", 2],
"no-unused-vars": [
"error",
{
Expand All @@ -15,7 +16,6 @@
"ignoreRestSiblings": true
}
],
"quotes": [2, "single"],
"indent": ["error", 2]
"quotes": [2, "single"]
}
}
7 changes: 7 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"projects": {
"dev": "re-imagine-dev",
"staging": "re-imagine-staging",
"production": "re-imagine-prod"
}
}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ coverage
tmp
log
.vscode
cypress/videos
cypress/videosg
cypress/screenshots
.env
client/.env.development
client/.env.staging
client/.env.production
client/src/firebaseKeys.js


7 changes: 0 additions & 7 deletions backend/config/keys.js

This file was deleted.

9 changes: 0 additions & 9 deletions backend/config/prod.js

This file was deleted.

9 changes: 0 additions & 9 deletions backend/config/test.js

This file was deleted.

67 changes: 0 additions & 67 deletions backend/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions backend/middlewares/checkPath.js

This file was deleted.

37 changes: 0 additions & 37 deletions backend/models/Campaign.js

This file was deleted.

33 changes: 0 additions & 33 deletions backend/models/Comment.js

This file was deleted.

22 changes: 0 additions & 22 deletions backend/models/Signature.js

This file was deleted.

11 changes: 0 additions & 11 deletions backend/models/User.js

This file was deleted.

10 changes: 0 additions & 10 deletions backend/models/WasteProvider.js

This file was deleted.

47 changes: 0 additions & 47 deletions backend/routes/authRoutes.js

This file was deleted.

Loading

0 comments on commit 1ede19f

Please sign in to comment.