queue-med/todo.md

3.8 KiB
Raw Permalink Blame History

QueueMed Project TODO

Phase 3 : Schéma DB & Design System

  • Schéma Drizzle : tables users, clinics, queue_entries, subscriptions, analytics_events
  • Migration DB (pnpm db:push)
  • Design system : palette teal/orange cinématique dans index.css
  • Polices Google Fonts (Inter + Space Grotesk)

Phase 4 : Landing Page & Auth Médecin

  • Landing page cinématique avec hero, features, pricing
  • Page d'inscription / connexion médecin (OAuth Manus)
  • Middleware de vérification d'abonnement (trial/active/blocked)
  • Page de blocage abonnement expiré

Phase 5 : Dashboard Médecin & QR Code

  • Dashboard médecin principal avec stats
  • Gestion multi-cabinets (CRUD clinics)
  • Génération QR code unique/aléatoire par cabinet (rotation anti-triche)
  • Interface gestion file d'attente (appel prochain, skip, fermer)
  • Affichage numéro en cours et temps estimé

Phase 6 : Interface Patient & Écran d'Affichage

  • Page patient après scan QR code (sans compte requis)
  • Affichage position en temps réel dans la file
  • Estimation du temps d'attente en live
  • Écran d'affichage tablette/moniteur (route /display/:clinicId)
  • WebSocket server (Socket.io) pour mises à jour temps réel
  • Connexion WebSocket côté patient et écran d'affichage

Phase 7 : Stripe & Abonnement

  • Plans d'abonnement mensuel (Basic 29€, Pro 59€)
  • Gestion essai gratuit 1 mois (auto-création à la première connexion)
  • Page de paiement et gestion abonnement dans le dashboard
  • Blocage automatique après expiration (subscriptionProcedure middleware)
  • Intégration Stripe réelle (webdev_add_feature stripe) à activer
  • Webhook Stripe pour renouvellement/expiration automatique

Phase 10 : Améliorations UX & Notifications

  • Page patient enrichie (progression animée, alertes)
  • Écran d'affichage avec animation de numéro appelé + indicateur connexion
  • Landing page : section témoignages + perspective médecin/patient
  • Export CSV des analytics par cabinet
  • README.md et MANUS_HANDOFF.md
  • Push GitHub final

Phase 8 : Analytics, Notifications & Tickets

  • Analytics : temps d'attente moyen, pics d'affluence, taux de présence
  • Graphiques recharts dans le dashboard médecin (barres, camembert)
  • Prédictions et recommandations IA basées sur l'historique
  • Impression de ticket numérique (page imprimable)
  • Attribution numéro unique pour patients sans téléphone (printTicket)
  • Notifications push/SMS (Twilio) à intégrer

Phase 9 : Tests, Audit & Documentation

  • Tests Vitest pour les procédures tRPC critiques (8 tests, 2 fichiers)
  • 0 erreur TypeScript
  • Checkpoint final et commit GitHub

Phase 11 : Finitions & Mode Opératoire

  • Page SubscriptionPage améliorée (statut essai, compte à rebours, FAQ)
  • Amélioration page PrintTicket (mise en page imprimable propre, styles @media print)
  • Mode opératoire complet (guide médecin + guide patient + déploiement) en Markdown + PDF 10 pages
  • Checkpoint final v1.2

Phase 12 : Améliorations UX & Robustesse (v1.3)

  • Favicon SVG QueueMed (croix médicale + lignes de file)
  • Manifest PWA (installable sur mobile, thème teal, langue fr)
  • index.html : meta SEO, Open Graph, preconnect Google Fonts, lang=fr
  • Onboarding wizard 3 étapes (cabinet, paramètres, succès)
  • Page Centre d'aide avec FAQ 15 questions par catégorie
  • Page Affiche QR imprimable A4 (styles @media print)
  • Dashboard : bouton onboarding pour nouveaux utilisateurs, lien Aide
  • QueueManagement : bouton Affiche QR dans section QR Code
  • clinic.create retourne l'id du cabinet créé
  • Tests Vitest : 13/13 passent (3 fichiers de test)
  • 0 erreur TypeScript
  • Checkpoint v1.3