Desktop: adapt to 0.5.0 (app.platforms, subscriptions, catalog diff), Dependencies polish, ~ for the home folder

- inspect reports platforms, subscription ids and the catalog each store should sell; app identity
  and parity follow app.platforms and per-item platforms; catalog.diff joins the JSON methods
- Portfolio: one Platforms column, compact catalog, paths truncated and shown with ~; the confirm
  dialog and run logs show ~ instead of the home folder
This commit is contained in:
CRTkafa 2026-10-10 18:15:48 +00:00
parent 7fab0a5b03
commit 9320d64f46
12 changed files with 60 additions and 24 deletions

View file

@ -83,7 +83,7 @@ export function AppFolders({ data }: { data: Data }) {
</select>
</td>
<td>
<div className="actions" style={{ justifyContent: 'flex-end' }}>
<div className="actions" style={{ justifyContent: 'flex-end', flexWrap: 'nowrap' }}>
<button className="btn" onClick={() => check(p)} disabled={!!busy}>Check</button>
<button className="btn" onClick={() => gallery(p)} disabled={!!busy} title="Dry run first, then a confirmation dialog">Review gallery</button>
<button className="btn btn-quiet" onClick={() => remove(p)} disabled={!!busy} aria-label={`Remove ${p.name} from the list`}>Remove</button>

View file

@ -50,7 +50,7 @@ export function Portfolio({ data, open, go }: { data: Data; open: (p: Project) =
) : (
<div className="card">
<table>
<thead><tr><th>App</th><th>iOS</th><th>Android</th><th>Live</th><th>Next</th><th>Catalog</th><th>Config</th></tr></thead>
<thead><tr><th>App</th><th>Platforms</th><th>Live</th><th>Next</th><th title="In-app products · subscriptions">Catalog</th><th>Config</th></tr></thead>
<tbody>
{data.projects.map(p => {
const e = data.statusOf(p);
@ -60,11 +60,17 @@ export function Portfolio({ data, open, go }: { data: Data; open: (p: Project) =
return (
<tr key={p.id}>
<td><button className="link name" onClick={() => open(p)}>{e?.app?.name ?? p.name}</button><div className="path selectable" title={p.path}>{shortPath(p.path, data.home)}</div></td>
<td className="selectable">{ios ? ios.bundleId : <span className="tag tag-muted">none</span>}{e?.storeErrors.ios && <div className="tag tag-bad" title={e.storeErrors.ios}>unreadable</div>}</td>
<td className="selectable">{android ? android.packageName : <span className="tag tag-muted">none</span>}{e?.storeErrors.android && <div className="tag tag-bad" title={e.storeErrors.android}>unreadable</div>}</td>
<td>
{e && (
<div className="plat">
<div><span className={`tag ${ios ? 'tag-local' : 'tag-muted'}`}>iOS</span> <span className="selectable">{ios?.bundleId ?? 'not set up'}</span>{e.storeErrors.ios && <span className="tag tag-bad" title={e.storeErrors.ios}>unreadable</span>}</div>
<div><span className={`tag ${android ? 'tag-ok' : 'tag-muted'}`}>Android</span> <span className="selectable">{android?.packageName ?? 'not set up'}</span>{e.storeErrors.android && <span className="tag tag-bad" title={e.storeErrors.android}>unreadable</span>}</div>
</div>
)}
</td>
<td className="nowrap">{e ? trainText(e.release.current, e.release.source) : ''}</td>
<td className="nowrap">{e ? trainText(e.release.next, e.release.source) : ''}</td>
<td>{cat ? <span className={`tag tag-${cat.ok ? (cat.checked === 'live' ? 'ok' : 'muted') : 'warn'}`} title={cat.checked === 'live' ? 'compared with both stores' : 'from the config; read the stores to compare'}>{cat.products} products · {cat.subscriptions} subs</span> : ''}</td>
<td>{cat ? <span className={`tag tag-${cat.ok ? (cat.checked === 'live' ? 'ok' : 'muted') : 'warn'}`} title={`${cat.products} in-app products, ${cat.subscriptions} subscriptions; ${cat.checked === 'live' ? 'compared with both stores' : 'from the config, read the stores to compare'}`}>{cat.products} · {cat.subscriptions}</span> : ''}</td>
<td><span className={`tag tag-${st.tone}`} title={[...(e?.errors ?? []), ...(e?.check?.problems ?? []), ...(e?.check?.warnings ?? [])].join('\n')}>{st.text}</span></td>
</tr>
);

View file

@ -117,10 +117,14 @@ th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color:
th:first-child { border-top-left-radius: var(--radius); }
th:last-child { border-top-right-radius: var(--radius); }
tr:last-child td { border-bottom: 0; }
td .path { color: var(--muted); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
td .path { color: var(--muted); font-family: var(--mono); font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td:first-child { min-width: 180px; }
.card:has(> table) { overflow-x: auto; }
.name { font-weight: 650; }
.nowrap { white-space: nowrap; }
.plat { display: grid; gap: 6px; font-size: 13px; }
.plat .tag { min-width: 64px; text-align: center; margin-right: 6px; }
.tag { white-space: nowrap; display: inline-block; font: 700 10.5px/1 var(--mono); letter-spacing: .05em; padding: 5px 8px; border-radius: 999px; text-transform: uppercase; }
.tag-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag-local { background: var(--local-bg); color: var(--local-ink); }