Skip to main content

🟠 Release v2.71.3

⭐⭐ Moderate Complexity • 5 commits • 68 files changed
This release introduces Shopify integration for rewards, allowing admins to create discount-based rewards that are automatically managed in their Shopify stores. Users can now redeem Shopify discounts through Nudj with full support for discount codes and direct checkout links. The release also includes important security patches and fixes for authentication stability.

What’s New

  • Shopify Rewards Integration - Seamlessly create and manage Shopify discount-based rewards directly from Nudj’s Admin app
  • Flexible Discount Redemption - Choose between showing discount codes with store links or direct checkout links to users
  • Automatic Code Generation - Generate unique discount codes with custom prefixes for tracked redemptions
  • Authentication Stability - Fixed cookie modification issues in Server Components that were preventing smooth user redirects
  • Security Vulnerabilities Patched - Updated critical dependencies to address Dependabot security findings

Apps Updated

User App

✓ Updated - 9 changes

API

✓ Updated - 21 changes

Admin

✓ Updated - 38 changes

MCP Server

— No changes

Website

— No changes

Games

— No changes

Detailed Changes

Authentication & Session Management
  • Fixed cookie modification errors in Next.js Server Components that were blocking user redirects during auth callback
  • Improved token refresh detection with better handling for expired vs. invalid tokens
  • Removed unnecessary cookie deletion operations that were preventing proper session restoration
Dependencies
  • Removed Storybook configuration and story files (5,027 lines removed)
  • Updated dependencies to address critical security vulnerabilities
Shopify Integration Backend
  • Added shopifyApiClient for communicating with Shopify’s GraphQL API
  • Implemented bulk discount code creation endpoint for Shopify integration
  • Added queue handlers for processing Shopify redemption events
  • Implemented reward asset management service for Shopify integrations
  • Added language mapping support for multi-language Shopify discount configurations
Data Models
  • New RewardRedemptionConfigShopifyDtoModel for Shopify-specific reward configurations
  • New queue DTOs: ShopifyRedeemCodeRegisterQueuePayloadDto and ShopifyRedeemCodeRegisterQueueOutputDto
  • Added Shopify discount code generation utilities
  • Updated reward asset models to support Shopify redeemables
Queue System
  • Added SHOPIFY_REDEEM_CODE_REGISTER queue name for processing Shopify redemptions
  • Implemented queue message building for Shopify discount tracking
Dependencies
  • Added @shopify/shopify-api for official Shopify GraphQL API support
Shopify Rewards Configuration UI
  • New ShopifyRedemptionStep component for configuring Shopify-based rewards
  • Display mode selector: Choose between discount codes with store links or direct checkout links
  • Code prefix configuration with helpful placeholder guidance
  • Read-only Shopify Discount ID field showing integration details
  • Informational banner explaining Shopify integration limitations
Reward Form Updates
  • Updated reward-form-container to handle Shopify-specific configuration flows
  • Enhanced use-reward-form hook with Shopify validation logic
  • Updated reward form schema to support shopifyDiscountId and prefix fields
  • Added Shopify display mode enum options to reward schemas
Rewards Management
  • Updated rewards columns to display Shopify integration status
  • Enhanced reward edit page to support Shopify reward configuration
Shopify Settings
  • New shopify-connection-card component for managing Shopify store connections
  • New shopify-linking-code-modal for establishing Shopify authentication
Models Package
  • Added complete Shopify reward redemption configuration models
  • Added Shopify-specific DTOs for queue operations
  • Added Shopify platform configuration models for organization settings
  • Added utilities for Shopify discount code generation with prefixes
Services Package
  • New ShopifyIntegrationService for managing Shopify discount and redemption workflows
  • New ShopifyApiClient for direct GraphQL communication with Shopify API
  • Updated RewardAssetService to support Shopify reward assets
  • Updated DistributionManagementService with Shopify redemption handling

Technical Highlights

Shopify Integration Architecture

The Shopify rewards integration follows a three-tier architecture:
  1. Admin Configuration - Admins select a Shopify discount in their store and configure display mode (code or link)
  2. Automatic Code Generation - When users redeem, Nudj generates unique discount codes with the configured prefix via Shopify’s GraphQL API
  3. Queue Processing - Redemptions are tracked through a dedicated queue system that logs discount code registrations

Session Management Improvements

Fixed authentication flow issues where cookie operations in Next.js Server Components were blocking proper session management. The callback handler now properly validates and restores user sessions without redundant cookie operations.

Security Updates

Removed unused Storybook dependencies (4,989 lines of dependencies removed) and updated critical packages to address Dependabot security findings. No breaking changes to public APIs.

Contributors

SaadK94@SaadK943 commits • +123/-5,035 lines

jamescockayne@jamescockayne1 commit • +1,084/-122 lines

erek_d@me.com@[email protected]1 commit • +197/-24 lines

Release Stats

MetricValue
Total Commits5
Lines Added+1,694
Lines Removed-5,175
Files Changed68
Release SizeLarge
ComplexityModerate

v2.71.3 deployed on December 10, 2025