Skip to content

Conversation

@youngkidwarrior
Copy link
Collaborator

Why:
Update query to fetch balance_rank (integer) instead of
balance_rank_percentile (numeric). Aligns with schema change
to store raw rank values instead of calculated percentiles.

Changes:

  • Query field: balance_rank_percentile → balance_rank
  • Returns raw 0-based rank integer from database

Pattern from: packages/app/utils/distributions.ts line 87
(index field - another integer field in distribution_shares)

Test plan:

  • Run app: npm run web
  • Navigate to distributions screen
  • Verify data loads without errors
  • Check network tab: distribution_shares query should include balance_rank field

Why:
Update query to fetch balance_rank (integer) instead of
balance_rank_percentile (numeric). Aligns with schema change
to store raw rank values instead of calculated percentiles.

Changes:
- Query field: balance_rank_percentile → balance_rank
- Returns raw 0-based rank integer from database

Pattern from: packages/app/utils/distributions.ts line 87
(index field - another integer field in distribution_shares)

Test plan:
- Run app: npm run web
- Navigate to distributions screen
- Verify data loads without errors
- Check network tab: distribution_shares query should include balance_rank field
Copy link
Collaborator Author

youngkidwarrior commented Dec 30, 2025

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.

2 participants