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

Ability to group accounts #310

Open
letehaha opened this issue Sep 21, 2024 · 0 comments
Open

Ability to group accounts #310

letehaha opened this issue Sep 21, 2024 · 0 comments
Assignees
Labels
good first issue Good for newcomers priority-2-medium Medium priority repo: backend Related to back-end repo: frontend Related to front-end type::epic Epic. Big issue which containes sub-issues

Comments

@letehaha
Copy link
Owner

Ability to group accounts. Best description – accounts folders. For example, user has accounts like Bank_A_usd and Bank_A_uah. Much more convenient will be to allow group them by Bank_A. "Folders" might be multilevel, so users can group by Banks, Brokers, Crypto, or whatever.

Improvements it adds

  1. Easier to manage many accounts from the same bank, or same type of accounts.
  2. Easier to filter transactions or spendings by accounts groups.
  3. Ability to watch the Total balance of the account group. For example, instead of checking USD+UAH+EUR of the same bank, the user will be able to see the total balance in the bank. Especially valuable for things like Wise, where users can have dozens of accounts.
  4. Saves space on the UI, so easier to navigate, easier to fit new features, etc.

Impl details

The best option is to not modify existing things, and simply create two separate groups:

// AccountGroupings table

id (primary key)
account_id (foreign key to Accounts table)
group_id (foreign key to AccountGroups table)
// AccountGroups table

id (primary key)
user_id (foreign key to Users table)
name (e.g., "Bank_A", "Brokers", "Crypto")
parent_group_id (self-referencing foreign key for nested groups) (null for top-level group)
@letehaha letehaha added good first issue Good for newcomers repo: frontend Related to front-end repo: backend Related to back-end priority-2-medium Medium priority type::epic Epic. Big issue which containes sub-issues labels Sep 21, 2024
@letehaha letehaha self-assigned this Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers priority-2-medium Medium priority repo: backend Related to back-end repo: frontend Related to front-end type::epic Epic. Big issue which containes sub-issues
Projects
None yet
Development

No branches or pull requests

1 participant