Feature/player UI xapi tracking#712
Merged
sei-awelle merged 15 commits intomainfrom May 7, 2026
Merged
Conversation
- Add teamSwitched() method to XApiService calling POST /api/xapi/switched/view/{viewId}/team/{teamId}
- Call xAPI service from setPrimaryTeam() before reloading page
- Logs team switch statement before view refresh
Team switch xAPI statement is already emitted server-side in SetPrimary.Handler, so UI-side call creates duplicates. Removed UI call to emit only once from API.
Multiple subscriptions to data$ were triggering duplicate getView() API calls, which emitted duplicate 'viewed' xAPI statements. Added shareReplay(1) to share the observable result across all subscribers.
- Add viewViewed() method to XApiService - Call from player component ngOnInit when entering view - Ensures view viewed statement only logs on component navigation, not data fetches
- Replace manual HttpClient calls with generated XApiService - Add cross-platform swagger:gen-docker script using Docker - Update to OpenAPI Generator v7.15.0 - Add cross-env and rimraf dependencies for cross-platform support - Regenerate all Player API client files with latest generator
sei-aschlackman
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add xAPI tracking UI integration for application and team switching
Integrates Player UI with xAPI tracking endpoints:
Changes:
All tracking happens via HTTP POST to Player API xAPI endpoints, which handle statement creation and LRS delivery.