Skip to content

Conversation

@gtryus
Copy link
Contributor

@gtryus gtryus commented Jan 12, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for CHAPTERNUMBER passage types and implements graphic rendering capabilities for both NOTE and CHAPTERNUMBER types in the PassageCard component. The implementation includes displaying avatar graphics (either from a URI or generated from text), showing chapter comments inline with the title, and providing a simplified layout for CHAPTERNUMBER cards without assignment information or step buttons.

Changes:

  • Added Avatar component with graphic rendering support for NOTE and CHAPTERNUMBER passage types
  • Implemented CHAPTERNUMBER-specific layout that displays comments inline with the title and positions audio controls centrally
  • Added comprehensive test coverage for both CHAPTERNUMBER rendering and graphic avatar functionality

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/renderer/src/components/Sheet/PassageCard.tsx Adds getGraphicValue() function to render avatars for NOTE/CHAPTERNUMBER types, implements conditional rendering for CHAPTERNUMBER layout with inline comments and centered audio controls, and imports Avatar component and stringAvatar utility
src/renderer/src/components/Sheet/PassageCard.cy.tsx Adds comprehensive test suites for CHAPTERNUMBER passage type behavior and graphic rendering functionality, including tests for avatar display, border styling, and passage type-specific rendering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

… to PassageCard

- Add PlayButton component and integrate into PassageCard for media playback control
- Add handling for CHAPTERNUMBER comments in PassageCard component
@gtryus gtryus force-pushed the feature/TT-7022-chapter-card branch from 97baa4a to 9872023 Compare January 12, 2026 23:26
@gtryus gtryus requested a review from sarahentzel January 12, 2026 23:27
@sarahentzel sarahentzel merged commit 2d65099 into develop Jan 13, 2026
2 checks passed
@sarahentzel sarahentzel deleted the feature/TT-7022-chapter-card branch January 13, 2026 15:39
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.

3 participants