Skip to content

Conversation

@limichange
Copy link
Contributor

Summary

  • Restore FilterButton and ExportButton to HardwareSalesReward page (removed in feat(referral): add hardware records page with new UI components #9595)
  • Display buttons next to "Details" title for both mobile and desktop views
  • Extend getHardwareRecords API to support timeRange and inviteCode filter parameters
  • Filter state affects both cumulative rewards header and records list data

Changes

  • packages/kit-bg/src/services/ServiceReferralCode.ts: Add filter params to getHardwareRecords API
  • packages/kit/src/views/ReferFriends/pages/HardwareSalesReward/index.tsx: Add filter state and headerRight component
  • packages/kit/src/views/ReferFriends/pages/HardwareSalesReward/components/HardwareRecordsList.tsx: Add headerRight prop, simplify component structure

Test Plan

  • Verify filter button displays on mobile and desktop
  • Verify export button displays on mobile and desktop
  • Test time range filter (All, 30 days, 90 days)
  • Test invite code filter
  • Verify filter affects both header stats and records list
  • Verify CSV export works with filter params

…rd page OK-48808 OK-48809

- Add FilterButton and ExportButton to HardwareSalesReward page
- Extend getHardwareRecords API to support timeRange and inviteCode filter params
- Display buttons next to "Details" title for both mobile and desktop
- Filter state affects cumulative rewards header and records list
- Simplify HardwareRecordsList component structure
@revan-zhang
Copy link
Contributor

revan-zhang commented Jan 12, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

…fy code

- Display filter/export buttons in Page.Header on mobile
- Display buttons in breadcrumb area on desktop
- Remove unused scrollViewRef and related imports
- Simplify HardwareRecordsList by removing headerRight prop
@limichange limichange merged commit b50e258 into x Jan 13, 2026
10 checks passed
@limichange limichange deleted the fix/restore-hardware-sales-filter-export-buttons branch January 13, 2026 04:05
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.

5 participants