feat(library): surface metadata enrichment status, errors and covers
The mapper dropped metadata_status and hardcoded availability, so enrichment state was invisible and a just-uploaded track never appeared to change. Map metadata_status/metadata_error/has_cover onto Track; add MetadataStatusBadge (pending spinner / enriched / failed-with-reason / manual) shown in TrackRow, and serve token-bearing track covers via getTrackCoverUrl. UploadPage now polls each uploaded track (stops once enrichment settles) so the resolved title/artist — or a failure reason — appears live. i18n in en + ru. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -232,6 +232,20 @@ const ru: Translations = {
|
||||
error: 'Ошибка',
|
||||
},
|
||||
},
|
||||
metadata: {
|
||||
status: {
|
||||
pending: 'Обработка…',
|
||||
enriched: 'Готово',
|
||||
failed: 'Нет совпадения',
|
||||
manual: 'Вручную',
|
||||
},
|
||||
statusHint: {
|
||||
pending: 'Определяем метаданные…',
|
||||
enriched: 'Метаданные определены',
|
||||
failed: 'Не удалось определить метаданные',
|
||||
manual: 'Изменено вручную — не обновляется автоматически',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default ru;
|
||||
|
||||
Reference in New Issue
Block a user