Repository navigation
Fix/seller orders table - #187
Conversation
The pickup checkbox only updated its own SWR cache, so the Pickup Status filter and CSV export kept the old status until the Supabase realtime update arrived. Undo from the table also left the checkbox checked and disabled until then. Both now update the orders list and the row cache immediately. Co-authored-by: Cursor <cursoragent@cursor.com>
Created At uses 12-hour time in the table and CSV, and multi-item order details no longer overlap. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
eicyer
left a comment
There was a problem hiding this comment.
- Each row currently sends its own request to the server to get order information, even though the page already has that information. Previously, pagination limited this to 10 requests at a time. Now that all rows appear on the page, 300 orders would trigger 300 unnecessary requests. You can add revalidateOnMount: false to the useSWR calls in those cells so they don't request the same data again when they load.
-autoResetPageIndex: false is no longer needed because the table doesn't use pagination, so remove it. Also, the table recreates its columns and sorts all orders every time the component re-renders, even when nothing relevant has changed. Fix: Use useMemo for getColumns and useCallback for setOrderPickedUp so React can reuse them instead of recreating them unnecessarily.
- If you select rows and a filter hides them, Export quietly exports everything visible instead. Fix: clear the selection with setRowSelection({}) whenever a filter or the search changes.
…payment status tooltip. - Drop the 1200px minimum width, let headers and buyer names wrap, and tighten cell padding. - Stack Created At as date over time. - Show quantity next to each item name in Order Details and remove the separate Quantity column, so item names can wrap. - Rewrite the Payment Status tooltip to match how statuses are set today (Venmo match or seller confirmation, Zelle/other unverified).
- Payment Status and Pickup Status badges open a menu to change the status. Payment can be marked received; pickup can be marked, and undone within the backend's one minute window. - Order ID column shows the first 8 characters, the full ID on hover, and copies on click. The search box matches order IDs and the CSV export includes an Order ID column (from #200).
|
|
|
Pushed changes on top of this branch:
|
…lection on filter change. - Row cells no longer refetch their order on mount; the page already has it. - Remove the unused autoResetPageIndex option. - Memoize the column definitions and the pickup and payment callbacks. - Changing a filter or the search clears the row selection so Export never silently falls back to every visible row.
… row menu copy action.
- Move the checkout PaymentMethodIcon into a shared component and reuse it in the Payment Method column with a readable label (Venmo, Zelle, Cash). - Put the View Order link icon next to its label.
The faceted filters used arrIncludesSome, which does a substring check on string values. Use an exact match for payment status, payment method, and pickup status.
…order the filters. - Show 25 rows per page by default with 10/25/50/100 options, a page indicator, and Previous/Next below the table. Export and select-all still cover every matching order. - Updating an order keeps the current page; sorting, filtering, searching, and Reset go back to page 1. - Filter buttons now follow the column order: Item(s), Payment Type, Payment Status, Pickup Status.





Summary
The seller fundraiser orders table shows every order that matches the current filters, exports that set, and displays Created At in 12-hour time.
Changes
Test
Screen.Recording.2026-11-07.at.11.25.39.PM.mov