Skip to content

Conversation

AlexanderKolberg
Copy link
Member

No description provided.

AlexanderKolberg and others added 30 commits August 19, 2025 20:10
- Updated BuyModalContent to utilize the new useMarketOrderData hook for fetching collectible and currency information when the selected chain is unsupported.
- Improved loading state management by consolidating loading checks into a single variable.
- Enhanced fallback UI to ensure all necessary data (collectible, order, currency, calldata) is available before rendering.

Additionally, added the useMarketOrderData hook to manage market order data retrieval, including error handling and loading states.
- Introduced the `useOrders` hook to facilitate fetching orders from the marketplace with customizable parameters.
- Created the `fetchOrders` function to interact with the marketplace API and retrieve order data.
- Added `ordersQueryOptions` to manage query configurations for fetching orders.
- Removed the obsolete `useCheckoutOptions` hook to streamline the codebase and improve maintainability.
- Updated `useMarketOrderData` to utilize the new `useOrders` hook for fetching order data, enhancing the integration with the BuyModal.

This commit enhances the order management capabilities within the application, providing a more efficient way to handle order data retrieval.
AlexanderKolberg and others added 12 commits September 15, 2025 10:27
…integration. Updated price display to use formattedPrice and replaced img tag with Media component for better asset handling.
…nAddress to the returned data from useBuyModalData. Updated import paths for useSupportedChains to align with the new package structure.
…out opacity because it's used in background of dropdowns as well
remove opacity from --trails-bg-secondary and replace with matching color

const isLoading = isLoadingSteps || isLoadingChains || isBuyModalDataLoading;

const buyStep = steps?.find((step) => step.id === 'buy');
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional:
StepType.buy instead of 'buy'


const config = useConfig();

const formattedAmount = currency?.decimals
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably I should have done better check here. Instead of default amount to "0", I should have return an error saying currency.decimals couldn't find.

queryFn: async () => {
if (!address || !publicClient) return;

const balance = nativeToken
Copy link
Contributor

Choose a reason for hiding this comment

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

We have useCurrencyBalance. You can pass zeroAddress from viem is it's native currency.

Copy link
Member Author

Choose a reason for hiding this comment

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

But we need an async version?

mithatakbulut and others added 13 commits September 16, 2025 11:52
… checks in the enabled condition, ensuring sufficient balance validation is more robust.
… data retrieval. Added support for shop properties and adjusted collectibleId logic to handle items array. Enhanced error handling by including collectionError in the isError state.
…d improving price display logic. Added FallbackPurchaseUISkeleton for loading indication, updated price calculations to handle market and sale scenarios, and refined balance checks to account for loading states.
…nd integrating tooltips for better user experience. Introduced renderPriceUSD and renderCurrencyPrice functions to improve price display, ensuring accurate representation of free and low-value items.
…lay-enhancement

Enhance FallbackPurchaseUI by adding currency price rendering logic a…
…ransaction status modal state

- Adjusted error handling in BuyModalContent to check for order existence based on market status.
…cution

- Added useToast for user notifications.
- Implemented validation for required parameters (data, to, value) in executeTransaction function.
- Improved error messaging to provide detailed context when validation fails.
Fix - Fallback Purchase Modal -> Txn status modal display
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.

2 participants