Skip to content

Latest commit

Β 

History

History
319 lines (224 loc) Β· 12.4 KB

File metadata and controls

319 lines (224 loc) Β· 12.4 KB

Changelog

All notable changes to MentoLoop will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Critical Fixes

  • Payment Flow: Resolved race conditions in paymentAttemptId handling to ensure reliable transaction completion.
  • Type Safety: Hardened payments, students, and clinicalHours services with stricter type definitions and null checks.
  • Test Stability: Fixed flakiness in StudentDocumentsPage tests to ensure consistent CI/CD pass rates.

UI Alignment

  • Enforced semantic color tokens across billing dashboard components; removed legacy hex colors and gradients.
  • Added token-rich variants to Badge, Button, Alert, and Card primitives plus new DashboardCard helpers.
  • Updated landing features carousel and animated list to consume semantic gradients via BentoGridItem theme prop.
  • Aligned Clerk theme variables with project tokens.
  • Introduced ESLint/CI guardrails (check-semantic-colors) to block fixed Tailwind hues and hex values.
  • Added Playwright coverage (dashboard-theme.spec.ts) ensuring key routes render semantic tokens.

Hardening

  • Tests stabilized and QA prior to deploy
    • Unit/integration tests green; Playwright browsers installed
    • Messages page a11y/empty states verified; auto-selects first conversation
    • Component tests updated for new messages data shape; mocks aligned
    • Minor typing cleanup to reduce eslint warnings in admin finance

Payments/Stripe

  • Webhook signature verification with idempotent dedupe via webhookEvents
  • Consistent idempotency keys for customer/session/subscription writes
  • New internal insertPaymentRecord mutation; actions route writes through internal mutations

GPT‑5 Guardrails

  • /api/gpt5, /api/gpt5/documentation, /api/gpt5/function set Cache-Control: no-store
  • Sanitized logs to avoid PHI/PII; PHI validators preserved; per-user rate limits

Performance

  • Preceptors page keeps lazy background and skeleton states; no layout jank observed

Compliance/Security

  • Guarded student intake logs in production; reduced risk of PHI in server logs

0.9.8

  • Supabase cutover: enabled dual-write for intake/match attempts and refunds; validated and flipped reads to supabase via NEXT_PUBLIC_DATA_LAYER.
  • Added missing Supabase 0001 tables and reran 0002 backfill with convex_id lookup indexes.
  • Added unit tests for refund dual-write and confirm-session Supabase mode.
  • Deployment: set Supabase + Clerk env vars in Netlify and retried build.

0.9.7

  • UI polish and stability improvements.

πŸŽ‰ Initial Public Release

MentoLoop - Healthcare Mentorship Platform

A comprehensive platform designed specifically for nursing education, connecting students with experienced preceptors through AI-powered matching and real-time communication.

✨ Core Features Added

πŸ₯ Healthcare-Focused Platform

  • AI-Powered Matching: MentorFitβ„’ algorithm with OpenAI/Gemini enhancement for optimal student-preceptor pairing
  • Student Management: Complete intake workflow with MentorFit assessment and rotation tracking
  • Preceptor Management: Credential verification, availability management, and student evaluation tools
  • Clinical Hours Tracking: Comprehensive logging, approval workflow, and progress analytics
  • Real-time Messaging: HIPAA-compliant communication with file attachments

πŸ” Authentication & Security

  • Clerk Authentication: Complete user management with role-based access control
  • HIPAA Compliance: Healthcare data protection and privacy controls
  • FERPA Compliance: Student educational record privacy
  • Audit Logging: Comprehensive tracking of sensitive operations
  • Role-Based Access: Student, Preceptor, Admin, and Enterprise admin roles

πŸ’¬ Communication Features

  • Real-time Messaging: Secure communication between students and preceptors
  • File Attachments: Document sharing with security controls
  • Email Automation: SendGrid integration for notifications and workflows
  • SMS Notifications: Twilio integration for important alerts
  • Automated Communications: Template-based messaging system

πŸ€– AI Integration

  • OpenAI GPT-4: Primary AI provider for matching algorithm enhancement
  • Google Gemini Pro: Alternative AI provider for redundancy
  • MentorFit Assessment: 10-question compatibility analysis
  • Intelligent Matching: Learning style and teaching style compatibility
  • Real-time Optimization: Continuous improvement of matching accuracy

πŸ“Š Analytics & Reporting

  • Progress Tracking: Student advancement and clinical hour completion
  • Performance Analytics: Matching success rates and user engagement
  • Survey System: Post-rotation feedback and quality improvement
  • Dashboard Insights: Real-time data visualization with Recharts
  • Compliance Reporting: Audit logs and regulatory compliance tracking

πŸ›οΈ Enterprise Features

  • Multi-School Management: Support for multiple educational institutions
  • Enterprise Administration: School-level user and program management
  • Bulk Operations: Mass student/preceptor import and management
  • Custom Branding: School-specific themes and configurations
  • Integration APIs: Future LMS and hospital system connectivity

πŸ› οΈ Technical Architecture

Frontend Stack

  • Next.js 15: Latest React framework with App Router and Server Components
  • TailwindCSS v4: Modern utility-first CSS with custom design system
  • TypeScript: Full type safety throughout the application
  • shadcn/ui: Modern, accessible component library
  • Radix UI: Accessible component primitives
  • Framer Motion: Smooth animations and micro-interactions

Backend & Database

  • Convex: Real-time database with serverless functions
  • Real-time Sync: Live updates across all connected clients
  • Serverless Functions: Scalable backend operations
  • Type-Safe APIs: End-to-end type safety with Convex
  • Automatic Scaling: Cloud-native architecture

Third-Party Integrations

  • Clerk: Authentication and user management
  • SendGrid: Email automation and templates
  • Twilio: SMS notifications and alerts
  • OpenAI: AI-enhanced matching capabilities
  • Google Gemini: Alternative AI provider
  • Stripe: Payment processing for enterprise features

Development & Testing

  • Vitest: Modern unit testing framework
  • Playwright: End-to-end testing for user workflows
  • Testing Library: Component testing utilities
  • TypeScript: Compile-time error checking
  • ESLint: Code quality and consistency
  • Turbopack: Fast development builds

πŸ“± Platform Support

Web Application

  • Desktop Browsers: Chrome, Firefox, Safari, Edge
  • Mobile Browsers: iOS Safari, Android Chrome
  • Responsive Design: Mobile-first approach with PWA capabilities
  • Accessibility: WCAG 2.1 AA compliance
  • Performance: Optimized for healthcare environments

Future Mobile App

  • React Native: Planned native mobile applications
  • Offline Capability: Critical features available offline
  • Push Notifications: Real-time alerts and updates
  • Biometric Authentication: Enhanced security for mobile access

πŸ”’ Security & Compliance

Healthcare Compliance

  • HIPAA Compliance: Protected Health Information safeguards
  • FERPA Compliance: Educational record privacy protection
  • Audit Logging: Comprehensive activity tracking
  • Data Encryption: End-to-end encryption for sensitive data
  • Access Controls: Role-based permissions and authentication

Security Measures

  • Input Validation: Protection against injection attacks
  • Rate Limiting: API abuse prevention
  • Session Management: Secure authentication tokens
  • Environment Security: Secrets management and configuration
  • Regular Security Audits: Automated and manual security testing

πŸ“‹ Database Schema

Core Tables

  • Users: Clerk-synced user profiles and roles
  • Students: Student-specific data and preferences
  • Preceptors: Preceptor profiles and credentials
  • Matches: Student-preceptor relationships and status
  • Clinical Hours: Time tracking and approval workflow
  • Messages: Real-time communication history
  • Surveys: Feedback and evaluation system
  • Audit Logs: Compliance and security tracking

Enterprise Tables

  • Enterprises: Multi-school management
  • Payments: Subscription and billing tracking
  • Settings: System and school-specific configuration

πŸš€ Performance Optimizations

Frontend Performance

  • Code Splitting: Lazy loading of route components
  • Image Optimization: Next.js automatic image processing
  • Bundle Analysis: Size monitoring and optimization
  • Caching Strategies: Efficient data fetching and storage
  • Loading States: Smooth user experience during async operations

Backend Performance

  • Database Indexing: Optimized query performance
  • Real-time Sync: Efficient WebSocket connections
  • Function Caching: Convex query result optimization
  • Rate Limiting: Resource protection and fair usage

πŸ“– Documentation

Developer Documentation

  • README.md: Comprehensive setup and usage guide
  • CONTRIBUTING.md: Development guidelines and processes
  • CODE_OF_CONDUCT.md: Community standards and behavior
  • API Documentation: Complete endpoint and function reference
  • Architecture Guide: System design and technical decisions

User Documentation

  • User Guides: Role-specific platform usage instructions
  • FAQ: Common questions and troubleshooting
  • Video Tutorials: Step-by-step feature demonstrations
  • Best Practices: Healthcare education workflow optimization

πŸ§ͺ Testing Coverage

Automated Testing

  • Unit Tests: Component and utility function testing
  • Integration Tests: API and database interaction testing
  • End-to-End Tests: Complete user workflow validation
  • Performance Tests: Load testing and optimization
  • Security Tests: Vulnerability scanning and compliance checks

Manual Testing

  • User Acceptance Testing: Healthcare professional validation
  • Accessibility Testing: Screen reader and keyboard navigation
  • Cross-Browser Testing: Compatibility across platforms
  • Mobile Testing: Responsive design and touch interactions

🌟 Notable Achievements

  • Healthcare Focus: Built specifically for nursing education needs
  • Compliance Ready: HIPAA and FERPA compliant from day one
  • AI-Enhanced: Advanced matching algorithm with multiple AI providers
  • Real-time: Live updates and communication throughout the platform
  • Scalable: Cloud-native architecture supporting growth
  • Accessible: WCAG 2.1 AA compliance for inclusive design
  • Open Source: MIT licensed for community contribution

πŸ”„ Migration Notes

This is the initial public release. No migration required.

πŸ› Known Issues

  • Screenshots in README are placeholders pending real application screenshots
  • Some email templates may need customization for specific school branding
  • Mobile app is planned for future release

🎯 Next Release Preview

Planned for v1.0.0

  • Mobile Applications: Native iOS and Android apps
  • Advanced Analytics: Enhanced reporting and insights
  • LMS Integration: Canvas, Blackboard, and Moodle connectivity
  • Video Calling: Integrated video consultation capabilities
  • Advanced Scheduling: Complex rotation and clinical scheduling
  • API Endpoints: Public API for third-party integrations

Release Process

Version Numbering

  • Major (X.0.0): Breaking changes or significant new features
  • Minor (0.X.0): New features and enhancements
  • Patch (0.0.X): Bug fixes and minor improvements

Release Schedule

  • Major Releases: Quarterly (Q1, Q2, Q3, Q4)
  • Minor Releases: Monthly
  • Patch Releases: As needed for critical fixes
  • Security Releases: Immediate for critical vulnerabilities

Changelog Guidelines

  • All notable changes are documented
  • Organized by Added, Changed, Deprecated, Removed, Fixed, Security
  • Healthcare-specific impacts are highlighted
  • Breaking changes are clearly marked
  • Migration instructions provided when needed

For detailed technical documentation, see docs.mentoloop.com