Conversation
SergioEstevao
left a comment
There was a problem hiding this comment.
Followed the PR test steps and all is working correctly:
- Only toc chapters were visible
- None was deselected because toc hidden chapters were deselected on the original branch
![]()
# Conflicts: # Modules/Utils/Sources/PocketCastsUtils/Feature Flags/FeatureFlag.swift
leandroalonso
left a comment
There was a problem hiding this comment.
@danielebogo chapters are not skipping as they should. Here's the test I did:
- Went on
developand deselected some chapters - Ran this branch/app
- Tap play
- Once the chapter "Fire by climate" finishes I expected "New uniform" to play. It didn't, it just ket playing, as you can see below:
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-03-11.at.16.44.53.mp4
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
|
Version |
This PR introduces filtering out chapters that should not be in the table of contents. See the specification for more details.
The implementation relies on splitting real index and UI index. Real index is stored and is always used for syncing pre-selected chapters. While UI index is computed on-the-fly after we filter out all invalid chapters, etc.
In the database migration I had to delete all cached remote chapters as we don't have information whether such chapters should be displayed or not.
To test
mainbranch.X sats from Y.task/chaptes-tocbranch.X sats from Ychapters and no chapters got de-selected.Checklist
CHANGELOG.mdif necessary.