Desktop: app page no longer overflows (page grid minmax, wrapping tabs); app ignore/unpair actions move to a ... menu; unique keys in App info

This commit is contained in:
CRTkafa 2026-10-23 09:08:23 +08:00
parent dece83c3e8
commit 5e82010ace
9 changed files with 32 additions and 21 deletions

View file

@ -3,7 +3,7 @@
import { api, errorText } from '../api';
import { t } from '../i18n';
import { copyText } from '../lib/crash';
import { withIgnored, withSideIgnored, type UnifiedApp } from '../lib/identity';
import { withIgnored, withSideIgnored, withUnpair, type UnifiedApp } from '../lib/identity';
import { setShowIgnored } from '../lib/show-ignored';
import { type AppTab, type Nav, TAB_ICON, TAB_KEY, tabsFor } from '../nav';
import type { Data } from '../store';
@ -57,6 +57,9 @@ export function appMenu(app: UnifiedApp, d: Data, nav: Nav, opts: { showIgnored:
onSelect: () => { void d.updateOverrides(o => withSideIgnored(o, app, k, !off)); } };
}) : []),
] },
!p && !!app.ios && !!app.android && { label: t('app.unpair'), icon: 'unlink', onSelect: () => {
void d.updateOverrides(o => withUnpair(o, app.ios!.key, app.android!.key)).then(() => nav.go({ screen: 'portfolio' }));
} },
{ label: t('cm.showIgnored'), icon: 'filter', checked: opts.showIgnored, onSelect: () => setShowIgnored(!opts.showIgnored) },
];
}