dchaley / you-need-a-splitter Goto Github PK
View Code? Open in Web Editor NEWSplit transactions on YNAB + send to Splitwise.
License: MIT License
Split transactions on YNAB + send to Splitwise.
License: MIT License
Currently, we fetch all unapproved transactions.
The web UI doesn't let us generate unapproved transactions ๐ (Those are for imported txns from banks, etc, that haven't been approved by the user)
The get-transactions API supports filtering on nothing, unapproved, or uncategorized.
For now, let's just make a checkbox which controls whether or not we only fetch approved transactions. Perhaps then, we can build an "unapprove" button that undoes an approval (and lets us create test data more easily ๐).
Currently the approve button just tacks on "(approved)" to the transaction name.
Add an unapprove button, and, wire them up to the API.
Expected result: can approve / unapprove transactions.
The transactions list shouldn't need to worry about whether or not it's loaded. Let the container worry about that. The list should just react to changes in a passed in observable list.
If the process env doesn't have the YNAB_ACCESS_TOKEN
entry then a class cast exception occurs when casting it to string.
Fail more gracefully, for example assert its existence before trying to use it.
(What about auth errors? ๐ค At least those should come back in the network console)
When a transaction is already split, change the split icon to unsplit. (make button style secondary as well?)
Add this icon to a layer: https://fontawesome.com/v6/icons/slash?f=classic&s=solid
Unsplit should pop a modal asking to pick which category to unsplit into.
I deleted these by mistake and don't know how to get it back just yet.
Recording this so it doesn't get lost.
Pop up a modal, or whatever KVision allows(??), to edit the category on a transaction. It should be something simple like a drop-down of category names. (cat-group > cat-name)
Also: hide this button for split categories (see #16 for the unsplit work there)
After #12 , we update the app's data store from the YNAB API response, which triggers a re-render.
In the meantime (in between issuing the call and getting the result) we should lock up the transaction with a loading state.
Right now, it uses nullability to indicate the unloaded state.
To enable editing the category, we need to first fetch available categories so we have the name/id pairs. Then we can populate a categories data store, and display it below the transactions for debugging purposes. Eventually we'll wire it into the app properly, and remove it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.