Skip to content

fix: shared error helper, wallet errors, token cleanup and timeout coverage (#226, #227, #230, #232) - #348

Merged
presidojay1 merged 4 commits into
StellarTickets:mainfrom
medunrebecca-dot:fix/shared-error-handling-and-session-hardening
Oct 20, 2026
Merged

presidojay1 merged 4 commits into
StellarTickets:mainfrom
medunrebecca-dot:fix/shared-error-handling-and-session-hardening

Conversation

@medunrebecca-dot

Copy link
Copy Markdown
Contributor

Summary

Closes #226
Closes #227
Closes #230
Closes #232

Each change is a separate commit.

Testing

  • npx eslint . passes
  • npx tsc --noEmit passes
  • npm run build succeeds
  • Manually tested the affected page(s) in a browser

The checks above were not run for this PR. The new and updated tests are in src/lib/api-error-message.test.ts, src/lib/auth-context.test.tsx, src/lib/api-timeout.test.ts and src/app/my-tickets/page.test.tsx. Please run npm test in CI or locally.

🤖 Generated with Claude Code

Each page repeated `err instanceof ApiError ? err.message : fallback`.
Add getErrorMessage(err, fallback) to lib/api and use it on every page.
It also surfaces WalletError messages, replacing actionErrorMessage, so
a rejected wallet signature shows its message on each My tickets action.

Refs StellarTickets#230, StellarTickets#232
A rejected Freighter signature on transfer, list and cancel should show
the wallet's own message instead of a generic failure.

Refs StellarTickets#232
Assert that a 401 from /users/me removes the stored token, and that other
failures such as a 500 keep it.

Refs StellarTickets#226
Match the acceptance criterion on StellarTickets#227 so the timeout path is covered at
the boundary the issue names.

Refs StellarTickets#227
@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@medunrebecca-dot 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

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for stellartickets failed.

Name Link
🔨 Latest commit 7de2072
🔍 Latest deploy log https://app.netlify.com/projects/stellartickets/deploys/6ad7fa53aeae60cbc89e9276

@presidojay1
presidojay1 merged commit d0f4f6f into StellarTickets:main Oct 20, 2026
0 of 4 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

2 participants