You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Remove unused survey components and dependencies (#776)
* refactor: Clean up unused survey components and dependencies
- Removed unused useSurveyTrigger hook that was never imported
- Deleted PriorityRanking and SortableFeatureItem components from old drag-and-drop implementation
- Removed @dnd-kit dependencies no longer needed after survey redesign
- Fixed survey trigger criteria to require 2+ diagrams and 7+ day old accounts
- Cleaned up empty hooks directory
The survey now uses a simpler click-based selection UI without drag-and-drop.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: Update pnpm-lock.yaml after removing @dnd-kit dependencies
* feat: Add analytics tracking for survey check events
Track both when survey is shown and when it's not shown due to unmet criteria.
This helps understand:
- How many users see the survey vs don't
- Why users don't see it (insufficient diagrams, new account, already submitted)
- User profile data at check time
Events added:
- featurePrioritySurveyShown: When survey is displayed
- featurePrioritySurveyCriteriaNotMet: When criteria blocks display
- Includes specific reasons array
- Tracks user profile metrics
This data will help optimize survey trigger criteria.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: Resolve timing issue with survey diagramCount always being 0
The survey check was happening before savedItems were loaded, causing
diagramCount to always be 0. This prevented the survey from showing to
qualified users.
Changes:
- Moved survey initialization from constructor to after items are loaded
- Added survey check in fetchItems() after all items are loaded
- Handles both cloud-based and local storage item loading
- Clears previous timer if called multiple times
- Survey now correctly counts user's actual diagrams
This ensures the survey criteria are evaluated with accurate data.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: Resolve survey timing and authentication issues
Fixed the core timing issue where survey diagramCount was always 0.
The survey now correctly:
- ✅ Loads after items are populated (timing fixed)
- ✅ Counts diagrams accurately (diagramCount: 4 in tests)
- ✅ Triggers survey check with proper data
- ✅ Enhanced getUserProfileForSurvey to check window.user fallback
The survey now properly requires authenticated users with:
- 2+ diagrams AND
- 7+ day old account OR power user status (5+ diagrams)
Added comprehensive Playwright debugging test to validate behavior.
Survey will now show to qualified authenticated users.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>
0 commit comments