Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canutin v2 #220

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Canutin v2 #220

wants to merge 13 commits into from

Conversation

fmaclen
Copy link
Owner

@fmaclen fmaclen commented Sep 7, 2024

A full re-write of Canutin v1

New stack

  • PocketBase
  • Svelte 5 & SvelteKit
  • TailwindCSS (maybe)

This work was started in a separate repository because I was still getting to know the ins and outs of Svelte 5.

I think the foundation is solid enough that it makes sense to continue in this repository so we preserve the commit history.
@fmaclen fmaclen marked this pull request as ready for review September 7, 2024 01:28
* feat: calculate balances for all account types

* calculate summary totals using $derived

* add formatCurrency helper function

* remove unused code from seed script

* seedUniqueUser also verifies the user

* fix balance groups in summary

* big picture: add summary test

* add pocketbase hook for overriding `created` field

* add basic account view

* fix seed transaction function

* move helper functions to pocketbase.ts

* re-organize seed scripts
* add Asset class

had to pluralize the DB table

* include assets to big picture summary calculations

* add first accounts and asset tests

* remove blank spaces

* add real-time update tests to assets and accounts

* allow tags to be listed by users

* allow accounts to be updated by balanceStatements or transaction events

* refactor pb clients (pbAdmin, pbUser)

* allow assets to be updated on balanceStatement changes

* fix linting errors

* add test for transaction events updating account balances

* used TypedPocketBase
* feat: add cashflows to "The big picture"

* feat: add tests for cashflows in Big Picture

* fix: add i18n keys

* fix: replace "surplus" with "balance"

* chore: apply formatting

* docs: add comment about positive and negative ratios

* fix: update remaining tests
* feat: add extra details in accounts list

* test: add assertions for account details

* chore: apply formatting
* feat: add details to asset lists

* chore: fix text casing
* feat: add balance sheet

* chore: apply formatting
* feat: add error page and tests

* chore: apply formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant