Skip to content

TT-7191 feat(burrito): add Philippians publishing fixture and related functionality#385

Merged
sarahentzel merged 1 commit into
developfrom
TT-7191b-missing-content
Jul 1, 2026
Merged

TT-7191 feat(burrito): add Philippians publishing fixture and related functionality#385
sarahentzel merged 1 commit into
developfrom
TT-7191b-missing-content

Conversation

@gtryus

@gtryus gtryus commented Jul 1, 2026

Copy link
Copy Markdown
Contributor
  • Introduced philippiansPublishingFixture.ts to define the structure for Philippians publishing, including sections, passages, and media files.
  • Implemented functions to create sections and passages, enhancing the fixture's usability for testing.
  • Added tests for the Philippians publishing hierarchy, ensuring correct export behavior for notes and media files.
  • Updated resolveBurritoExportFolder to support chapter parsing from CHNUM references, improving folder resolution logic.

This commit enhances the burrito export process by integrating a comprehensive fixture for Philippians, facilitating better organization and retrieval of publishing data.

… functionality

- Introduced `philippiansPublishingFixture.ts` to define the structure for Philippians publishing, including sections, passages, and media files.
- Implemented functions to create sections and passages, enhancing the fixture's usability for testing.
- Added tests for the Philippians publishing hierarchy, ensuring correct export behavior for notes and media files.
- Updated `resolveBurritoExportFolder` to support chapter parsing from CHNUM references, improving folder resolution logic.

This commit enhances the burrito export process by integrating a comprehensive fixture for Philippians, facilitating better organization and retrieval of publishing data.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Philippians-specific publishing fixtures and extends burrito export folder resolution to correctly derive chapter folders from CHNUM references (including CHNUM 2 space format), with tests covering the new hierarchy and export placement behavior.

Changes:

  • Introduced a Philippians publishing fixture (sections, passages, mediafiles) to exercise burrito export behavior.
  • Added chnumChapterFromRef() and updated burrito export logic to parse chapter numbers from both CHNUM|N and CHNUM N formats.
  • Added/extended tests to validate note export placement (book-root vs chapter folders) and CHNUM parsing behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/renderer/src/burrito/useBurritoAudio.ts Reuses centralized CHNUM chapter parsing helper when deriving section/passage chapter folders during export.
src/renderer/src/burrito/useBurritoAudio.test.ts Adds Philippians note-export coverage using the new fixture and validates chapter-2 placement and book-root uniqueness.
src/renderer/src/burrito/resolveBurritoExportFolder.ts Adds chnumChapterFromRef() and uses it in folder resolution; differentiates Book vs Alt Book scope refs.
src/renderer/src/burrito/resolveBurritoExportFolder.test.ts New unit tests for CHNUM parsing and folder resolution (book rows + CHNUM space format).
src/renderer/src/burrito/philippiansPublishingFixture.ts New Philippians publishing fixture builder and section selector used by tests.

phpNoteSections,
type PhilippiansPublishingFixture,
} from './philippiansPublishingFixture';
import { isBookRootPath } from './jamesPublishingFixture';
@sarahentzel sarahentzel merged commit 49522a5 into develop Jul 1, 2026
3 checks passed
@sarahentzel sarahentzel deleted the TT-7191b-missing-content branch July 1, 2026 20:58
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