Fix/component unit tests following empty state - #807
Merged
Chucks1093 merged 4 commits intoAug 27, 2026
Merged
Conversation
|
@Mosas2000 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! 🚀 |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Changes
1. XLM Price Formatter & Unit Tests (#766)
formatXlmPriceinnumberFormat.utils.tsto format XLM amounts with two decimal places.xlmPriceFormatter.test.tsverifying whole numbers (10.00 XLM), fractional values (0.50 XLM), small values (0.001->0.00 XLM), rounding (1000.999->1001.00 XLM), and zero (0.00 XLM).2. Transaction Type Badge Component & Unit Tests (#765)
TransactionTypeBadgecomponent to render styled badges (Buyin green,Sellin red, andUnknownin grey).TransactionTypeBadgeintoTransactionHistory.TransactionTypeBadge.test.tsxverifying labels, color classes, and fallback behavior for missing/unknown types without throwing errors.3. Creator Card Component & Unit Tests (#767)
CreatorCardto format zero prices as0.00 XLM, null prices as a dash placeholder (—), and holder counts asX holders./creator/:id.CreatorCard.props.test.tsxconfirming prop rendering, zero value resilience, dash placeholders, and route link attributes.4. Following Page Empty State & Unit Tests (#764)
FollowingPagecomponent rendering a loading skeleton during query fetch and an empty state once the query settles with an empty array."You are not following anyone yet — discover creators on the marketplace"."Browse Marketplace"button navigating to/creators./followingroute toroutes.tsxand unit tests inFollowingPage.test.tsx.Verification
xlmPriceFormatter.test.ts,TransactionTypeBadge.test.tsx,CreatorCard.props.test.tsx, andFollowingPage.test.tsx.pnpm check(eslint . && tsc -b && vite build) with zero linting or TypeScript compilation errors.