- Add @ai-sdk/mcp and @ai-sdk/react dependencies
- Switch from @ai-sdk/openai to @openrouter/ai-sdk-provider
- Use useChat hook instead of custom useChatSubmission
- Update completion API with convertToModelMessages and stepCountIs
- Simplify stream handling using toUIMessageStreamResponse
- Improve cookie handling in CookieAwareTransport with getSetCookie support
- Removed unnecessary console logs from various functions to clean up the codebase.
- Updated `getProductFunction` and `oAuthFunction` in Shopify and Openfront integrations to use passed state for OAuth flow.
- Enhanced error handling in `createShop` and `handlePlatformActivation` functions with user-friendly messages.
- Adjusted the `CreatePlatform` component to provide feedback using toast notifications upon successful platform creation.
- Cleaned up webhook verification and other integration functions for better readability and maintainability.
- Implemented ChatEmptyState component for displaying a friendly message when no chat is available.
- Created ChatUnactivatedState component to prompt users to activate the AI assistant.
- Developed use-ai-config hook for managing AI configuration settings, including local and shared key modes.
- Added use-chat-submission hook to handle message submissions and responses from the AI.
- Enhanced error handling and user feedback during chat interactions.
- Enhanced conditional checks and removed unnecessary console logs.
- Updated capitalization for "Openfront" in various components.
- Improved handling of URL parameters after successful channel/shop creation.
- Refactored badge components to use a consistent style across PlatformTabs, StatusTabs, and MatchesTabs.
- Added delete functionality with confirmation dialog in OrderDetailsComponent.
- Enhanced logging in createShop action for better debugging.
Added detailed console logging throughout the webhook processing pipeline to improve debugging and monitoring capabilities. This includes logging of incoming webhook data, shop/platform information, order transformation steps, and final order creation results.
The logging covers:
- Webhook receipt with headers and body
- Shop lookup results and platform details
- Order data transformation process
- Final order creation with line items
- Error handling with full stack traces
This will help diagnose webhook processing issues and provide better visibility into the order creation flow.
Removes debug logs throughout the codebase and refactors OpenFront token handling to use OAuth 2.0 refresh tokens.
BREAKING CHANGE: OAuth reverse callback route removed and token refresh mechanism changed
Implement OAuth callback handling for OpenFront, support marketplace flow, update channel creation to handle platform creation inline, add helper to fetch channel platform by client_id, and adjust UI components accordingly.
Add support for OpenFront OAuth callback handling, including marketplace flow and token refresh logic. Introduce `refreshToken` and `tokenExpiresAt` fields to Shop and Channel models and update related actions and components. Remove legacy auto‑create flow and update `createShop` API to accept inline platform creation. Add migration to add new columns. This change is backward incompatible due to removed function and signature changes.
BREAKING CHANGE: removed `handleAutoCreateFlow` and changed `createShop` signature to support inline platform creation.
- Add OpenFront channel and shop integration adapters with full GraphQL support
- Implement OAuth callback handling for both channels and shops
- Add dynamic platform detection for OAuth vs manual setup flows
- Create auto-opening dialogs for OAuth redirect completion
- Enhance platform models with appKey/appSecret fields for OAuth
- Add OpenFront to available platform templates
- Improve webhook handling with better topic matching
- Add password visibility toggle to sign-in form
- Increase right sidebar width for better chat experience
- Remove deprecated platform templates (Amazon, eBay, etc.)
BREAKING CHANGE: OAuth callback URLs now use dynamic base URL detection instead of virtual fields
Added three new columns to the User table to support password reset functionality:
- passwordResetToken: stores the reset token
- passwordResetIssuedAt: tracks when the token was issued
- passwordResetRedeemedAt: tracks when the token was used
These fields enable secure password reset flow as implemented in the previous commit.
- Added `syncNeeded` field to Match model for more precise inventory sync
- Updated SyncInventoryDialog to use new `syncNeeded` field for filtering matches
- Refined UI components across platform management pages
- Improved button styles, spacing, and overall component consistency
- Cleaned up unused imports and simplified component structures
- Updated button styles to use 'outline' variant for better consistency.
- Replaced deprecated dropdown menu imports with updated paths.
- Adjusted layout margins for improved spacing in channels and matches pages.
- Enhanced button functionality by changing sizes and icons for better user experience.
- Cleaned up unused code and improved overall organization across multiple components.
- Updated paths in navigation to reflect new platform structure.
- Removed obsolete components related to order and shop management.
- Enhanced the UI by integrating the Orion theme across various components.
- Cleaned up unused code and improved overall code organization.
- Adjusted loading states and error handling for better user experience.
- Update Channels, Shops, and Matches pages with responsive layouts
- Add tooltips and improve mobile view for tab navigation
- Refactor CartItem component for better responsiveness
- Enhance MultiSelect and Skeleton components
- Redesign homepage with new OMS section and improved data model cards
- Implement consistent styling and layout across components
- Update layout and styling of loading skeletons
- Simplify skeleton structure for better responsiveness
- Adjust platform card skeleton to match new design
- Add "Create platform" text for empty state
- Make order name clickable with external link
- Add orderLink field to ORDERS_QUERY
- Remove unused shops prop from StatusShopFilter component
- Clean up unnecessary code in OrderPage component
- Add order link generation functionality
- Improve skeleton loading UI for Channels and Shops
- Update ShopPlatform model with orderLinkFunction
- Refactor order details component to use ProductDetailsCollapsible
- Optimize create-tracking API handler
- Add required scopes for Shopify OAuth
- Implement generateOrderLink function for Shopify adapter
- Add link mode (sequential/simultaneous) to Shop model
- Update Links component to support link mode selection
- Refactor Links component to use useUpdateItem and useDeleteItem hooks
- Improve UI for Links, including better layout and delete button
- Update Webhooks styling in channels and shops components
- Remove Links tab from Channels component
- Minor code cleanup and optimization
- Update UI components for improved user experience
- Add className to Channels.js
- Refactor CreateChannelButton and CreateShopButton
- Improve ChannelSearchAccordion, OrderDetailsComponent, and ProcessOrdersDialog
- Enhance CartItemSelect and LineItemSelect functionality
- Update ShopCollapsible and ProductDetailsCollapsible components
- Revise channel and shop adapters
- Add Medusa and Stripe, remove Channelify, BigCommerce, Magento, and WooCommerce
- Update Shopify adapter and API calls
- Improve API communication
- Refactor external API calls to use POST method with JSON body
- Update webhook creation and deletion functions
- Enhance Keystone models and queries
- Add virtual fields for price changes and inventory sync
- Update ORDERSCOUNT_QUERY and ORDERS_QUERY
- Implement "readyToProcess" virtual field for Order model
- Optimize code and remove debug logs
- Remove console.log statements across multiple files
- Refactor and clean up unused code
- Update dependencies
- Upgrade @apollo/client, @keystone-6/core, and @prisma/client
- Add vaul dependency
- Improve security and data handling in API calls
- Update OrderDetailsComponent with new loading states and button rendering
- Modify ProcessOrdersDialog to improve order processing UI
- Enhance InitPage and SignInPage with updated styling
- Comment out order creation logic in shop API handler for debugging
- Update SearchOrders component and UI layout in Shops.js
- Enhance product fetching logic in getProduct and createPurchase functions
- Improve shop selection handling in OrderDetailsDialog.js
- Refactor matchOrder.js with additional async functions and error handling
- Update getMatch.js with platform information and improved product search
- Implement custom hooks for delete and update operations in EditItemDrawer
- Enhance SortSelection component with new UI elements and reset functionality
- Update shopify adapter for better metafield and fulfillment order handling
- Remove deprecated files and clean up unused code
- Minor UI and styling adjustments across multiple components