Skip to content

Conversation

@magush27
Copy link
Collaborator

Fixes in the communication history tracking functionality that was partially implemented in PR #1987. The original implementation only tracked symbol selections but was missing tracking for phrase spoken, clear action, and backspace events.

Issues Fixed
As noted in the #1987 (comment), the following tracking actions were not being called:

  • Phrase spoken events (when user plays output)
  • Clear action events (when user clears the output)
  • Backspace events (when user removes last symbol)

Additionally fixed:

  • PDF export font configuration error: File 'Roboto-Medium.ttf' not found in virtual file system

Testing

  1. Navigate to a board and select multiple symbols
  2. Click the play button to speak the phrase → Verify phrase is tracked in communication history
  3. Click the clear button → Verify clear action is tracked
  4. Select symbols and click backspace → Verify backspace action is tracked
  5. Go to Settings → Communication History
  6. Export PDF report → Verify PDF generates without font errors
  7. Check that all event types appear in the report

Fixes #1987
Closes #1978

Eshaan-byte and others added 9 commits August 26, 2025 04:01
- Implement automatic tracking of symbol selections and phrases
- Add PDF generation service with professional formatting
- Create export dialog with date range and filtering options
- Add Settings page for Communication History with statistics
- Integrate with Redux store for persistent data storage
- Include comprehensive test coverage
- Add documentation and README

This feature enables therapists and educators to:
- Track AAC usage patterns over time
- Generate professional PDF reports for documentation
- Monitor communication progress with statistics
- Export filtered reports by date range and user

Closes cboard-org#1978
- Remove unused 'metadata' parameter in PDFReportService
- Remove unused 'now' variable in ExportDialog
- Remove unused 'trackBackspaceAction' import in test
- Simplify PDF service test to remove unused 'testData'
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.

Generate PDF Report of Chat History Including Selected Words, Phrases, and Pictograms

2 participants