Storefront api - #12
Merged
Merged
Conversation
- Replace mock product data with API calls for product listing and details - Add new store product types and transformation utilities - Implement React Query hooks for data fetching and caching - Update UI components to use real data with proper loading states - Add skeleton loading components for better UX - Update validators and query helpers for store-specific product queries
Implement infinite query with configurable page sizes for improved UX. Introduce new constant for pagination sizes and update default limit.
- Add store-specific category types, validators, and query hooks - Create server functions for fetching categories with proper filtering - Replace mock data with real API calls in category templates - Implement category tree building for hierarchical navigation - Connect product grid to actual product data with loading states - Add TanStack Query prefetching in route loaders for better UX
…API data - Add shared SortOption type and product sorting utilities - Create React Query hooks for store products, categories, and brands - Implement infinite scrolling with "Load More" button in product grid - Replace mock data with real API calls using server functions - Update filter sidebar to use dynamic categories and brands - Add product listing page loader for data prefetching - Enhance product card with loading states and list view variant - Update mobile filter drawer to accept dynamic filter data
- Replace mock store data with real API calls using TanStack Query - Add server functions for fetching stores with filtering, sorting, and pagination - Implement infinite scroll for store listing with intersection observer - Add query hooks and types for store shops data - Update store list component to accept props instead of using global store - Prefetch store data on route load for better performance
- Add TanStack Query prefetching in route loader for store data - Replace mock products with real API calls using shop slug - Implement loading states and error handling for store page - Transform API response to match frontend store type - Update product sorting to work with real data
- Add cart database schema with sessions and items tables - Create server functions for cart operations (add, update, remove, clear, merge) - Implement useCart hook with React Query for state management - Add optional auth middleware for guest/user cart sessions - Update UI components to use server-side cart instead of local storage - Add cart validators and helper functions for data fetching - Integrate cart functionality across product cards, collection, and cart pages - Maintain optimistic updates and loading states for better UX
- Create database schema and validators for customer addresses - Implement server functions for CRUD operations with authentication - Add address book UI with real-time data fetching and mutations - Enhance entity form dialog with scrollable content support - Update profile page to use session data and auth middleware - Add address type support (billing/shipping) with default address handling
- Create wishlist database schema with user and product relations - Implement server functions for wishlist CRUD operations with auth - Add client-side hooks for wishlist state management with TanStack Query - Integrate wishlist toggle in product details page - Replace mock data with real wishlist data in account page - Add auth middleware to wishlist route
Add database schema, API endpoints, and UI components for shipping methods management in vendor dashboard. Includes: - Shipping schema with relations to shops - CRUD server functions with validation and authorization - React hooks for data fetching and mutations using TanStack Query - Reusable UI components (table, form, header) following entity pattern - Shipping page integration with shop navigation - Support for pagination, filtering, and sorting
… flow - Add product-shipping method relations to enable product-specific shipping restrictions - Implement shipping method validation for cart items based on product restrictions - Enhance checkout UI with address management, shipping method selection, and order summary - Update cart store to support shipping address and dynamic shipping methods - Add street field to shipping address validation and form - Refactor shipping table variable names for consistency
- Add handlers in wishlist-list to call cart and wishlist mutations - Pass handlers and loading states to wishlist-item-card - Show loading spinners on buttons during async operations - Update Stripe documentation formatting (minor visual fixes)
- Add order, payment, notification, and email delivery schemas - Implement Stripe Connect for vendor payment onboarding and dashboard - Create checkout flow with Stripe Elements payment integration - Add vendor settings page for managing Stripe Connect status - Extend user and vendor schemas with order-related fields - Add order notification system for vendors - Implement order summary with coupon support in checkout
- Add order tracking page with timeline visualization - Implement invoice download functionality with Stripe integration - Update order confirmation page to support multiple orders - Add tracking data type definitions and search validation - Integrate invoice download button in order details
- Add product reviews schema with order item verification - Create user review management page with edit/delete functionality - Implement product review display with sorting and helpful voting - Add store reviews section to storefront pages - Enable review eligibility checking for verified purchases - Add review form with order item selection for verified customers - Update product page to use real review data instead of mock - Add review-related hooks and server functions
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit
New Features
Chores