Skip to content

feat(hooks): sortBy, MX check, rounding mode, preset export/import - #710

Open
Inkman007 wants to merge 1 commit into
Stellar-split:mainfrom
Inkman007:feature/691-694-hooks-enhancements
Open

feat(hooks): sortBy, MX check, rounding mode, preset export/import#710
Inkman007 wants to merge 1 commit into
Stellar-split:mainfrom
Inkman007:feature/691-694-hooks-enhancements

Conversation

@Inkman007

Copy link
Copy Markdown

Summary

  • useGroupLeaderboard: added sortBy option (totalPaid | invoiceCount | streak) that re-sorts entries client-side without a refetch; extended GroupMember with the new metric fields (also updated the leaderboard API route to populate them).
  • useEmailValidation: added checkMx option to gate the existing debounced (500ms) async MX check.
  • useSplitCalculator: added roundingMode option (floor | ceil | nearest) with the rounding remainder assigned to the first recipient so shares always sum exactly to the total.
  • useFilterPresets: added exportPresets() / importPresets(json) for sharing dashboard filter presets, merging by name and validating shape.

Closes #691
Closes #692
Closes #693
Closes #694

Validation performed

  • Manual review of each hook's callers to confirm no breaking changes to existing usage.
  • Could not run lint/test/typecheck in this environment — node_modules is not installed (pre-existing environment issue, unrelated to this change).

…mport

- useGroupLeaderboard: add sortBy option (totalPaid/invoiceCount/streak), re-sorts client-side without refetch
- useEmailValidation: add checkMx option to gate the async MX record check
- useSplitCalculator: add roundingMode option (floor/ceil/nearest) with remainder assigned to first recipient so totals always balance
- useFilterPresets: add exportPresets/importPresets for sharing filter presets as JSON

Closes Stellar-split#691
Closes Stellar-split#692
Closes Stellar-split#693
Closes Stellar-split#694
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Inkman007 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant