feature/43-custom-playlists #121
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Slovo_Propovedi/slovo-propovedi-mobile!121
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/43-custom-playlists"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #43.
Кастомные локальные плейлисты
Пользовательские (локальные) плейлисты без авторизации: создание, редактирование,
шеринг по ссылке, импорт из ссылки, поиск, публикация в глобальные.
Домен
myPlaylists: create / rename / delete / reorder / reorder sermons(read-modify-write + persist, favorites защищён)
sermonIds— авторитетный состав;sermons— кэш-снапшоты подмножестваMAX_CUSTOM_PLAYLIST_SERMONS = 200Шеринг и импорт
https://<host>/listen/playlist?custom&title=<enc>&sermons=<id>(id упакованы в base64url, ~340 проповедей влезает в бюджет 8k; csv-фоллбэк)
повторное открытие ссылки открывает тот же плейлист
UI
кнопка-галочка в шапке; без добавления/удаления проповедей
при включённом «заголовке на карточке» буква скрывается
и проповедями (видна только админам)
Прочее
даблтап навигации; скролл «О приложении» над системным навбаром
Известное
записано в
docs/debt.mdПроверки
yarn lint0 ошибок ·check:types·check:unused0 ·test198 suites / 1719 ·check:fsd·check:circular— всё зелёноеtogglePlaylistSermon re-derived sermonIds from sermons, so adding a sermon to an imported id-only playlist ({ sermonIds: ['a','b','c'], sermons: [] }) dropped a,b,c, and removing any member emptied the playlist. Update sermonIds directly now: append the id with dedupe on add and filter it on remove, filtering sermons in parallel. Also stop flashing "playlist not found" while a custom share link imports: PlaylistScreen renders the loading state while the custom param is present instead of treating the empty id as not-found. Signed-off-by: egoreast <egor.east@yandex.ru>Stored sermonIds are now the source of truth when reading myPlaylists: normalizeLocalPlaylist keeps them (deduped, empty strings dropped) and treats sermons as a snapshot subset, dropping snapshots whose id is no longer a member. sermonIds are derived from sermons only for legacy rows without stored ids. This closes the reload gap where imported id-only members ({ sermonIds: [a,b,c,d], sermons: [d] }) collapsed to [d] after restart (docs/debt.md entry removed). The same invariant is fixed in the two other places that re-derived sermonIds from sermons: mergePlaylists (backup merge now unions sermonIds instead of re-deriving them via toCanonical) and reorderLocalPlaylistSermons (reorders the authoritative sermonIds and keeps id-only members). Docs updated: contracts/storage.md, features/my-playlists.md, features/settings-backup.md. Signed-off-by: egoreast <egor.east@yandex.ru>