Git Product home page Git Product logo

plum's People

Contributors

jadnco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

plum's Issues

Blurry modal views

Modal component views are blurry on devices without a Retina display.

Most likely has to do with the transform property.

Reload portfolios model

When a user creates or deletes a portfolio and then navigates to the main portfolios route, the Ember template renders old content.

This is unexpected behaviour as the new portfolio is visible in the Ember Data Inspector. It just doesn't get rendered until a manual refresh.

Duplicate transactions/holdings

When new transactions are made in quick succession, duplicates are made for both the transaction and holding records.

Steps to re-create:

  1. Create new portfolio w/ deposited cash.
  2. Search for and purchase at least three separate tickers.
  3. View portfolio

These are now the holdings after making only one purchase for each of AAPL, TSLA, MSFT and FB:
screenshot 2015-08-22 17 48 50

Initial deposit not persisted to database

When a new portfolio is created, the initial deposit gets saved as a new transaction. This data shows correctly in the browser at first, but disappears as soon as a refresh occurs. The transaction is not being persisted to the database.

var record = store.createRecord('portfolio', {
      name: newPortfolio.name,
      cash: parseFloat(newPortfolio.cash),
      owner: owner
    }),
    transaction = store.createRecord('transaction', {
      type: 'deposit',
      ticker: null,
      shares: null,
      price: null,
      value: parseFloat(newPortfolio.cash)
    });

// New deposit is pushed
record.get('transactions').pushObject(transaction);

// Portfolio is saved, but new transaction isn't
record.save();

I believe the issue has to do with the asynchronous call of functions. record.save() happens before the new transaction is pushed. Calling the save method within a promise was suggested online, but doing so yields errors:

record.get('transactions').then(function(transactions) {
  transactions.pushObject(transaction);
  record.save();
});

// Uncaught TypeError: record.get(...).then is not a function

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.