Commit graph

14 commits

Author SHA1 Message Date
iamcoolvivek007
e9025a71eb v2.0: Major improvements - Security, Code Quality, UI/UX, Features
Security:
- Add CSRF protection on all forms
- Fix session config (resave:false, saveUninitialized:false)
- Secure cookie settings for production
- Input sanitization middleware
- Request logging middleware
- Security headers via Helmet

Code Quality:
- Async error handling on ALL route handlers
- Proper HTTP status codes (400, 401, 403, 404, 409, 500)
- Input validation on all forms (server-side)
- Username validation (3-30 chars, alphanumeric+underscore)
- Password min length increased to 6
- Generic error messages (no info leakage)
- Graceful shutdown on SIGTERM

UI/UX:
- Dark mode toggle with persistence
- Toast notifications for success/error
- Loading states on form submit
- Improved CSS with CSS variables
- Better desktop responsive design
- New 403 Forbidden page
- Pagination controls
- Improved header with desktop nav

Features:
- Pagination on all list pages (loads, trips, users, messages, etc.)
- Admin stats JSON endpoint
- Admin user delete route
- Load cancel route
- Mark invoice as paid route
- Search/filter preserved on loadboard

Database:
- Additional composite indexes for performance
- Updated timestamps trigger on trips
- Improved FULL migration script

DevEx:
- Development seed script (seed.js)
- Improved Dockerfile (non-root, healthcheck)
- Comprehensive .gitignore
- Updated README v2.0
2026-05-31 18:08:01 +00:00
ed320e82c1 feat: add 35+ features - i18n, voice input, gamification, driver tools, marketplace
- Multi-language support (English, Hindi, Tamil, Telugu) with icon-based UI
- Voice input (Web Speech API) for low-literacy users
- Driver tools: Ledger, Trip Planner, Return Load, Safety, Maintenance, FASTag
- Marketplace: WhatsApp share, Rate Intelligence, Classifieds, Fleet
- Engagement: Gamification (XP/Levels), Challenges, Leaderboard, Referrals, Feed
- Business: Invoice (GST+UPI), Reports+CSV, Notifications, Documents, Bank
- Games: Rate Guesser, Route Quiz
- SEO: Sitemap, public load share pages with OG tags
- India utilities: vehicle validation, UPI links, toll/fuel calculator
- 29 routes, 54 templates, 4 languages, 3 migration files
2026-05-31 09:19:16 +00:00
60415a02fa Fix: add HTML head with CSS link to header partial 2026-05-31 07:23:23 +00:00
9a5177e124 Fix: listen on IPv6 (::) so Coolify healthcheck wget to [::1] works 2026-05-31 07:20:05 +00:00
22c4fc2356 HEALTHCHECK NONE - explicitly disable Docker healthcheck 2026-05-31 07:17:01 +00:00
5e8650b53d Disable healthcheck completely for Coolify 2026-05-31 07:11:09 +00:00
fa24c72d7f Fix: secure cookie disabled (Coolify handles HTTPS), fix admin password hash 2026-05-31 07:09:07 +00:00
68afbb26b7 Remove healthcheck from Dockerfile - let Coolify handle it 2026-05-31 06:53:30 +00:00
6cbf8448c1 Fix: install curl for healthcheck, wget uses IPv6 on alpine 2026-05-31 06:49:14 +00:00
527fb237e9 Fix healthcheck: use 127.0.0.1 instead of localhost (IPv6 issue) 2026-05-31 06:45:14 +00:00
3af6dcacdf Add .env file with Supabase credentials for deployment 2026-05-31 06:40:54 +00:00
2d695c6090 Fix: accept NEXT_PUBLIC_ env var names for Supabase 2026-05-31 06:36:39 +00:00
a728235882 Add root Dockerfile for Coolify deployment 2026-05-31 06:25:23 +00:00
394117dd74 BharathTrucks MVP - 6 sprints complete
- Govt-app styled freight marketplace
- Role-based auth (driver/shipper/broker/admin)
- Load board with bidding system
- Trip tracking with status flow
- In-app messaging
- Admin panel
- Mobile bottom nav + PWA
- Docker + Coolify ready
2026-05-31 06:21:13 +00:00