fix/feat: pagination, telemetry, oracle staleness tests, and hero overflow fix - #1072
Merged
leojay-net merged 1 commit intoJun 29, 2026
Merged
Conversation
leojay-net#1022 leojay-net#586 feat(frontend): add telemetry tracking to useBridgeStats.ts - Dispatch CustomEvent 'bridge_stats_telemetry' on mount, unmount, fetch success, fetch error, and manual refresh - Expose fetchCount and lastFetchedAt from the hook - Add unit tests verifying all telemetry events and fetch behaviours leojay-net#1005 feat(frontend): add pagination to ChatHistorySidebar - Initial load capped at 20 sessions (down from 60) - IntersectionObserver sentinel at bottom of list triggers next page - Spinner shown while loading; fallback 'Load more' button for browsers without IntersectionObserver - Removed old scroll-snapshot logic superseded by sentinel leojay-net#1019 test(contract): add oracle staleness threshold tests - Add TimestampedPrice struct to oracle.rs with is_fresh() helper - New test module test_oracle_staleness.rs covering: - Price well within freshness window accepted - Price one ledger before window end accepted - Price one ledger past window end rejected - Very old price rejected - Exact boundary (age == max_age) accepted - One past exact boundary rejected - Zero threshold fence-post - Saturation guard for clock-skew edge case leojay-net#1022 fix(frontend): hero section overflow on 320px viewport - Add w-full and px-4 to hero content container - Replace fixed text-5xl/text-7xl with responsive text-3xl/sm:5xl/md:7xl - Add break-words to heading to prevent overflow clip - Change section overflow-hidden to overflow-x-hidden to preserve vertical scroll
|
@Nanle-code 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! 🚀 |
leojay-net
added a commit
that referenced
this pull request
Jul 25, 2026
fix/feat: pagination, telemetry, oracle staleness tests, and hero overflow fix
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.
Closes #586
Closes #1005
Closes #1019
Closes #1022
Changes
#1022 fix(frontend): LandingPage hero overflow at 320px
Hero text now wraps gracefully at all viewport widths from 320px upward.
text-5xl/text-7xlwith responsivetext-3xl sm:text-5xl md:text-7xlw-full px-4andbreak-wordsto the hero container and headingoverflow-hiddentooverflow-x-hidden#1005 feat(frontend): infinite scroll pagination for ChatHistorySidebar
the next page when scrolled into view
no more sessions are intersecting
#1019 test(contract): oracle staleness threshold tests
TimestampedPricestruct tooracle.rswithis_fresh(current_ledger, max_age_ledgers)test_oracle_staleness.rsmodule with 8 tests covering:#586 feat(frontend): telemetry tracking in useBridgeStats
bridge_stats_telemetryCustomEvent on: mount, unmount,fetch success, fetch error, and manual refresh
fetchCountandlastFetchedAtuseBridgeStats.test.tsverify all telemetry eventsand fetch behaviours with no regressions to existing UI consumers
Testing
pnpm test:unit(vitest, jsdom)cargo test -p stellar-contracts— zero new errors introduced(91 pre-existing failures in unrelated
test.rsexist onmainunchanged)