feat(frontend): transaction toasts, offline PWA, pt i18n & Sentry breadcrumbs (#810 #811 #812 #813) - #1131
Merged
ayomideadeniran merged 1 commit intoAug 30, 2026
Conversation
…breadcrumbs Closes SoroLabs#810, SoroLabs#811, SoroLabs#812, SoroLabs#813. - SoroLabs#810: wire Sentry breadcrumbs into the existing TransactionToastHandler so the multi-step (awaiting signature -> submitting -> confirmed/failed) lifecycle is also observable in telemetry, alongside the Stellar Expert explorer link. - SoroLabs#811: add an offline-first service worker (public/sw.js) with stale-while- revalidate static caching, network-first task/API caching, and a graceful /offline fallback; register it in ClientInit (production only) and add app/offline.tsx. - SoroLabs#812: add the requested Portuguese locale (i18n/translations/pt.json) and wire pt throughout the i18n core (locales, flags, selector metadata, detect map). - SoroLabs#813: wrap next.config.ts with withSentryConfig so client/server/edge bundles are instrumented; add wallet + transaction lifecycle breadcrumbs helper (src/lib/errors/breadcrumbs.ts) and wire it into the toast handler. Tests: full frontend jest suite passes (2257 tests / 210 suites). 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@sandrawillow001-afk 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! 🚀 |
|
@oche11207-art is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #810, #811, #812, #813 — Frontend reliability, offline support, internationalization, and error monitoring. Single branch wrapping all four. Much of the foundation was already scaffolded; this PR completes the wiring, fills the concrete gaps, and adds test coverage.
#813 — Sentry client-side crash reporting
next.config.tswithwithSentryConfigso the Sentry webpack plugin instruments client, server, and edge bundles (runtime init already lives insentry.client/server/edge.config.ts;RootLayoutalready wraps the app inErrorBoundarywith a recovery UI).src/lib/errors/breadcrumbs.tswithcaptureWalletBreadcrumb/captureTransactionBreadcrumbhelpers and unit tests.TransactionToastHandler(submitting / confirmed / failed).#811 — Offline-first PWA
public/sw.js, a dependency-free Workbox-style service worker: stale-while-revalidate for static assets/fonts, network-first caching of read-only/api/*task queries, and a graceful offline navigation fallback.ClientInit(production + browser only).app/offline.tsxoffline fallback page. (manifest.jsonand PWA metadata were already wired in the root layout.)#812 — i18n
pt) locale dictionary (i18n/translations/pt.json) and wiredptthroughout the i18n core (supported locales, translation catalog, flags, selector metadata, and locale detection).ptis selectable and translates correctly, with English fallback.#810 — Real-time transaction toasts
TransactionToastHandler(awaiting signature → submitting → confirmed/failed, with a Stellar Expert explorer link) already existed and is covered by tests; this PR layers telemetry breadcrumbs on top and confirms the whole flow passes.Testing
Notes
package-lock.jsonwas regenerated locally during setup and reverted, so no unrelated lockfile churn.SENTRY_ORG/SENTRY_PROJECT/SENTRY_AUTH_TOKENare configured (no DSN → client init is a no-op, preserving tokens/PRs without infra).closes 💻 [FRONTEND] Offline-First PWA Support & Service Worker Cache for Dashboard #811
closes 💻 [FRONTEND] Sentry Error Monitoring & Client-Side Crash Reporting Pipeline #813
closes 💻 [FRONTEND] End-to-End Internationalization (i18n) Framework Integration #812
closes 💻 [FRONTEND] Real-Time Toast Notification System for Multi-Step Transactions #810