Coder Social home page Coder Social logo

tnguyen14 / ledge Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 2.0 3.77 MB

personal financial manager

Home Page: https://tridnguyen.com/ledge

HTML 0.84% JavaScript 87.54% CSS 11.21% Shell 0.33% Dockerfile 0.08%
react redux ledge money-manager javascript ledger

ledge's Introduction

ledge

code style: prettier

Local development

npm start

Using Github Codespaces

gh cs ports forward 13050:13050 4003:4003
gh cs ssh

Transaction lookup

To find a transaction locally by merchant

export env=dev # or env=prod
./bin/find_transactions.js -m "merchant name"

To fix duplicate transactions

  • Verify what the slug for the merchant should be at https://npm.runkit.com/%40tridnguyen%2Fslugify.
  • Go to the Firestore console, find the merchant with duplicate values under merchants_counts.
  • Add the count of the old (duplicated) merchant to the correct one, then remove the old merchant.
  • If the merchant pretty name needs to be updated on transactions, find the transaction (on Firestore console?) and update it accordingly.

ledge's People

Contributors

dependabot[bot] avatar tindn avatar tnguyen14 avatar

Watchers

 avatar  avatar  avatar

ledge's Issues

Use auth on server-side

This depends on #26, and is the next step after #7

  • Include JWT in server side calls
  • Verify JWT
  • Handle 401 error on client side
  • Migrate DBs to user namespace
  • Constrain API access on user name

Support tracking income

  • Should it have its own "merchants"?
  • Should merchants/ account metadata be abstracted to its own list?

Merchant - category association

If a category is usually used for a merchant, automatically pick it.

Similar to merchant count, start adding a category count.

Create a healthcheck endpoint

Create a healthcheck API endpoint for uptime robot to monitor. Should include things like verifying connection to database/ existence of data etc.

Edit transaction warning

Editing transaction creates the following react warning

react_devtools_backend.js:2273 Warning: A component is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component

This shouldn't be happening.

Switch to Github Actions

Currently, the CD pipeline is handled by Travis (for client side) and Docker Hub builds (for server side). When Github Actions are enabled, it would be good to combine them into a single service.

Demo mode

Add a demo mode, which would show the app with fake data

Move from react and redux to just plain JS

  • render form
  • render transactions
  • render stats
  • form submit event
  • clear form after submit (#11)
  • form validation
  • transaction edit
  • transaction delete
  • update stat on transaction change
  • update row display on transaction change
  • merchant autofill
  • load more weeks
  • update account stats for any transaction changes (might wanna consider pushing all data to a global state)
  • remove the 2 suffix

Add span for transaction

Each transaction should have a span (in days) and an effective start date (which could be different from transaction date - default to transaction date).

Store options in database

Options such as categories and sources should be stored in a database, with a UI to allow edit/ add them.

Support for planned transactions

  • Within the week, if there's a planned transaction, show it (highlighted?)
  • Add UI to convert planned transaction to posted or remove it
  • Show upcoming transactions for the month

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Jest test weekStart different timezone

Currently jest test is broken (no esm support), so fix that first.

Then add test for weekStart - looks something like this

test(`weekStart`, () => {
  const now = zonedTimeToUtc(new Date(), 'America/Chicago');
  const monday = startOfDay(setISODay(now));
  expect(getWeekStart().toISOString()).toBe(monday.toISOString());
});

Instead of now and new Date(), pass in a specific that would cross date boundary for where test is run, but not for the passed in timezone.

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.