Commit Graph

10 Commits

Author SHA1 Message Date
Andrei
e867f98da3 Fix bulk CSV processing and improve user registration
- Fix bulk CSV upload functionality that was returning HTML errors
- Implement proper project/organization handling for logged-in vs anonymous users
- Update user registration to create unique Default Organization and Default Project
- Fix frontend API URL configuration for bulk upload endpoints
- Resolve foreign key constraint violations in bulk processing
- Update BulkProcessorService to use in-memory processing instead of Redis
- Fix redirect-tracker service to handle missing project IDs properly
- Update Prisma schema for optional project relationships in bulk jobs
- Improve registration form UI with better password validation and alignment
2025-08-23 21:30:06 +00:00
Andrei
df3ad8b194 Fix URL auto-completion in re-track and analyze forms
- Add useLocation and useEffect to TrackingPage to pre-fill URL and method from navigation state
- Add useLocation and useEffect to AnalysisPage to pre-fill URL from navigation state
- Users can now click 'Re-track URL' or 'Analyze URL' from check detail pages and forms are automatically populated
- Improves user workflow by eliminating manual URL retyping
- Maintains type safety with proper TypeScript interfaces for location state
2025-08-23 20:21:17 +00:00
Andrei
634636a03e Fix dashboard authentication and routing issues
- Fix NODE_ENV=production cookie security issue for local development
- Add production API URL configuration (.env.production)
- Enable SPA routing with serve -s flag for frontend
- Fix React hooks violation in DashboardPage (error #310)
- Move useQuery hooks before conditional returns
- Rebuild frontend with all fixes applied

Resolves dashboard 401 errors, 404 routing issues, and React error #310
2025-08-23 19:53:33 +00:00
Andrei
f797f9b07c feat: Simplify home page and remove tracking form
- Remove complex tracking form from home page
- Replace with clean 'Analyze URL Redirects' call-to-action button
- Remove announcement badge '🚀 URL Tracker Tool V2 - Now Available'
- Clean up unused imports and form-related code
- Direct users to dedicated /track page for full functionality
- Improve user experience with cleaner, more focused home page

Changes:
- Simplified HomePage component with single CTA button
- Removed form validation, mutation handling, and result display
- Maintained all tracking functionality on /track page
- Professional appearance without promotional clutter
2025-08-23 19:07:02 +00:00
Andrei
6e41d9874d feat: Add Google Analytics integration and fix anonymous tracking
- Add Google Analytics tracking (G-ZDZ26XYN2P) to frontend
- Create comprehensive analytics utility with event tracking
- Track URL submissions, analysis results, and user authentication
- Add route tracking for SPA navigation
- Fix CORS configuration to support both localhost and production
- Fix home page tracking form to display results instead of auto-redirect
- Add service management scripts for easier deployment
- Update database migrations for enhanced analysis features

Key Features:
- Anonymous and authenticated user tracking
- SSL/SEO/Security analysis event tracking
- Error tracking for debugging
- Page view tracking for SPA routes
- Multi-origin CORS support for development and production
2025-08-23 17:45:01 +00:00
Andrei
58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00
Andrei
76f3cf22d1 fix: resolve production deployment issues and switch to in-memory rate limiting
- Fix CORS configuration to use CORS_ORIGIN env variable
- Switch from Redis-based to in-memory rate limiting for stability
- Fix frontend authentication error handling for public API
- Disable problematic trackingRateLimit middleware
- Update environment configuration for production

This resolves hanging issues with tracking API and enables
frontend forms to work properly on production.
2025-08-19 18:25:48 +00:00
Andrei
e698f53481 feat(phase-4): implement modern Chakra UI frontend with comprehensive tracking interface
🎨 Modern React Frontend:
- Complete Chakra UI integration with custom theme and dark/light mode
- Responsive design with mobile-first navigation and layout
- Beautiful component library with cards, forms, and data visualization
- Professional typography and color system with brand consistency

🚀 Advanced URL Tracking Interface:
- Comprehensive tracking form with real-time validation using React Hook Form + Zod
- Advanced options panel with configurable parameters (max hops, timeout, headers)
- SSL, SEO, and security analysis toggles with user-friendly controls
- Smart URL normalization and method selection interface

📊 Rich Results Visualization:
- Interactive tracking results with hop-by-hop analysis tables
- Performance metrics with latency visualization and progress bars
- Status badges with color-coded redirect types and HTTP status codes
- Comprehensive error handling and user feedback system

🧭 Navigation & Layout:
- Responsive navigation bar with user authentication state
- Mobile-friendly drawer navigation with touch-optimized interactions
- Professional footer with feature highlights and API documentation links
- Breadcrumb navigation and page structure for optimal UX

🔐 Authentication Integration:
- Complete authentication context with JWT token management
- User registration and login flow preparation (backend ready)
- Protected routes and role-based access control framework
- Session management with automatic token refresh and error handling

🌟 User Experience Features:
- Toast notifications for all user actions and API responses
- Loading states and skeleton screens for smooth interactions
- Copy-to-clipboard functionality for tracking IDs and results
- Tooltips and help text for advanced features and configuration

📱 Responsive Design:
- Mobile-first design approach with breakpoint-aware components
- Touch-friendly interfaces with appropriate sizing and spacing
- Optimized layouts for desktop, tablet, and mobile viewports
- Accessible design with proper ARIA labels and keyboard navigation

🔧 Developer Experience:
- TypeScript throughout with comprehensive type safety
- React Query for efficient API state management and caching
- Custom hooks for authentication and API interactions
- Modular component architecture with clear separation of concerns

🎯 API Integration:
- Complete integration with all v2 API endpoints
- Real-time health monitoring and status display
- Backward compatibility with legacy API endpoints
- Comprehensive error handling with user-friendly messages

Ready for enhanced dashboard and analysis features in future phases!
2025-08-18 08:29:08 +00:00
Andrei
459eda89fe feat(phase-1): implement PostgreSQL + Prisma + Authentication system
Core Features:
- Complete Prisma database schema with all entities (users, orgs, projects, checks, etc.)
- Production-grade authentication service with Argon2 password hashing
- JWT-based session management with HttpOnly cookies
- Comprehensive auth middleware with role-based access control
- RESTful auth API endpoints: register, login, logout, me, refresh
- Database seeding with demo data for development
- Rate limiting on auth endpoints (5 attempts/15min)

Technical Implementation:
- Type-safe authentication with Zod validation
- Proper error handling and logging throughout
- Secure password hashing with Argon2id
- JWT tokens with 7-day expiration
- Database transactions for atomic operations
- Comprehensive middleware for optional/required auth
- Role hierarchy system (MEMBER < ADMIN < OWNER)

Database Schema:
- Users with secure password storage
- Organizations with membership management
- Projects for organizing redirect checks
- Complete audit logging system
- API key management for programmatic access
- Bulk job tracking for future phases

Backward Compatibility:
- All existing endpoints preserved and functional
- No breaking changes to legacy API responses
- New auth system runs alongside existing functionality

Ready for Phase 2: Enhanced redirect tracking with database persistence
2025-08-18 07:25:45 +00:00
Andrei
956f1aeadb feat(phase-0): setup Docker Compose with TypeScript monorepo structure
- Create monorepo structure with apps/ and packages/
- Add Docker Compose for api, web, db, redis, worker services
- Migrate existing Express.js logic to TypeScript with 100% backward compatibility
- Preserve all existing API endpoints (/api/track, /api/v1/track) with identical behavior
- Setup development environment with hot reload and proper networking
- Add comprehensive TypeScript configuration with path mapping
- Include production-ready Dockerfiles with multi-stage builds
- Maintain existing rate limiting (100 req/hour/IP) and response formats
- Add health checks and graceful shutdown handling
- Setup Turbo for efficient monorepo builds and development
2025-08-18 07:03:08 +00:00