pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

feat: Sg indicator shows down in mobile when background and add explorer indicator

Open memoyil opened this issue 1 year ago • 4 comments

When in mobile wallets with dapp browsers app put it into background for some time, when in foreground it first shows Down until next interval. It happens intermittently.

This pr will also reduce the blocknumber calls since it will use initialBlockNumber


PR-Codex overview

This PR updates health indicators to use a unified API status enum and reorganizes imports for consistency.

Detailed summary

  • Added ApiStatus enum for health indicators
  • Replaced SubgraphHealthIndicator with ApiHealthIndicator
  • Updated translations key
  • Refactored health indicator components and hooks

The following files were skipped due to too many changes: apps/web/src/hooks/useExplorerHealth.ts, apps/web/src/components/SubgraphHealthIndicator/SubgraphHealthIndicator.tsx, apps/web/src/hooks/useSubgraphHealth.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar May 30 '24 15:05 memoyil

⚠️ No Changeset found

Latest commit: b2abb820ead4a5289097f3976cef20fdd65e5102

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar May 30 '24 15:05 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aptos-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am
blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am
bridge ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am
games ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am
gamification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am
uikit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:09am

vercel[bot] avatar May 30 '24 15:05 vercel[bot]

@memoyil please help resolve the conflict

chefjackson avatar Jun 17 '24 03:06 chefjackson

@memoyil please help resolve the conflict

Done

memoyil avatar Jun 17 '24 08:06 memoyil