From 67f7f65637f31183c52336143b64218e964c739d Mon Sep 17 00:00:00 2001 From: CodingBabe-1 Date: Tue, 29 Sep 2026 23:07:58 +0000 Subject: [PATCH 1/6] fix(server,frontend): repair CI breakage left by recent merges main currently fails `tsc --noEmit` and 5 of 25 server suites, so any PR against it is red regardless of its own changes. Repairs: - services/stellar.ts declared getServerKeypair twice (TS2393), and the eager module-load key validation from #313 preempted the structured startup check from #383, making route tests unusable with a dummy key. Keep a single lazily-resolved, cached accessor; index.ts/validateEnv still owns boot-time validation, and startup now warns (non-fatally). - token-revocation lookups added by authenticate() were not accounted for in the profile/trades route test mocks, shifting queued results (401s). - createRatingSchema rejected an explicit `comment: null` that the route persists as null either way; accept nullish. - virtualAccount.test.ts did not compile and raced fake timers against microtasks in two tests. - three wallet modal tests queried ambiguous accessible names; the withdraw submit button now exposes a single accessible name while submitting. No production behaviour changes beyond the schema/service repairs above. --- frontend/app/wallet/WithdrawModal.tsx | 4 + frontend/app/wallet/depositCopy.test.tsx | 18 ++-- frontend/app/wallet/withdraw.test.tsx | 4 +- server/src/routes/profile.test.ts | 7 ++ server/src/routes/trades.test.ts | 5 +- server/src/schemas/ratings.schemas.ts | 5 +- server/src/services/stellar-keypair.test.ts | 37 +++++--- server/src/services/stellar.ts | 99 ++++++++------------- server/src/services/virtualAccount.test.ts | 15 +++- 9 files changed, 106 insertions(+), 88 deletions(-) diff --git a/frontend/app/wallet/WithdrawModal.tsx b/frontend/app/wallet/WithdrawModal.tsx index 82d84dd..a1f6c50 100644 --- a/frontend/app/wallet/WithdrawModal.tsx +++ b/frontend/app/wallet/WithdrawModal.tsx @@ -494,6 +494,10 @@ export default function WithdrawModal({ {/* Submit button */}