Skip to content

Conversation

@thedev132
Copy link
Member

No description provided.

@thedev132 thedev132 requested a review from a team as a code owner April 4, 2025 04:28
@thedev132 thedev132 marked this pull request as draft April 4, 2025 04:29
@thedev132 thedev132 force-pushed the thedev132/cardcreation branch from 48e806d to bd45934 Compare November 10, 2025 06:26
@thedev132 thedev132 marked this pull request as ready for review November 10, 2025 06:28
@thedev132 thedev132 requested a review from Copilot November 10, 2025 06:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements card ordering functionality in a React Native mobile application, enabling users to create both virtual and physical cards through a new OrderCard screen. It also improves the cards list page with enhanced filtering options and fixes various authentication and state management issues.

Key changes:

  • Adds a new OrderCard screen with organization selection, card type choice, shipping address input, and card design selection
  • Implements field validation and card creation API integration
  • Enhances cards filtering to include both canceled and frozen cards toggle
  • Improves authentication token refresh handling with request queueing
  • Adds error retry logic with exponential backoff for SWR requests

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/pages/cards/OrderCard.tsx New screen for ordering cards with organization selection, card type, shipping info, and design selection
src/utils/cardHelpers.ts New utility file containing field validation logic for card creation
src/utils/cardActions.ts Adds handleCreateCard function for card creation API call
src/pages/cards/cards.tsx Adds frozen cards filter toggle and navigation button to order cards
src/pages/cards/GrantCard.tsx Fixes activate button visibility to only show for card holder
src/lib/client.ts Refactored token refresh logic with global state and request queueing
src/lib/useOfflineSWR.ts Adds retry logic with exponential backoff for failed requests
src/core/AppContent.tsx Adds custom error retry handler to SWR config
src/lib/types/User.ts Adds shipping_address field and reader role to user types
src/lib/types/CardDesign.ts New type definition for card designs
src/lib/NavigatorParamList.ts Adds OrderCard route to navigation types
src/core/Navigator.tsx Registers OrderCard screen in navigation stack
src/components/PaymentCard.tsx Fixes card logo tint color to show black on non-black cards
src/components/ReceiptActionSheet.tsx Adds anchor positioning for action sheet
src/components/receipts/MissingReceiptTransaction.tsx Passes button ref to action sheet for proper positioning
src/components/transaction/ReceiptList.tsx Passes button ref to action sheet for proper positioning
src/pages/Receipts.tsx Passes button ref to action sheet for proper positioning
src/components/cards/RepIcon.tsx New SVG icon component for virtual cards
src/components/cards/CardIcon.tsx New SVG icon component for physical cards
src/auth/AuthProvider.tsx Removes duplicate error logging during token refresh
src/Navigator.tsx Duplicate/alternative Navigator file with OrderCard registration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thedev132 thedev132 changed the title Create Card UI [Feature] Issue a new card Nov 10, 2025
@thedev132 thedev132 merged commit 3eea854 into hackclub:main Nov 10, 2025
3 checks passed
@thedev132 thedev132 deleted the thedev132/cardcreation branch November 10, 2025 06:41
@Luke-Oldenburg Luke-Oldenburg mentioned this pull request Nov 10, 2025
2 tasks
@sentry
Copy link

sentry bot commented Nov 10, 2025

Issues attributed to commits in this pull request

This pull request was merged and Sentry observed the following issues:

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.

1 participant