Reviews: a store read that failed everywhere is an error, not an empty fresh list; Reviews tab says Apple's API can lag and Play returns 7 days; pitfall 106

This commit is contained in:
CRTkafa 2026-10-23 00:33:27 +08:00
parent 0e88e4293a
commit 75bf62e125
7 changed files with 50 additions and 8 deletions

View file

@ -366,6 +366,7 @@ export const en = {
'reviews.shown': '{count} shown',
'reviews.noMatch': 'No review matches the filter',
'reviews.pick': 'Pick a review',
'reviews.lagNote': "Read from the stores' APIs. Apple's API can trail the App Store Connect page; Google Play returns only the last 7 days.",
'reviews.answered': 'Answered',
'reviews.drafted': 'Draft',
'reviews.approved': 'Approved',

View file

@ -368,6 +368,7 @@ export const tr: Record<keyof typeof en, string> = {
'reviews.shown': '{count} gösteriliyor',
'reviews.noMatch': 'Süzgece uyan yorum yok',
'reviews.pick': 'Bir yorum seçin',
'reviews.lagNote': "Mağaza API'lerinden okunur. Apple'ın API'si App Store Connect sayfasından geride kalabilir; Google Play yalnızca son 7 günü verir.",
'reviews.answered': 'Yanıtlandı',
'reviews.drafted': 'Taslak',
'reviews.approved': 'Onaylı',

View file

@ -135,6 +135,7 @@ export function ReviewsTab({ app }: { app: UnifiedApp }) {
<div className="rv2-side">
<div className="rv2-unans"><b className="num">{num(stats.unanswered)}</b><span>{t('reviews.unansweredN', { count: stats.unanswered })}</span></div>
<ReadControl r={list} />
<p className="small muted">{t("reviews.lagNote")}</p>
{project && <WriteButton run={w} icon="text" hint={t('reviews.makeDraftsHint')} w={{ method: 'reviews.draft', args: { days: 30 }, title: t('reviews.makeDrafts'), done: t('reviews.draftsMade'), after: changed }}>{t('reviews.makeDrafts')}</WriteButton>}
</div>
</section>