Real-account read check of the desktop tabs: analytics snapshot stops when every store failed, compare names why a store has no days (Growth shows it), listing screenshot count skips contact sheets; Growth chart as an index on one axis; recorded price answers round-trip the price sheet
This commit is contained in:
parent
be38af2dad
commit
5d485e01b5
15 changed files with 468 additions and 31 deletions
|
|
@ -47,7 +47,9 @@ function Analytics({ projectId, hasApple, hasPlay, name, playReports }: { projec
|
|||
actions={<>{stores.length > 1 && <Seg value={st} onChange={setStore} label={t('col.store')} options={[['apple', 'App Store'], ['play', 'Google Play']]} />}{actions}</>}>
|
||||
{none ? (
|
||||
<Empty illo="pulse" title={t('gr.noneTitle')}>{t('gr.noneText')}{hasPlay && !playReports ? ` ${t('gr.noBucket')}` : ''}</Empty>
|
||||
) : r.error ? <div className="card-body"><ErrorNotice error={r.error} /></div> : !a || !s ? <div className="card-body"><Skeleton lines={5} block /></div> : (
|
||||
) : r.error ? <div className="card-body"><ErrorNotice error={r.error} /></div> : !a || !s ? <div className="card-body"><Skeleton lines={5} block /></div> : !s.dates.length ? (
|
||||
<Empty illo="pulse" title={t('gr.noDataTitle', { store: st === 'apple' ? 'App Store' : 'Google Play' })}>{a.errors?.[st] ?? t('gr.noDataText')}{st === 'play' && !playReports ? ` ${t('gr.noBucket')}` : ''}</Empty>
|
||||
) : (
|
||||
<div className="card-body stack" style={{ gap: 16 }}>
|
||||
<div className="kpis" style={{ gridTemplateColumns: 'repeat(3, minmax(0, 1fr))' }}>
|
||||
<Kpi icon="eye" label={st === 'apple' ? t('gr.impressions') : t('gr.visitors')} value={num(reach)} sub={t('gr.days', { count: s.dates.length })} />
|
||||
|
|
@ -56,10 +58,11 @@ function Analytics({ projectId, hasApple, hasPlay, name, playReports }: { projec
|
|||
</div>
|
||||
{s.dates.length > 1 ? (
|
||||
<LineChart dates={s.dates} label={t('gr.chartAria', { store: st === 'apple' ? 'App Store' : 'Google Play' })} eventsLabel={t('gr.changes', { count: s.events.length })} events={s.events}
|
||||
indexLabel={t('gr.indexLabel')}
|
||||
lines={[
|
||||
{ label: st === 'apple' ? t('gr.impressions') : t('gr.visitors'), values: s.reach, cls: 'l1', axis: 'left' },
|
||||
{ label: st === 'apple' ? t('gr.downloads') : t('gr.acquisitions'), values: s.installs, cls: 'l2', axis: 'left' },
|
||||
{ label: t('gr.conversion'), values: s.conversion, cls: 'l3', axis: 'right' },
|
||||
{ label: st === 'apple' ? t('gr.impressions') : t('gr.visitors'), values: s.reach, cls: 'l1', unit: 'count' },
|
||||
{ label: st === 'apple' ? t('gr.downloads') : t('gr.acquisitions'), values: s.installs, cls: 'l2', unit: 'count' },
|
||||
{ label: t('gr.conversion'), values: s.conversion, cls: 'l3', unit: 'rate' },
|
||||
]} />
|
||||
) : <Notice tone="info">{t('gr.oneDay')}</Notice>}
|
||||
{effects.length > 0 && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue