flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Frontend] Add subtle tooltip warning in FiatEquivalent when token price feed is older than 5 minutes

Open blurbeast opened this issue 1 month ago • 8 comments

Overview

frontend/src/components/FiatEquivalent.tsx renders the USD value of a token amount using useTokenPrice.ts, but gives no indication if the cached price quote is stale due to offline or rate-limited price APIs.

Problem

  • Users viewing large stream values should know if the USD estimate is using a stale cached price rather than a fresh quote.

Proposed Changes

  1. Expose lastUpdatedAt from frontend/src/hooks/useTokenPrice.ts.
  2. In FiatEquivalent.tsx, if Date.now() - lastUpdatedAt > 5 * 60 * 1000, show an amber info indicator with a tooltip reading "Price estimate last updated X minutes ago".

Acceptance Criteria

  • [ ] Fresh quotes (< 5 minutes old) render normally without warning icons.
  • [ ] Stale quotes (> 5 minutes old) display a subtle indicator and accessible tooltip.
  • [ ] Gracefully handles null/missing price data.

blurbeast avatar Oct 18 '26 05:10 blurbeast

@Amksongs has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello maintainer, i would like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Amksongs to this issue.

Amksongs avatar Oct 21 '26 21:10 Amksongs

@elizabethklien3-pixel has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

I would love to work on this issue professionally, please assign it to me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @elizabethklien3-pixel to this issue.

biggestlizzy avatar Oct 21 '26 21:10 biggestlizzy

@stephaniepez21-art has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello Maintainer, I can fix this please assign.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @stephaniepez21-art to this issue.

stephaniepez21-art avatar Oct 21 '26 21:10 stephaniepez21-art

@Wittig18 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

hey maintainer, i would love to work on this

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Wittig18 to this issue.

Wittig18 avatar Oct 21 '26 21:10 Wittig18

@rahmanabimbs has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi, I will like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @rahmanabimbs to this issue.

rahmanabimbs avatar Oct 21 '26 21:10 rahmanabimbs

Congratulations, @rahmanabimbs! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

🧑‍💻 @rahmanabimbs: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Oct 21 '26 21:10 drips-wave[bot]

🎉 This issue has been marked as completed on GrantFox!

@rahmanabimbs's PR #1714 was approved and merged by @blurbeast.

🏆 @rahmanabimbs: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (153 total points). Track your full progress on GrantFox.

👏 Great work, @rahmanabimbs! Keep contributing to LabsCrypt.

grantfox-oss[bot] avatar Oct 21 '26 21:10 grantfox-oss[bot]

This issue has been completed by @rahmanabimbs as part of the Stellar Wave Program's 10th Wave 🥳

😎 @rahmanabimbs: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Oct 21 '26 21:10 drips-wave[bot]