Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
In brief, this PR implements the frontend interface for the new Promotional & Referral Coupon system and consolidates the Admin sidebar navigation by moving User Notifications and User Versions into intuitive tabs on their respective parent admin pages.
Why
This change is needed to support commercial coupon creation, batch generation, and checkout redemption backed by the core API in rex-9/rexone-core#97. It also resolves sidebar bloat by decluttering standalone navigation items into organized tabbed views, while eliminating raw string literals across routes and navigation state.
Changes
AdminNotificationsPage(/admin/notifications?tab=user_notifications).AdminVersionsPage(/admin/versions?tab=user_versions).AdminSidebarNav.tsx: Removed redundant top-levelUserNotificationsandUserVersionssidebar links.RouteManager.tsx: Added seamless<Navigate>redirects from legacy standalone URLs (/admin/user-notifications,/admin/user-versions) to their parent tab URLs.ADMIN_VERSION_TABS,NOTIFICATION_ADMIN_TABS).Testing
This change was verified by:
npm test— 32 test files, 290 tests passed cleanly)sh scripts/test.sh— 20 Playwright E2E tests ine2e/specs/auth/passed with 0 database cleanup remnants)Related Issues
Screenshots / Videos
Notes
rexone-coredeployed with migration20260916173000_create_coupons.rband20260916173001_create_user_coupons.rb(rexone-core#97)./admin/user-notificationsand/admin/user-versionsautomatically redirect to the appropriate tabs without breaking deep links.Checklist
README.md,ECOSYSTEM.md)