Coder Social home page Coder Social logo

endeavors's Introduction

         ------
       /--  --- \
       |๐Ÿ‘๐Ÿ‘ƒ ๐Ÿ‘ โ–‘๐Ÿ‘‚   ๐Ÿ‘
   ๐Ÿ‘‹   \ ๐Ÿ‘„   โ–‘/   //
    ||    --- โ–‘/   ||
     \\     | โ–‘|   //

endeavors's People

Contributors

alexburner avatar movingobjects avatar

Stargazers

 avatar

Watchers

 avatar  avatar

endeavors's Issues

Refactor to use Redux

Redux looks worthwhile to learn to me, even if not totally necessary for this app

Switch to Cloud Firestore Beta?

It looks like Google is rebuilding Firebase's Realtime Database from scratch and calling it Cloud Firestore. It's still in beta, but it looks pretty polished. And it looks better than the old Realtime Database (what we just started using).

Some highlights:

  • id is included on result objects!!!!! <-- obs huge (jk, looks like they're still separate)
  • more intuitive data structure ("documents" and "collections" instead of one giant tree)
  • better story for hierarchical data (document subcollections)

They show an example of subcollections:

var messageRef = db.collection('rooms').doc('roomA')
                .collection('messages').doc('message1');

Seems relevant to our category/values nesting:

var valueRef = db.collection('categories').doc('categoryKey1')
                .collection('values').doc('valueKey1');

Though I guess it'd be more like:

const categoriesRef = db.collection('categories');
categoriesRef.forEach((categoryDoc) => {
    const category = categoryDoc.data(); // { label }
    const categoryRef = categoriesRef.doc(categoryDoc.id)
    const categoryValuesRef = categoryRef.collection('values')
    categoryValuesRef.forEach((valueDoc) => {
        const value = valueDoc.data(); // { label }
    });
});

And activities could have their "links":

const activitiesRef = db.collection('activities')
activitiesRef.forEach((activityDoc) => {
    const activity = activityDoc.data();  // { label }
    const activityRef = activitiesRef.doc(activityDoc.id);
    const valueLinksRef = activityRef.collection('valueLinks');
    valueLinksRef.forEach((valueLinkDoc) => {
        const valueLink = valueLinkDoc.data(); // { valueId, weight }
    });
});

Hmm actually now that I write that all out I'm not sure how much better it is

Replace printed text table cells with input elements

This might be a fun next step / good for another pairing day: swapping out all the table cells for input elements, so (similar to the original spreadsheet) users can live-update values

Would also give us a chance to ease into state:

  1. in-memory (lost on refresh)
  2. local storage (persists for device)
  3. firebase? (persists for account)

Think through categories

  • Do we need categories at all?
  • Tags vs categories
  • Categories for values? Categories for activities?
  • How to handle initial state?
    • Do we provide default set of categories?
    • Are categories unchangeable?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.