Skip to content

Release: develop -> main#3440

Merged
TaprootFreak merged 6 commits intomainfrom
develop
Mar 17, 2026
Merged

Release: develop -> main#3440
TaprootFreak merged 6 commits intomainfrom
develop

Conversation

@github-actions
Copy link

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

Extract production log sync script into its own branch.
Remove hardcoded default password — SQL_PASSWORD must be set in .env.
TaprootFreak and others added 5 commits March 16, 2026 16:08
* feat: add financial dashboard API endpoint

Add admin-only GET /dashboard/financial/log endpoint that queries
FinancialDataLog entries from the log table, parses the JSON message
field, and returns structured financial data including total balances,
plus/minus breakdowns, BTC price, and balances by financial type.

Supports daily sampling and date filtering via query parameters.

* feat: extend financial dashboard with changes, latest balance, and expenses endpoints

- Add /changes and /changes/latest endpoints for fee income tracking
- Add /latest endpoint with balance by type and blockchain (stacked)
- Add getLatestFinancialLog and getLatestFinancialChangesLog for fast queries
- Aggregate small providers/assets (<5k CHF) under "Other"
- Return detailed expense breakdowns (ref, binance, blockchain sub-categories)

* chore: add test-results to gitignore

* feat: add referral reward recipients endpoint to financial dashboard

* feat: add script to sync production log entries to local database

* refactor: extract sync-prod-logs script to separate PR #3439

* fix: harden financial dashboard for production

- Extract BTC price by asset ID lookup instead of >50k heuristic
- Add try/catch to getLatestBalance for corrupt JSON messages
- Replace `where: any` with FindOptionsWhere<Log> in repository

* style: fix prettier formatting

* fix: bind subquery parameters explicitly and validate from date

- Bind :system/:subsystem/:severity on subquery and propagate via
  setParameters() instead of relying on outer query parameter names
- Validate from query param: reject invalid dates with 400

* fix: return 404 instead of empty body when no financial data exists
Add kycLogs to the /support/:id response so the compliance UI
can display the full KYC audit trail per user. Uses QueryBuilder
to bypass TypeORM table-inheritance discriminator filtering.
Also adds KYC step and log test data to the local seed script.
* feat: add custody order list and approval endpoints for admin

* fix: remove fallback values from CustodyOrderListEntry DTO
The getChangeLog() method excluded blockchain fees (cryptoInputFee,
payoutOrderFee, tradingOrderFee) from totalMinus, causing the net
total on the financial dashboard to be overstated. Also expose bank
and kraken expense categories in the changes DTO for full transparency.

Refs #3438
* Update chargeback bank fee rate from 0.1% to 1%

* Fix migration code style to match prettier config

* Fix migration timestamp to run after all existing migrations
@TaprootFreak TaprootFreak merged commit 47be0bd into main Mar 17, 2026
12 checks passed
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.

3 participants