cpns / packages /api /src /__tests__

Commit History

Rename project from Labas to Pram
2b62b0c

pramudya-yb commited on

feat: integrate Cloudflare Turnstile for enhanced security in sign-up and email verification processes. Implement rate limiting for sign-up attempts and add Turnstile validation to prevent abuse. Update environment configuration to support Turnstile keys and enhance user experience with improved error handling and feedback.
83e82db

rogasper commited on

feat: implement PasswordInput component for enhanced password handling in sign-in and sign-up forms. Update forms to utilize the new component, improving user experience with password visibility toggle and validation feedback.
f68b7db

rogasper commited on

feat: improve JSON parsing and error handling by introducing isLikelyTruncatedJson function to detect incomplete JSON responses. Update client logic to handle truncation retries more effectively and enhance error messaging for truncated responses. Add tests to validate new functionality and ensure robust error reporting.
df94b74

rogasper commited on

feat: enhance question repair and parsing logic by introducing strict explanation checks. Update related functions to support lenient parsing options, improving flexibility in question validation. Adjust tests to verify behavior under different explanation strictness settings.
62fdec8

rogasper commited on

feat: refactor AI response handling by introducing parseAiJsonResponse and related utilities to improve JSON parsing and error handling. Streamline response processing in client and pipeline modules, enhancing robustness against HTML error pages and reasoning blocks. Add tests for new parsing functions to ensure reliability.
ff49634

rogasper commited on

feat: add db:seed command to package.json and update README.md for seeding reference data. Enhance job status handling in generation logic to support completed_partial status, improving error reporting and user feedback. Introduce new utility functions for job outcome resolution and non-retryable error detection, along with corresponding tests. Update database migration scripts to include new tables and fields for improved data management.
ef46e44

rogasper commited on

feat: refactor AttemptResultComponent to calculate percentage based on question statistics instead of attempt scores. Update integration tests to validate maxScore calculation across multiple sections. Ensure proper type handling for question counts in attempt router, enhancing data integrity and performance.
dee29ff

rogasper commited on

feat: implement admin panel with multiple routes for user management, credits, jobs, and content moderation. Add admin dashboard for platform overview and integrate visibility controls for featured content. Enhance sidebar navigation for admin access and ensure proper session handling for admin users.
bede2fc

rogasper commited on

feat: enhance testing capabilities and introduce new components for question management. Add testing section in AGENTS.md with instructions for running tests and configuring the test environment. Update package.json files to include test scripts and integrate @electric-sql/pglite for in-memory database testing. Introduce CalloutCard and update FilterBar and SoalBrowser components to support visibility filters for private and public questions. Implement new test cases for various functionalities across the application.
92a1d83

rogasper commited on