Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

[Data] Update Spenders and Categories via Javascript #19

Open
5 tasks
eryc-cc opened this issue Apr 30, 2022 · 0 comments
Open
5 tasks

[Data] Update Spenders and Categories via Javascript #19

eryc-cc opened this issue Apr 30, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@eryc-cc
Copy link
Owner

eryc-cc commented Apr 30, 2022

In the latest updates made on PR #18, the expected data format for both spenders and categories is an Object with key and name attributes:

let categories = {
  creditcard: {
    name: 'Credit Card',
    key: 1651056654886
  },
  home: {
    name: 'Home',
    key: 1651056656009
  }
};

let spenders = [
  {
    name: 'Spender One',
    key: 1651056656974
  },
  {
    name: 'Spender Two',
    key: 1651056657897
  }
];

The app needs to initialize with the Spenders and Categories as an Object and then:

  • Render the select options according to the data available.
  • Have the option to Add/Update/Remove spenders and categories dynamically.
    • Update transactions(bills) when removing a spender or category
  • Update the calculations accordingly
  • Update the way transactions are rendered
@eryc-cc eryc-cc changed the title Update Spenders and Categories via Javascript [Data] Update Spenders and Categories via Javascript Apr 30, 2022
@eryc-cc eryc-cc added the enhancement New feature or request label Apr 30, 2022
@eryc-cc eryc-cc added this to the HomeBills MVP milestone Apr 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant