Skip to content

Add helper for formatting large follower counts - #216

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
temitope-007:add-follower-count-helper
Apr 27, 2026
Merged

Add helper for formatting large follower counts#216
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
temitope-007:add-follower-count-helper

Conversation

@temitope-007

Copy link
Copy Markdown

This PR implements the shared helper for formatting large follower counts as requested in issue #191.

Changes Made

  • Added formatFollowerCount function in src/utils/numberFormat.utils.ts: A utility function that formats numbers into compact form (e.g., 1.5K, 2M) for display, removing trailing .0 for cleaner output.

  • Updated FollowerCountPill component: Extracted the formatting logic to use the shared helper and added a title attribute to preserve full value availability on hover.

  • Applied helper in CreatorCard: Used formatFollowerCount for displaying creator share supply instead of the generic formatCompactNumber, assuming share supply represents follower-like counts.

  • Added comprehensive tests: Included test cases for the new formatFollowerCount function covering various number ranges and edge cases.

Validation

  • All existing tests pass
  • New tests pass
  • Build succeeds
  • Linting passes
  • No unrelated file changes

Closes #191

- Extract formatFollowerCount from FollowerCountPill to numberFormat.utils.ts
- Apply helper in CreatorCard for creator share supply display
- Preserve full value availability via title attribute in FollowerCountPill
- Add comprehensive tests for formatFollowerCount function
@drips-wave

drips-wave Bot commented Apr 27, 2026

Copy link
Copy Markdown

@temitope-007 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! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit f8dd4e4 into accesslayerorg:main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add helper for formatting large follower counts

2 participants