Velocity Care LLC

Changelog

Track all updates, features, and improvements to the Velocity Care Provider Dashboard

Current Version

v1.4.2v1.4.1v1.4.0v1.3.11v1.3.10v1.3.9v1.3.8v1.3.7v1.3.6v1.3.5v1.3.4v1.3.3v1.3.2v1.3.1v1.3.0v1.2.0v1.1.0v1.0.0

Latest: v1.4.2

Fixv1.4.2

Duplicate Data Cleanup and Unique Constraints

Fixed duplicate facilities and providers across the database. Removed 18 duplicate facility records (6 facilities had 4 duplicates each) and 12 duplicate provider records (12 providers had 2 duplicates each). Kept the oldest record for each duplicate group and merged all data (addresses, notes, contacts, etc.) before removing duplicates. Updated all foreign key references to point to the kept records. Added unique constraints on facilities.name and providers.name to prevent future duplicates at the database level. This ensures data integrity and prevents accidental duplicate entries.

Improvementv1.4.2

Provider Detail Card Inline Editing

Added inline editing capabilities to provider detail card for specialty, assigned facility, and flagged status fields. Users can now directly toggle and change these fields without opening the edit modal, similar to how compliance status works. All changes are saved immediately with toast notifications for feedback. This improves workflow efficiency by allowing quick updates to provider information directly from the detail view.

Improvementv1.4.1

Specialty Options Consolidation

Combined "Acute Care" and "Pulmonary" specialties into a single "Pulmo/Acute" option. Updated all provider forms, displays, seed data, and test files to use the consolidated specialty. Removed specialty formatting functions that converted "Acute Care" to "Acute Care / Pulmonary". Regional ops seed route now maps both acute and pulmonary specialties to "Pulmo/Acute". This simplifies specialty selection and better reflects the combined nature of these specialties in practice.

Fixv1.4.1

Event Modal Provider Selection Overlap Fix

Fixed overlap issue in event modal where help text was overlapping with the provider multi-select list. Changed provider tagging from dropdown to proper multi-select element with fixed height (200px). Added proper spacing (mb-3 on select, mt-3 on help text) to prevent overlap. Updated help text to include "Hold Ctrl (Cmd on Mac) to select multiple providers" instruction. Improved React state management using useRef for proper multi-select control.

Featurev1.4.0

Calendar Events System

Refactored calendar from assignments to events system. Events now support event names, addresses, time selection, and provider tagging. Changed "Add Assignment" to "Add Event" with improved form layout. Added dropdown for tagging providers (multi-select with tag chips), moved address field to prevent overlap, and added "N/A" option for facility/site. Events can now be created without requiring a provider or facility, making it perfect for director task tracking. Database schema updated to support optional providerId, facilityId, and new fields: eventName, address, time, and taggedProviders.

Fixv1.3.11

Robust AI JSON Parser

Fixed "AI returned invalid JSON" errors that occurred when Gemini API returned malformed JSON responses. Created a centralized JSON parser utility (lib/ai/json-parser.ts) that handles markdown code blocks, trailing commas, BOM characters, and other common LLM response issues. Updated all 6 AI API routes (dashboard-insights, performance-insights, predictive-analytics, provider-matching, reports, schedule-suggestions) to use the new robust parser for reliable AI response handling.

Fixv1.3.10

Calendar Mobile Display Improvements

Fixed calendar event display issues on mobile devices. Improved event rendering with better fallback handling for missing provider data, replaced question marks with meaningful initials or assignment type indicators. Enhanced mobile calendar layout with compact event cards showing provider initials, improved spacing, and better touch targets. Calendar cells now show up to 2 events on mobile with "+X more" indicator for additional events.

Fixv1.3.9

Provider Test Script HTTPS Support

Fixed provider creation test script to support HTTPS URLs. The script now conditionally uses the https module when NEXT_PUBLIC_APP_URL points to a production HTTPS domain, ensuring the test script works correctly in both local development (HTTP) and production (HTTPS) environments.

Improvementv1.3.8

Authenticated User Auto-Redirect

Added automatic redirect for authenticated users from root path to dashboard. When authenticated users navigate to the production domain root, they are now automatically redirected to the provider dashboard. This improves user experience by eliminating the need to manually navigate to the dashboard after authentication. The redirect is handled server-side in middleware for optimal performance.

Improvementv1.3.8

Provider Creation Test Script

Added automated test script for provider creation functionality. The script tests creating providers with minimal and full field sets, validates required field checks, and verifies created providers appear in GET requests. Located at scripts/test-provider-creation.js, this tool helps ensure provider creation API reliability.

Fixv1.3.7

Authentication Redirect Loop Fix

Fixed critical redirect loop issue after sign-in. Migrated client-side Supabase client from @supabase/supabase-js (localStorage) to @supabase/ssr createBrowserClient (cookies) to ensure proper session synchronization between client and middleware. Fixed sign-in page useEffect to prevent infinite redirects. Improved cookie synchronization with proper delays before redirect. Both client and middleware now use cookie-based sessions for secure, synchronized authentication state.

Fixv1.3.6

Sign-In Redirect Fix

Fixed redirect after sign-in not working properly. Added session verification loop to ensure session is established before redirecting. Properly decodes URL-encoded redirect parameters and uses full page reload to ensure middleware recognizes authenticated session.

Featurev1.3.6

Auth Error Handler

Added authentication error handler to display user-friendly toast notifications for auth errors like expired email links, access denied, and other authentication issues. Errors are parsed from URL hash and displayed with clear messages.

Featurev1.3.5

Sign Up Toast Notification

Added toast notification after successful account creation. Users now see a success message confirming their account was created and are redirected to the sign-in page.

Improvementv1.3.4

Footer and Contact Section Cleanup

Removed address and hours sections from footer and contact section. Updated footer grid layout from 4 columns to 3 columns. Contact section now only displays phone and email for cleaner, more focused contact information.

Improvementv1.3.3

Auth Pages Shader Background

Added animated shader gradient background to sign-in and sign-up pages for consistent branding. Updated pages with theme-aware styling, glassmorphic card design, logo with back-to-home link, and proper dark/light mode support.

Improvementv1.3.3

Mobile Background Enhancement

Enhanced landing page background to maintain colorful gradients on all screen sizes. Desktop shows animated MeshGradient shader, while mobile displays static but colorful radial gradients for better performance. Users with reduced-motion preference get a simple fallback gradient.

Featurev1.3.3

Password Reset and Sign Up Links

Added "Forgot password?" link to sign-in page next to password field and "Sign up" link at bottom of form. Created complete forgot password flow with forgot-password and reset-password pages. Added password reset functions (resetPassword, updatePassword) to client auth utilities. Users can now recover forgotten passwords via email and create new accounts directly from sign-in page.

Fixv1.3.2

Hydration Mismatch Error Resolution

Fixed React hydration errors caused by server/client HTML mismatch in theme-dependent components. Added mounted state checks and suppressHydrationWarning to all components (header, hero-content, services-section, about-section, contact-section, footer) to ensure consistent rendering. Components now default to dark theme during SSR and update to correct theme after client mount.

Fixv1.3.1

Mobile Menu Header Fix

Fixed mobile hamburger menu dropdown not appearing when clicked. Removed overflow-x-hidden from header element which was clipping the absolutely positioned dropdown menu.

Featurev1.3.0

Comprehensive Documentation

Created complete developer documentation suite prepared by Defendre Capital LLC for project handoff. Includes: API Reference (43 endpoints), Database Schema (23 tables), Authentication Guide, AI Features Documentation, Component Documentation, Deployment Guide, and Architecture Overview. All documentation is located in the /docs directory.

Featurev1.3.0

Database Schema Completion

Added missing database tables: feedback table for feature feedback and general feedback, default_categories table for document/task/interaction categories, and communication_logs table for storing AI-generated and manual communications. All tables now properly defined in schema with RLS support.

Fixv1.2.0

Mobile Menu Fix

Fixed mobile hamburger menu not appearing on the home page. The dropdown menu was being clipped by overflow-x-hidden on parent containers. Changed to overflow-x-clip to allow vertical dropdown while preventing horizontal overflow.

Securityv1.2.0

Row Level Security Enabled

Enabled Row Level Security (RLS) on 18 Supabase database tables including providers, facilities, tasks, documents, and more. Added open access policies for authenticated operations.

Improvementv1.2.0

Provider API Validation

Enhanced provider creation endpoint with comprehensive input validation. Now validates required fields (name, specialty), normalizes empty strings to null for optional fields, and provides detailed error messages for better debugging.

Featurev1.2.0

RLS Enable API Endpoint

Added /api/enable-rls endpoint to programmatically enable Row Level Security on all database tables with open access policies.

Featurev1.2.0

Supabase MCP Integration

Added Supabase MCP server configuration for enhanced database management and debugging capabilities.

Improvementv1.1.0

Code Quality Improvements

Removed debug console.log statements from production code in the dashboard. Cleaned up logging to only include error logging for better production performance and cleaner console output.

Fixv1.1.0

Calendar Assignment Input Validation

Added comprehensive input validation to calendar assignment creation endpoint. Now validates required fields (date, providerId, facilityId), validates date format (YYYY-MM-DD), and provides helpful error messages with details for better user experience.

Improvementv1.1.0

Standardized API Error Responses

Standardized error response format across all API routes. Changed from inconsistent "message" field to unified "details" field. Improved error handling in PUT and DELETE handlers with consistent error details and stack traces in development mode. Updated routes: calendar-assignments, tasks, documents, facilities, prompts, weekly-assignments, and performance-metrics.

Featurev1.0.0

Supabase Authentication Implementation

Implemented Supabase Auth to replace Clerk authentication. Added email/password sign-in and sign-up pages, route protection middleware, and updated all auth components. Configured for production domain https://www.velocitycarellc.com.

Improvementv1.0.0

Auth Architecture Refactoring

Split authentication utilities into separate client and server modules to fix build errors and improve code organization. Created lib/auth/client.ts and lib/auth/server.ts for better separation of concerns.

Featurev1.0.0

Production Deployment Documentation

Added comprehensive production deployment guide with Supabase configuration instructions for both development and production environments.

Featurev1.0.0

Changelog Page

Created changelog page to track all updates, features, and improvements to the dashboard.

Featurev1.0.0

Error Boundary

Added error boundary component to gracefully handle runtime errors and provide user-friendly error messages.

Stay Updated

This changelog is automatically updated with each release. Check back regularly for the latest updates and improvements.