flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Frontend] Add component tests for CompactAmount rendering and full-precision hover tooltip

Open blurbeast opened this issue 1 month ago • 19 comments

Overview

frontend/src/components/primitives/CompactAmount.tsx renders abbreviated token quantities (e.g. 1.25M USDC) with a full-precision tooltip on hover, but lacks a dedicated component test file.

Problem

  • Formatting edge cases (very small dust amounts 0.0000001, zero, and million-scale values) in the React component should be verified alongside its DOM tooltip attributes.

Proposed Changes

  1. Create frontend/src/components/primitives/CompactAmount.test.tsx.
  2. Test rendering of dust values, standard values (< 1,000), large values (>= 1,000,000), token symbol display, and tooltip content.

Acceptance Criteria

  • [ ] Tests verify abbreviated display text and exact full-precision tooltip value.
  • [ ] npm test in frontend passes.

blurbeast avatar Oct 18 '26 05:10 blurbeast

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

Hello there, i would like to work o this, kindly assign please

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

cythecode avatar Oct 18 '26 06:10 cythecode

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

Hi, how are you doing? please assign me to work on this issue

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

rilwanubala avatar Oct 18 '26 06:10 rilwanubala

@VeronicDev 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 @VeronicDev to this issue.

VeronicDev avatar Oct 18 '26 06:10 VeronicDev

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

Hi maintainer, I can fix this kindly assign

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

Teejay2696 avatar Oct 18 '26 06:10 Teejay2696

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

Hi Maintainer, I can fix this pls assign. ETA 5hrs

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

CollinsKRO avatar Oct 18 '26 06:10 CollinsKRO

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

hy, i can work on it pleas assign

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

harmondconsultant-png avatar Oct 18 '26 06:10 harmondconsultant-png

@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 18 '26 06:10 Wittig18

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

Hello Maintainers, I would like to express my interest in working on this issue. I have reviewed the issue description and understand the problem that needs to be addressed. My approach will be to investigate the existing codebase, identify the root cause, and implement a solution that follows the project's existing architecture and coding standards.

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

moon-code12 avatar Oct 18 '26 06:10 moon-code12

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

Hello Maintainer, I have carefully reviewed the issue description and have a clear understanding of the expected outcome. I am interested in working on this task and confident in my ability to make a meaningful contribution. I would appreciate the opportunity to take it on. Thank you for your consideration.

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

Elioo12 avatar Oct 18 '26 06:10 Elioo12

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

Hi, I can fix this

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

Muyideen-js avatar Oct 18 '26 06:10 Muyideen-js

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

I would like to wok on this issue. please assign

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

GreyDayo avatar Oct 18 '26 06:10 GreyDayo

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

hey maintainer, please kindly assign this to me, i can surely fix it

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

innocentharuna avatar Oct 18 '26 06:10 innocentharuna

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

hii maintainer i would love to work on this issue please

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

sladeoj avatar Oct 18 '26 06:10 sladeoj

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

I would like to work on this because,this tasks matches my skills and i would like to contribute to this issue and would appreciate to work on it,thank you.

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

Bganiyat12 avatar Oct 18 '26 06:10 Bganiyat12

@laxjovial 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 @laxjovial to this issue.

laxjovial avatar Oct 18 '26 06:10 laxjovial

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

hii maintainer i would love to work on this issue please

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

Sammydz456 avatar Oct 18 '26 06:10 Sammydz456

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

🧑‍💻 @GreyDayo: 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 18 '26 06:10 drips-wave[bot]

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

😎 @GreyDayo: 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 18 '26 07:10 drips-wave[bot]