Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for starting from a progression in the HTML content iterator#597

Merged
mickael-menu merged 2 commits intodevelopfrom
tts/seek-progression
May 28, 2025
Merged

Support for starting from a progression in the HTML content iterator#597
mickael-menu merged 2 commits intodevelopfrom
tts/seek-progression

Conversation

Copy link
Member

mickael-menu commented May 28, 2025 *
edited
Loading

Added

Shared

  • Support for starting from a progression in the HTML content iterator.

mickael-menu requested a review from Copilot May 28, 2025 15:22
mickael-menu temporarily deployed to LCP May 28, 2025 15:22 -- with GitHub Actions Inactive
mickael-menu temporarily deployed to LCP May 28, 2025 15:22 -- with GitHub Actions Inactive
Copilot AI reviewed May 28, 2025
Copy link

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 enables the HTML content iterator to begin from a given progression value by adjusting its start index, adds a corresponding unit test, and updates the changelog.

  • Update how the elementsTask result is unwrapped
  • Introduce progression-based startIndex adjustment in the iterator
  • Add a new test and document the change in CHANGELOG.md

Reviewed Changes

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

File Description
Tests/SharedTests/Publication/Services/Content/Iterators/HTMLResourceContentIteratorTests.swift Added testStartingFromProgression to verify iteration begins at the correct element for a given progression
Sources/Shared/Publication/Services/Content/Iterators/HTMLResourceContentIterator.swift Changed elementsTask unwrapping, and injected logic to set the iterator start based on a progression locator
CHANGELOG.md Logged "Support for starting from a progression in the HTML content iterator." under the Navigator section
Comments suppressed due to low confidence (1)

Sources/Shared/Publication/Services/Content/Iterators/HTMLResourceContentIterator.swift:97

  • The Task closure now returns a publisher rather than a Result, so calling .get() on elementsTask.value will not compile. Either restore the internal try result.get() inside the Task or adjust the Task's return to unwrap before returning.
try await elementsTask.value.get()

mickael-menu temporarily deployed to LCP May 28, 2025 15:24 -- with GitHub Actions Inactive
mickael-menu temporarily deployed to LCP May 28, 2025 15:24 -- with GitHub Actions Inactive
mickael-menu merged commit 4681098 into develop May 28, 2025
5 checks passed
mickael-menu deleted the tts/seek-progression branch May 28, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants