Repository navigation
feat(trade,observability,cache): reconcile ledger data, pending activity, latency metrics, and safe caching headers - #821
Merged
IbrahimIjai merged 1 commit intoSep 27, 2026
Conversation
…ity, latency metrics, and safe caching headers (SO4-Markets#770, SO4-Markets#771, SO4-Markets#780, SO4-Markets#781) - OB-115 (Closes SO4-Markets#770): Implement ledger reconciliation for delayed indexer data, with status badges, local optimistic ledger projection, and automatic fallback revalidation. - OB-116 (Closes SO4-Markets#771): Implement pending activity overlay without inventing settled balances, providing optimistic state indicators with explicit pending tags and ledger hash links. - OB-125 (Closes SO4-Markets#780): Configure safe caching headers across static assets (immutable 1y), HTML routes (no-cache), public GraphQL/REST responses (s-maxage=5, stale-while-revalidate=15), and private wallet endpoints (private, no-store). - OB-126 (Closes SO4-Markets#781): Implement client-side observability measuring route transitions, market data feed health/staleness, and post-submission transaction-refresh latency.
|
@chukwuebuka19 is attempting to deploy a commit to the Ijai's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@chukwuebuka19 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! 🚀 |
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
This PR addresses and resolves the following 4 related issues in a single unified changeset:
OB-115 (Closes OB-115: Reconcile ledger confirmation with delayed indexer data #770): Reconcile ledger confirmation with delayed indexer data
apps/web/src/features/trade/lib/ledger-reconciliation.tsandapps/web/src/features/trade/hooks/useLedgerReconciliation.ts.synced,reconciling,stale) and polling revalidation fallbacks.apps/web/src/features/trade/lib/ledger-reconciliation.test.ts.OB-116 (Closes OB-116: Show local pending activity without inventing settled balances #771): Show local pending activity without inventing settled balances
apps/web/src/features/trade/lib/pending-activity.tsandapps/web/src/features/trade/hooks/usePendingActivity.ts.apps/web/src/features/trade/lib/pending-activity.test.ts.OB-125 (Closes OB-125: Set safe caching headers for assets and public data #780): Set safe caching headers for assets and public data
apps/web/src/shared/lib/cache-headers.tsand configured Nitro inapps/web/nitro.config.ts./_build/assets/*, fonts, immutable chunks):public, max-age=31536000, immutable.no-cache, no-store, must-revalidate.public, max-age=0, s-maxage=5, stale-while-revalidate=15.private, no-cache, no-store, must-revalidate.apps/web/src/shared/lib/cache-headers.test.ts.OB-126 (Closes OB-126: Measure route speed, feed health, and transaction-refresh latency #781): Measure route speed, feed health, and transaction-refresh latency
apps/web/src/features/observability/lib/telemetry.tsandapps/web/src/features/observability/hooks/usePerformanceMetrics.ts.apps/web/src/features/observability/lib/telemetry.test.ts.Changelog Entries
.changelog/unreleased/770-ob-115-ledger-indexer-reconciliation.md.changelog/unreleased/771-ob-116-pending-activity-overlay.md.changelog/unreleased/780-ob-125-safe-caching-headers.md.changelog/unreleased/781-ob-126-route-feed-latency-telemetry.mdVerification
bun lint100% passing across all 6 packages.bun typecheck100% passing across all 6 packages.bun run check:tokens100% passing (442 files scanned, 0 violations).bun run check:content100% passing (41 pages, 0 orphans).bun run build) succeeds.Closes #770
Closes #771
Closes #780
Closes #781