feat(admin): build email preview, analytics, blockchain replay, and content management pages - #1432
Open
Grace-CODE-D wants to merge 4 commits into
Open
Conversation
|
@Grace-CODE-D Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Description
This PR resolves issues #1396, #1397, #1398, and #1399 by implementing four core Admin Dashboard pages and supporting design primitives:
Email Template Preview & Test-Send Page ([Admin Dashboard] Build email template preview and test-send page #1396)
frontend/src/app/admin/email/preview/page.tsxGET /api/v1/email/preview/:template_nameandPOST /api/v1/email/test.<iframe>(sandbox=""viasrcDoc) to ensure isolation and prevent XSS risks while permitting external resources (images/fonts) to load safely.Email Delivery Analytics Page ([Admin Dashboard] Build email analytics page #1397)
frontend/src/app/admin/email/analytics/page.tsxGET /api/v1/email/analyticsto display open, click, delivery, and bounce rates.0%/N/AwithoutNaNorInfinity.Blockchain Replay / Admin Tooling Page ([Admin Dashboard] Build blockchain replay/admin tooling page #1398)
frontend/src/app/admin/blockchain/replay/page.tsxPOST /api/blockchain/replayfor state-mutating event replays.disableBackdropDismiss={true}) and requires typing an explicit confirmation phrase (CONFIRM REPLAY).blockchain:replaypermission tier.Content Management Page ([Admin Dashboard] Build content management page #1399)
frontend/src/app/admin/content/page.tsxGET/POST /api/v1/contentusing form primitives (Form,FormField,Input,Textarea,Button).Shared Admin Primitives & Layout
frontend/src/app/admin/layout.tsx: Unified admin navigation and breadcrumbs (Create Component Library Documentation with Storybook #89).frontend/src/components/admin/Modal.tsx: Accessible focus-trapping modal with backdrop-dismiss prevention (Market Cancellation & Global Refund Logic #16).frontend/src/components/admin/Form.tsx: Reusable WCAG-compliant form primitives (Multi-Asset Support & Decimal Precision Handling #15).frontend/src/styles/admin.css: Theme-aware styling matching PredictIQ design tokens.Closes #1396
Closes #1397
Closes #1398
Closes #1399