checkpoint: goals feature, wallet balance, and goals/wallet detail UI

- Add goals feature (models, migrations, API, web pages)
- Add reserved/centralized wallet balance service
- Add wallet detail page and overview components
- Add new UI components (progress, multi-select, FAB)
- Remove stray empty -H/-d files from working tree
This commit is contained in:
Dwindi Ramadhana
2026-06-17 20:40:00 +07:00
parent 35e93b826a
commit 6a6e74562c
401 changed files with 9517 additions and 397 deletions

5
apps/api/dist/wallets/wallets.service.js vendored Normal file → Executable file
View File

@@ -23,6 +23,11 @@ let WalletsService = class WalletsService {
orderBy: { createdAt: 'asc' },
});
}
getOne(userId, id) {
return this.prisma.wallet.findFirst({
where: { id, userId, deletedAt: null },
});
}
create(userId, input) {
const kind = input.kind ?? 'money';
return this.prisma.wallet.create({