Closed rodrigopavezi closed 2 months ago
The changes involve the introduction of new components and functionalities, including a tabbed interface for displaying address-related data, enhanced pagination for payments and requests, and the addition of custom hooks for data fetching. New GraphQL queries are implemented to retrieve payments and requests across multiple blockchain networks. Utility functions for formatting payment data are also added, and existing components are modified to integrate these features.
Files | Change Summary |
---|---|
package.json |
Added @radix-ui/react-tabs dependency with version ^1.1.0 . |
src/app/address/[id]/page.tsx |
Introduced AddressPage component for displaying address details with a tabbed interface for requests and payments. |
src/app/payments/page.tsx , src/app/requests/page.tsx |
Renamed Home component to PaymentsPage and RequestsPage , enhancing functionality and adding pagination. |
src/components/payment-table.tsx , src/components/request-table.tsx |
Enhanced PaymentTable and RequestTable components with improved rendering logic and pagination management. |
src/lib/hooks/use-address-payments.tsx , src/lib/hooks/use-address-requests.tsx |
Introduced useAddressPayments and useAddressRequests hooks for fetching payments and requests related to an address. |
src/lib/queries/address-payments.ts , src/lib/queries/address-transactions.ts |
Introduced GraphQL queries and functions for fetching payments and transactions associated with a specified address. |
src/lib/utils.ts |
Introduced utility function getAmountWithCurrencySymbol for formatting payment amounts. |
src/components/recent-area.tsx |
Updated responsive layout class for better alignment on larger screens. |
src/components/recent-payment-table.tsx , src/components/recent-request-table.tsx |
Modified polling interval to be configurable via an environment variable. |
sequenceDiagram
participant User
participant AddressPage
participant PaymentTable
participant RequestTable
User->>AddressPage: View address details
AddressPage->>PaymentTable: Fetch payment data
AddressPage->>RequestTable: Fetch request data
PaymentTable-->>AddressPage: Return payment data
RequestTable-->>AddressPage: Return request data
AddressPage-->>User: Display address details with payments and requests
Objective | Addressed | Explanation |
---|---|---|
Overview of blockchain requests and payments on Address Page (#6) | ✅ | |
Detailed view of a single Request (#5) | ✅ | |
Pagination for requests and payments (#5, #6) | ✅ | |
Custom hooks for fetching address payments and requests (#6) | ✅ | |
Export functionality for requests and payments (#5, #6) | ❌ | Export options for PDF and CSV are not implemented. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Resolves #5 Resolves #6 Resolves #7
Add
Update
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores