play: old testing builds below production listed with their replace command (status, validate); 'Not live yet' instead of 'In review'; commit redone without changesNotSentForReview on the auto-send 400; pitfalls #129
This commit is contained in:
parent
83d351cf42
commit
9c001d1ca9
13 changed files with 130 additions and 15 deletions
|
|
@ -161,11 +161,15 @@ export function playReleases(data: unknown): StoreRelease[] {
|
|||
return out;
|
||||
}
|
||||
|
||||
/** A completed Play production release the store page does not show yet. The API has no review state: it may be in
|
||||
* review, or blocked before review (an old build on another track with a policy issue, pitfall 129). Never "In review". */
|
||||
export const PLAY_NOT_LIVE = 'Not live yet: in review or blocked before review (the API cannot tell; see Publishing overview)';
|
||||
|
||||
/** Plain words for a Play release's phase, decided from the store page (CLI text; the desktop has the same words in
|
||||
* i18n, apps/desktop/src/ui/kit.tsx phaseLabel). */
|
||||
export function playReleaseLabel(r: StoreRelease): string {
|
||||
const base = ((): string => {
|
||||
if (r.phase === 'review' || r.phase === 'sent') return r.managed ? 'In review / ready to publish (managed publishing)' : r.liveVersion ? `In review (live: ${r.liveVersion})` : 'In review';
|
||||
if (r.phase === 'review' || r.phase === 'sent') return r.managed ? 'In review / ready to publish (managed publishing)' : r.liveVersion ? `${PLAY_NOT_LIVE} (live: ${r.liveVersion})` : PLAY_NOT_LIVE;
|
||||
if (r.phase === 'released') return "Couldn't check the store page";
|
||||
if (r.phase === 'live') return 'Live';
|
||||
if (r.phase === 'rollout') return `Rolling out ${Math.round((r.fraction ?? 0) * 1000) / 10}%`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue