test: bring the packing, todo and dashboard changes in line with the CI gates

Lower the lint and strict baselines the redesign made smaller, keep the
detail window and the todo tab under the complexity limit by moving their
choices into helpers, read the toast in the detail test through its module
rather than a window global, keep the new dialog focus case in the module's
existing test file, show the panel's progress once in the standalone header,
and point the planner wiring tests at the Lists menu.
This commit is contained in:
Maurice
2026-11-15 12:30:14 +01:00
parent 783a697d95
commit a65342574a
11 changed files with 78 additions and 90 deletions
@@ -8,7 +8,7 @@ import type { PackingState } from './usePackingListPanel'
* Lists menu, so the row asks one question and answers one.
*/
export function PackingViewTabs(S: PackingState) {
const { view, setView, t, items, abgehakt, viewTotal, fortschritt } = S
const { view, setView, t, items, abgehakt, viewTotal, fortschritt, inlineHeader } = S
const commonCount = items.filter(i => !i.is_private).length
const personalCount = items.filter(i => !!i.is_private).length
@@ -39,7 +39,8 @@ export function PackingViewTabs(S: PackingState) {
{viewPill('common', <Users size={14} />, t('packing.viewCommon'), commonCount)}
{viewPill('personal', <UserRound size={14} />, t('packing.viewPersonal'), personalCount)}
</div>
{viewTotal > 0 && (
{/* The standalone panel says it in its own header already. */}
{!inlineHeader && viewTotal > 0 && (
<div className="ms-auto inline-flex items-center gap-2.5 text-caption tabular-nums text-content-muted">
{fortschritt === 100 ? (
<span className="inline-flex items-center gap-1.5 font-semibold text-success"><CheckCheck size={14} strokeWidth={2.5} />{t('packing.allPacked')}</span>