Large albums opened slowly and flickered; the default album cover was also lost in the media-objects refactor. Large-album loading: - quantize signed object URLs within a window and send Cache-Control so previews are reused instead of re-fetched - publish photo.updated (not photo.created) when variants are ready, so clients update in place without reordering the grid - worker concurrency + newest-first variant priority; raise default batch Album cover: - first uploaded photo becomes the cover when none is set - clear the cover when the cover photo is trashed or moved out - "set as album cover" in the photo context menu and actions panel OpenSpec changes: fix-large-album-load, fix-album-cover
21 lines
1.2 KiB
Markdown
21 lines
1.2 KiB
Markdown
# Spec Delta
|
|
|
|
## MODIFIED Requirements
|
|
|
|
### Requirement: Выбор обложки
|
|
Владелец и админ SHALL иметь возможность назначить обложкой любое фото альбома или сбросить
|
|
обложку; после сброса обложка SHALL становиться не заданной (без возврата к значению по
|
|
умолчанию).
|
|
|
|
#### Scenario: Назначение обложки
|
|
- **WHEN** владелец выбирает фото альбома как обложку
|
|
- **THEN** система сохраняет выбор и отражает его в списке и карточках
|
|
|
|
#### Scenario: Сброс обложки
|
|
- **WHEN** админ сбрасывает обложку
|
|
- **THEN** система снимает обложку, и альбом отображается без обложки, пока обложку не назначат снова
|
|
|
|
#### Scenario: Нет прав на смену обложки
|
|
- **WHEN** участник без права редактирования пытается сменить обложку
|
|
- **THEN** система отклоняет запрос
|