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

Set up Firebase config #15

Open
3 tasks done
cwadrupldijjit opened this issue Apr 4, 2017 · 0 comments
Open
3 tasks done

Set up Firebase config #15

cwadrupldijjit opened this issue Apr 4, 2017 · 0 comments
Assignees

Comments

@cwadrupldijjit
Copy link
Contributor

cwadrupldijjit commented Apr 4, 2017

Estimated Hours to Complete: 3

Actual Hours to Complete: 2

Requirements:

This issue is considered done when:

  • A firebase project is set up
  • GitHub authentication is enabled
  • A helper is created with methods to call to authenticate, then get returned auth data
@cwadrupldijjit cwadrupldijjit added this to the GitHub sign-in flow milestone Apr 4, 2017
@cwadrupldijjit cwadrupldijjit self-assigned this Apr 6, 2017
cwadrupldijjit pushed a commit to cwadrupldijjit/dashcommunity-blog that referenced this issue Apr 6, 2017
changes:
  - firebaseHelper.js
    - add helper to manage auth
  - index.jsx
    - create module file to import and export necessary components
  - initializeFirebase.js
    - add file to create the firebase connection
  - gitHubHelpers.js
    - import auth into file to test if it wiill work

issues addressed:
  - dashcommunity#15

no breaking changes; auth not yet fully integrated into the project
riongull pushed a commit that referenced this issue May 5, 2017
* fix(general): update code for eslint conformance

changes:
  - .babelrc
    - fix quote types to make it conformant JSON
  - .eslintrc
    - update linter to not show errors where errors shouldn't be shown
  - .gitignore
    - begin ignoring the public directory--rely on built code
  - ComposeForm/*
    - beginnings of splitting up FormElements.jsx (will be addressed later)
  - PrefixedLink/index.jsx
    - add component to automatically prefix links in order to avoid having to do it manually
  - gatsby-node.js,
        ComposePage/index.jsx,
        Editor/index.jsx,
        FormElements.jsx,
        GitHubForm.jsx,
        gitHubHelper.js,
        localStorageHelper.js,
        ReadNext/index.jsx,
        SiteLinks/index.jsx,
        SiteNav/index.jsx,
        SitePage/index.jsx,
        SitePost/index.jsx,
        SiteSidebar/index.jsx
    - update files to eslint compliance
    - change repetetive field/element creation into data transformed the way you want
  - public/*
    - remove from git (built)

issues addressed:
  - #14

no breaking changes--UI works exactly as originally implemented

* feat(auth): add firebase auth to site

changes:
  - firebaseHelper.js
    - add helper to manage auth
  - index.jsx
    - create module file to import and export necessary components
  - initializeFirebase.js
    - add file to create the firebase connection
  - gitHubHelpers.js
    - import auth into file to test if it wiill work

issues addressed:
  - #15

no breaking changes; auth not yet fully integrated into the project

* feat(login-button): require login on form

changes:
  - firebaseHelper.js
    - assign token, user, and credential to auth object
    - add to local storage
    - add getAuthObj function to get and deserialize authObj
  - ComposePage/index.jsx
    - import newly created login button and add logic to change whether it shows the action form or if it shows the login button
  - ComposeFormElements/index.jsx
    - add new login button component to exports
  - login-button.css
    - add styles to make sure that it looks non-gaggy
  - LoginButton.jsx
    - create form where the login button will live and call submit function when login is successful
  - package.json
    - ensure that the browser opens to localhost (so firebase auth will work)

issues addressed:
  - #16

no breaking changes--only adds annoyance to the form, not convenience so far

* feat(github): remove token from fields and autofill

changes:
  - add helper functions to deal with username
  - firebase auth helper uses authObj instead of exporting individual members
  - clean up slightly the form elements
  - add username prepopulation to the redux form (dosn't work at the moment)
  - automatically grab the token when submitting the form

issues addressed:
  - #17

no breaking changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant