Skip to content

Devoclan/four fixes#581

Merged
legend-esc merged 4 commits into
legend-esc:mainfrom
devoclan:devoclan/four-fixes
Jul 25, 2026
Merged

Devoclan/four fixes#581
legend-esc merged 4 commits into
legend-esc:mainfrom
devoclan:devoclan/four-fixes

Conversation

@devoclan

Copy link
Copy Markdown
Contributor

closes #523
closes #524
closes #525
closes #526
Why this matters now: frontend/src/app/core/store/credit.store.ts uses signals, but stellar-wallet.service.ts uses BehaviorSubject. Components subscribed to the wallet service re-render on every value emission even if the value hasn't changed, causing jank in the UI.

Problem / What: StellarWalletService exports walletAddress$: BehaviorSubject. This should be a signal for consistency and better change detection.

Why this matters now: Production logs show P95 latency for GET /credits is 2 seconds, but there's no visibility into which query is slow. PostgreSQL query logs are not integrated into the application monitoring stack.

Problem / What: TypeORM has no query logging enabled in production. Slow queries (>500ms) should be logged with the full SQL, execution plan, and request ID.

Why this matters now: GET /api/v1/credits?owner=G... takes 1.5 seconds with 10K credits in the table because there's no index on owner. The migration adds indexes on status, vintage_year, but not owner.

Problem / What: api/src/migrations/1748390400000-AddCreditIndexes.ts creates indexes on filtering columns but not join/owner columns. CreditRepository.findByFilter with owner filter does a sequential scan.

@devoclan
devoclan requested a review from legend-esc as a code owner July 25, 2026 10:29
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@devoclan Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@legend-esc
legend-esc merged commit 717b024 into legend-esc:main Jul 25, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment