Bug Fixes
- wrap auth() in try-catch to prevent HANGING_PROMISE_REJECTION during Next.js prerendering
- remove test-error page that breaks build, remove unused useReorderWorkflowSteps export
- prevent dialog from re-opening after enabling push notifications
- replace useEffect+setState with useMemo for ticket badge to fix lint error
- remove unused WorkflowListItem and WorkflowDetail exports
- replace template variables with admin user data in test emails
- use PageHeader component and improve skeleton loader visibility
Features
- add Workflows navigation item to admin sidebar
- add delivery stats from NotificationLog to announcements list API
- add deliveryStats type to AdminAnnouncement interface
- show push and email delivery stats column in admin table
- redesign error page with friendly animated monitor illustration and softer UX
- auto-create ticket with screenshot, breadcrumbs, and page context for bad/okay ratings
- capture screenshot and breadcrumbs, open dialog for okay rating, add manual trigger
- add migration for Workflow models
- add Workflow, WorkflowStep, WorkflowStepExecution models for onboarding flows
- add feedback banner, ticket badge on Support link, and notification dot on avatar
- add messageCount and devMessageCount to ticket list response
- add messageCount and devMessageCount to TicketItem type
- show dev message count badge on ticket cards
- add admin UI — list, create, and edit pages with InputField + TipTap editor
- add CRUD API routes and TanStack Query hooks for workflow management
- add daily cron job to process workflow steps and send emails + push
- add dedicated workflow detail page for step management with TipTap editor
- add email open tracking endpoint with 1x1 GIF pixel
- add push notification click tracking with redirect
- add test email API endpoint for workflow steps with predefined template
- add workflow step CRUD and reorder API routes
- default channel to Both, add variable chips and AI context to editor
- simplify step form — name as subject/title, auto-truncate push body, add preview and test email
