Skip to content

[DripTide CI check] #1231 #1227 #1223 #1224 combined - #2

Open
ndyugwu wants to merge 11 commits into
mainfrom
fix/issues-1231-1227-1223-1224-1795477041645
Open

ndyugwu wants to merge 11 commits into
mainfrom
fix/issues-1231-1227-1223-1224-1795477041645

Conversation

@ndyugwu

@ndyugwu ndyugwu commented Nov 23, 2026

Copy link
Copy Markdown
Owner

DripTide opened this PR inside your fork only to run the repository's CI on the change before opening the real PR upstream. It is closed automatically.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

Failing checks:

  • Verify TypeScript Frontend & SDK: failure

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

@ndyugwu ndyugwu closed this Nov 23, 2026
ndyugwu added a commit that referenced this pull request Nov 23, 2026
@ndyugwu ndyugwu reopened this Nov 23, 2026
@ndyugwu

ndyugwu commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Fix Applied

Fix malformed YAML / bash script step in .github/workflows/ci.yml causing syntax errors during CI run.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

Failing checks:

  • Verify TypeScript Frontend & SDK: failure

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

ndyugwu added a commit that referenced this pull request Nov 23, 2026
@ndyugwu

ndyugwu commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Fix Applied

Fix the workflow configuration in .github/workflows/ci.yml where an unterminated build/env step block was causing YAML/syntax interpretation issues and ensure packages/sdk coverage output path is correct for action upload.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

Failing checks:

  • Verify TypeScript Frontend & SDK: failure

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

ndyugwu added a commit that referenced this pull request Nov 23, 2026
@ndyugwu

ndyugwu commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Fix Applied

Update GitHub actions in .github/workflows/ci.yml to use actions/checkout@v5, actions/setup-node@v5, actions/upload-artifact@v4 (Node 22 support or modern runner setup), and fix any malformed lines/unterminated regex syntax in ci.yml workflow steps.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

Failing checks:

  • Verify TypeScript Frontend & SDK: failure

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

@ndyugwu
ndyugwu force-pushed the fix/issues-1231-1227-1223-1224-1795477041645 branch from f6deb00 to 0fb9f88 Compare November 23, 2026 23:57
ndyugwu added a commit that referenced this pull request Nov 23, 2026
@ndyugwu

ndyugwu commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Fix Applied

Fix the syntax error in .github/workflows/ci.yml where an unterminated regular expression literal or bad character occurred around line 20-22, updating actions/setup-node to use node-version 22 to resolve deprecation warnings and parse errors.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

ndyugwu added a commit that referenced this pull request Nov 23, 2026
@ndyugwu

ndyugwu commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Fix Applied

Fix unterminated syntax or workflow file issue reported in CI by correcting or preserving the workflow structure if needed, or fixing any TypeScript/build error.

@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

Aboyeji-Isaac and others added 10 commits November 24, 2026 10:43
After a reload the wallet store rehydrates as disconnected, but the
address-keyed queries gated on `!!address` alone, so background financial
data queries could fire while the UI rendered as disconnected.

Gate every address-keyed query on `connected` as well, matching the
existing `useBalances` pattern, and add a regression test covering
rehydration from a persisted-but-stale store.

Refs TrusTrove#636

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`login` is async, so a `logout` landing mid-flight was followed by the
abandoned attempt's `setToken(jwt)`, re-authenticating a session the user
had ended. A session generation counter now lets only the attempt that
still owns the session write auth state back.

Also locks in the surrounding hygiene: no Authorization header after
logout, the token is never persisted to localStorage, and no credential
value reaches a console sink.

Refs TrusTrove#637

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Neither `apiFetch` nor `apiClient.fetch` passed an AbortSignal, so a hung
backend left requests pending forever while polling hooks stacked more on
top.

Every request now carries a bounded, configurable timeout (20s default)
and composes the caller's own signal with it, so a cancelled or unmounted
query aborts the underlying fetch. A caller cancellation surfaces as
`kind: "aborted"` and is never reported as a timeout or a server error.
Timers and abort listeners are torn down on every path.

Refs TrusTrove#638

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…uards

Bounded exponential backoff for transient failures, applied to
side-effect-free reads only.

Automatic retry is deliberately NOT enabled for any mutation. The
money-moving mutations submit signed Stellar transactions, so a timeout
or network error is ambiguous: it proves the response was lost, not that
the transaction failed, and replaying it can double a deposit,
withdrawal or repayment. The one HTTP mutation, POST /invoices, has no
backend idempotency key, so a replay would create a duplicate invoice.

`MUTATION_RETRY_DISABLED` makes that decision explicit and greppable, and
a regression test drives the real hooks through an ambiguous post-submit
failure to assert exactly one on-chain submission per user action.

Refs TrusTrove#639

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Integrates the four changes:

- Thread react-query's own `signal` from every apiFetch-backed queryFn
  into the API layer, so unmounting or refetching a query cancels the
  in-flight request (TrusTrove#638).
- Wire the transient read retry policy once in the QueryClient, and state
  `mutations.retry: MUTATION_RETRY_DISABLED` explicitly so the
  no-auto-retry-on-money-movement guarantee cannot be lost by accident
  (TrusTrove#639). useStats' blind `retry: 3` becomes transient-only, so permanent
  4xx responses now surface immediately.
- Make lib/api.ts source its transient status list from lib/retry.ts
  instead of keeping a second copy.
- Add an integration regression test for the seams between the four
  fixes: that the ApiError shapes TrusTrove#638 throws are classified as TrusTrove#639
  expects, that the retry loop re-reads the Bearer token per attempt so a
  logout cannot be undone by a retry (TrusTrove#637 x TrusTrove#638), and that method
  safety outranks error classification for a POST.

Refs TrusTrove#636, TrusTrove#637, TrusTrove#638, TrusTrove#639

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`useInvoice` returns react-query's `refetch`, which resolves a promise, but
the type assertion in InvoiceDetailClient declared it `() => void`. That
made `pnpm typecheck` and `pnpm build` fail with TS2345 where the value is
passed to `useInvoiceDetailActions(invoiceId, refetch)`, which correctly
expects `() => Promise<unknown>`.

The assertion was simply wrong, so this corrects it rather than wrapping
the call site: wrapping in `async () => { refetch(); }` would discard the
promise and stop `await refetch()` inside the hook from actually awaiting
the refresh. A type assertion is erased at compile time, so there is no
runtime behaviour change. No `any` is added and no error is suppressed.

This break is pre-existing and unrelated to TrusTrove#636-TrusTrove#639: it arrived with
6801236 (TrusTrove#1311) on main and fails CI there too. It is included here only
because Typecheck is the first CI step, so while it fails every later
step - unit tests, lint and formatting - is skipped and none of this PR's
work can be validated by CI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…et-api-reliability

fix(web): improve wallet state, auth lifecycle and API reliability
… indexer: add cursor pagination to invoice listing (+3 more)
@ndyugwu
ndyugwu force-pushed the fix/issues-1231-1227-1223-1224-1795477041645 branch from 41aba81 to 5dcb499 Compare November 24, 2026 15:19
@Cjay-Cyber-2

Copy link
Copy Markdown

CI Checks Failed — Action Needed

The continuous integration checks on this pull request are failing. I can't merge until all required checks pass.

What to do: review the failing checks in the "Checks" tab above, fix the issues in your code, and push the changes.

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.

4 participants