Skip to content

Conversation

@limichange
Copy link
Contributor

Summary

  • Add new hardware records page replacing the old sales tab view
  • New API endpoint getHardwareRecords to fetch hardware order records
  • New responsive UI components:
    • HardwareSalesRewardHeader - Stats cards showing total rewards, undistributed, and pending amounts
    • HardwareRecordCard - Mobile card view for order records
    • HardwareRecordTable - Desktop table view for order records
    • HardwareRecordTimeline - Order history timeline
    • HardwareRecordStatusBadge - Status badge component

Test plan

  • Verify hardware records page loads correctly
  • Test mobile view shows cards
  • Test desktop view shows table
  • Verify refresh functionality works
  • Check empty state displays correctly

- Add getHardwareRecords API to fetch hardware order records
- Create HardwareSalesRewardHeader component with stats cards
- Add HardwareRecordCard for mobile view
- Add HardwareRecordTable for desktop view
- Add HardwareRecordTimeline and StatusBadge components
- Remove old Sales tab, keep only Records view
- Add type definitions for hardware records
@revan-zhang
Copy link
Contributor

revan-zhang commented Jan 8, 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.

Use percentage-based column widths instead of flex to ensure consistent
alignment between table header and row content across different content sizes.
Update reward amount colors to match Figma design by status instead of
positive/negative value. Completed shows green, Undistributed shows blue,
Refunded shows gray, and Pending shows yellow. Also fix OrderPlaced
timeline icon to use bgCautionStrong color.
Extract HardwareRecordsList into a separate component file for better
code organization. Update timeline section to use neutral/2 border
color on both top and bottom edges per design spec.
@limichange limichange marked this pull request as ready for review January 8, 2026 05:27
Format nextDistribution date using 'MMMM d' pattern for better readability
(e.g., "January 10" instead of "2026-01-10"). Extract duplicated StatCard
rendering into reusable renderSecondaryCards function to reduce code
duplication between wide and narrow screen layouts.
@limichange limichange enabled auto-merge (squash) January 8, 2026 05:27
originalix
originalix previously approved these changes Jan 8, 2026
Add a "Details" heading above the hardware records list using
$headingLg typography. Also reorganize HardwareSalesRewardHeader
into its own directory for better code organization.
Implement infinite scroll for hardware records list using cursor pagination.
The cursor is the last item's _id, and pagination stops when fewer than
10 items are returned.
Hide date when empty and adjust chevron icon rotation for better UX.
Add new translation keys for perpetual trading features:
- dexmarket.perpetual_trading_title for token perpetual trading page
- perp.tab_favs for favorites tab

Remove unused defi.platform_bonus key with typo in namespace.
@limichange limichange merged commit 041b602 into x Jan 9, 2026
10 checks passed
@limichange limichange deleted the feat/new-hardware-records branch January 9, 2026 03:18
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.

6 participants