Skip to content

Debug production type and range errors#147

Draft
austeane wants to merge 537 commits intomainfrom
cursor/debug-production-type-and-range-errors-c890
Draft

Debug production type and range errors#147
austeane wants to merge 537 commits intomainfrom
cursor/debug-production-type-and-range-errors-c890

Conversation

@austeane
Copy link
Owner

Add a guard to prevent redundant SvelteKit navigations to fix infinite loop and related errors.

The TypeError and RangeError were symptoms of an infinite navigation loop. This occurred because the filter/search logic would rebuild the URL and call goto() even when the query parameters hadn't changed, leading to rapid, recursive navigations that exceeded the call stack. The added check ensures goto() is only called when the URL's search parameters genuinely differ, breaking the loop.


Open in WebOpen in Cursor

Learn more about Background Agents

austeane and others added 30 commits March 9, 2025 04:03
- Create UserService and SkillService implementations
- Refactor drill API endpoints to use DrillService
- Enhance drag manager with improved timeline positioning
- Fix section rendering to maintain item order
- Update service layer documentation with implementation status
- Add specialized service methods for variant management and voting
- Improve error handling across service implementations

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit fixes an issue where creating a new practice plan with drills from the cart wasn't properly populating the drills in the plan sections. Changes include:

1. Modified PracticePlanForm.svelte to add all cart drills to the "Skill Building" section
2. Added data-testid attribute to DrillItem for better testability
3. Added a new Cypress test to verify the functionality

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
…ts, update .gitignore

- Moved har_cleaner.py to scripts directory
- Removed unused files (DRAG_AND_DROP.md, drills-speedup.txt, table-info.txt, etc.)
- Added tests/__pycache__, cypress/downloads, and cypress/screenshots to .gitignore
- Added code review documents

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
austeane and others added 27 commits July 19, 2025 20:55
…dead-code-stores.md

Update ticket 28 dead code stores
…dead-code-cleanup

Remove obsolete admin migration page
# Conflicts:
#	src/lib/stores/sectionsStore.js
…unctions

- Added comprehensive error handling with try-catch blocks
- Implemented backup/restore pattern for atomic operations
- Added input validation for all parameters
- Added user-friendly error messages via toast notifications
- Return boolean success/failure indicators
- Maintain data integrity on errors by restoring backup

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
- Marked conflict as resolved
- Updated Phase 3 with completion status
- Removed outdated merge instructions

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
Successfully decoupled SectionHeader and TimelineSelectorModal from sectionsStore by passing constants as props. This improves component reusability and testability.
…-filterpanel.md

Update FilterPanel basics
- Replace non-existent onErrorCaptured with window error event listeners
- Fix production error: "(0 , __vite_ssr_import_1__.onErrorCaptured) is not a function"
- Add tabbable package for focus trap functionality
- Document PR review progress for Phase 5

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed broken admin role checking by updating isAdmin() to fetch from DB
- Added setUserRole() method to actually assign admin roles
- Fixed admin route protection to check user roles, not just dev mode
- Populated user role in session from database in hooks.server.js
- Added permission helper functions and middleware
- Created admin UI for managing user roles at /admin/users
- Added comprehensive tests for new role methods
- Fixed test setup for getUserProfile with proper mocking

Critical fixes:
- Admin routes now properly check user roles
- Role is fetched and available in event.locals.user
- Admin role can be assigned through UI
- Maintains dev mode access while adding proper role-based security

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…efactor-userservice-perms

Update UserService refactor ticket
@vercel
Copy link

vercel bot commented Jul 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
qdrill ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2025 9:15am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants