You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
Repository navigation
Commit 98d0859
Browse filesBrowse the repository at this point in the historyBrowse files
Sections (History, Assets, NFTs) previously shimmered forever on a failed list
fetch and could flash a false "empty" while still loading. Add explicit
loading / error / empty handling backed by real load state.
Store (wallet-core):
- Add isLoadingEvents / eventsLoaded / eventsError / accountStatus to
walletManagement, driven from loadEvents.
- Coalesce concurrent loadEvents calls for the same (limit, offset) onto one
in-flight request (removes the duplicate concurrent /traces requests that the
StrictMode double-invoke amplified); a different window (Load more) chains
after and is never dropped.
- Best-effort single retry on a transient toncenter timeout.
- Fetch account status (addressInformation) so the UI can distinguish a
fresh/uninitialized account (truly no transactions) from a still-loading or
failed fetch.
- Reset the new flags + in-flight guard on wallet switch / remove / clear.
UI (demo-wallet):
- Add a reusable animated Skeleton primitive (gray shimmer within the app
palette, respects prefers-reduced-motion) with layout-matched variants for the
Asset row, NFT tile and History row.
- Show shimmers while loading on both the dashboard preview cards and the full
Assets / NFTs / History pages.
- Empty-state stubs ("No NFTs yet" / "No transactions yet") show only after a
successful load returned nothing (or a confirmed fresh account) — never while
loading or after a failed fetch. On the dashboard a genuinely-empty wallet
shows the stub instead of the section being hidden.
- Error states: the dashboard preview hides the section on a load error; the
full page shows a short "Unable to load ..." line instead of an endless shimmer.
- History "Load more" pages by offset -- (25,0) -> (25,25) -> (25,50) --
appending each page to the accumulated list (deduped by eventId) instead of
refetching a growing limit; shows a spinner while the next page loads.
Work around a server-side toncenter limitation where
GET /api/v3/traces?limit=N returns 500 ("timeout: context deadline exceeded")
for small N (observed 1..10) but succeeds for 25: default the events batch to 25
everywhere. Because the dashboard preview and History now request the same first
page (limit 25, offset 0), the store coalesces them into one /traces request.
Assets: surface the mainnet base tokens (native Gram + USDT + XAUt) at a zero
balance when not held, on BOTH the dashboard preview and the full Assets page,
via the shared useAssetRows hook so both render the exact same list (the preview
shows its first N); held jettons are merged in and win on any address collision.
Mainnet-only; testnet and held-token display unchanged.
0 commit comments