Documentation Index
Fetch the complete documentation index at: https://docs.litigationlabs.io/llms.txt
Use this file to discover all available pages before exploring further.
Clerk Authentication Migration
Full NextAuth to Clerk Transition
- Replaced NextAuth with Clerk for user authentication across the entire application
- Updated all API routes to utilize Clerk’s authentication methods
- Refactored components to align with new authentication strategy
Waitlist System
- Introduced waitlist functionality replacing early access mechanism
- Users can request access via email with integrated
joinWaitlistAPI from Clerk - Configurable
WAITLIST_ENABLEDflag to toggle between waitlist and direct login
Email Templates
- Created branded HTML email templates for Clerk integration: verification, invitation, magic-link, password-reset, verification-code, and waitlist-confirmation
Session Review System
Review Dashboard
- New
/dashboard/reviewroute displaying all user sessions as filterable cards - Date grouping: Today, Yesterday, This Week, or Month/Year for older sessions
- Infinite scroll pagination with 12 initial sessions
ReviewSessionList Component
- Filtering by status (all, completed, in-progress)
- Sorting by date or score with ascending/descending toggle
- Skeleton loaders for improved loading states
SessionReviewPanel
- Tabbed navigation with direction-aware animations
- Five tabs: Overview, Objections, Witnesses, Insights, Transcript
- AI-powered insights generation
Case Completion Flow
- Modal displayed when all witnesses are examined in a simulation
- Animated trophy icon with spring physics on completion
- Final score preview and navigation to session review
Skill Progress Visualization
SkillProgressChart Component
- Area bump chart displaying skill progression across sessions using
@nivo/bump - Five tracked metrics: Examination Quality, Objection Accuracy, Defense Against Objections, Question Efficiency, Overall Score
- DaisyUI color-coded series with theme-aware updates
Skill Progress API
/api/user/skill-progressendpoint returning series data and session labelshasEnoughDataflag for hiding chart when insufficient sessions exist
UI/UX Enhancements
- Replaced “Favorites” with “Bookmarks” terminology and icons throughout
- Header blur effect and scroll fade disabled during modal interactions
- Button style consistency updates (
btn-primaryinstead ofbtn-success)
Witness Examination Refinements
- Larger textarea for key facts input in WitnessCard
- Temporary expansion in WitnessToolbar when new elicits are covered
- Elicit polarity scoring with new utility functions
Examination Logic Refinements
- Separated elicit-based and rebuttal-based progress tracking
- Option to skip opposing counsel responses, streamlining to judge rulings
- Differentiated instructions for direct and cross-examination scenarios
Backend & Infrastructure
- Changed database imports from
drizzle-ormto@payloadcms/db-postgres - Added
@nivo/bumpand@nivo/corefor data visualization - Excluded
scriptsdirectory from TypeScript compilation - Admin access verification added to GitHub and Linear API routes