Skip to content

Add unit tests for the holdings list sorting entries by total value descending #673

Description

@Chucks1093

Summary

Holdings should be displayed with the highest-value position at the top so users immediately see their largest holdings. Unit tests should confirm the list component sorts entries by total_value descending before rendering.

Scope

  • Render the holdings list with three entries: total values 500, 1200, and 300
  • Assert the rendered order is 1200, 500, 300
  • Change the 300 entry to 1500 and assert the order updates to 1500, 1200, 500
  • Assert entries with equal total_value maintain a stable secondary order (e.g. by creator ID)

Acceptance Criteria

  • Holdings rendered in descending total value order
  • Order updates when cache data changes
  • Stable secondary sort for equal values
  • Sort applied before render, not after

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions