-
Story
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Add comprehensive analytics tracking for all base images management features to measure adoption and usage.
Implementation Details:
- Add analytics event constants and implementations using useAnalytics hook
- Track all base images modal interactions and outcomes
- Include error types in failure events for debugging
- Follow existing analytics patterns from watched images feature
Events to Implement:
1. BASE_IMAGES_MODAL_OPENED - When user clicks "Base images" in dropdown
2. BASE_IMAGE_SUBMITTED - When user submits form to add base image
3. BASE_IMAGE_ADD_SUCCESS - When POST /v2/baseimages succeeds
4. BASE_IMAGE_ADD_FAILURE - When POST /v2/baseimages fails (include errorType property)
5. BASE_IMAGE_REMOVED - When DELETE /v2/baseimages succeeds
Acceptance Criteria:
- All events fire at the correct times in the user flow
- Error type included in failure events (INVALID_IMAGE_NAME, NO_VALID_INTEGRATION, SCAN_FAILED, DUPLICATE_PATTERN)
- Events follow naming convention consistent with watched images events
- Events are properly tracked in Amplitude
- No PII or sensitive data included in event properties