feat(todo): To-Do in the look of the packing list, detail pane always in reach

Rows get the packing list's filled checkbox, priority, due date and list
as quiet badges, and the assignee as an avatar with the name as its
tooltip. The tasks sit in a card whose head names the filter and holds
the sort, Priority or Due date, which moved out of the sidebar; a second
click on the active one goes back to the manual order. The progress card
matches the packing list's.

The detail pane is a card with a box in its head that ticks the task
off, and Delete and Save changes stay in sight: the To-Do view now fills
the space under the Lists bar instead of a fixed height that pushed the
pane's foot off screen. The detail pane and the new-task form share one
set of fields, and a new list is named in a dialog, from the sidebar
and from the form; the dialog moved to shared/NameDialog for both lists.

The To-Do help pictures are re-rendered, the texts that described the
old sidebar and form follow in all 27 languages, and the wiki page is
updated. The phone screens are unchanged.
This commit is contained in:
Maurice
2026-09-25 13:29:06 +02:00
parent dc60f39554
commit 1f79776070
51 changed files with 654 additions and 713 deletions
@@ -2,7 +2,7 @@ import {
CheckCheck, Luggage, Package, FolderPlus, Download, Trash2,
} from 'lucide-react'
import type { PackingState } from './usePackingListPanel'
import PackingNameDialog from './PackingNameDialog'
import NameDialog from '../shared/NameDialog'
export function PackingHeader(S: PackingState) {
const {
@@ -199,7 +199,7 @@ export function PackingHeader(S: PackingState) {
{/* Naming a new list or a template happens in a dialog of its own, not in a
field pushed into the page. */}
<PackingNameDialog
<NameDialog
open={canEdit && addingCategory}
title={t('packing.addCategory')}
placeholder={t('packing.newCategoryPlaceholder')}
@@ -209,7 +209,7 @@ export function PackingHeader(S: PackingState) {
onConfirm={handleAddNewCategory}
onClose={() => { setAddingCategory(false); setNewCatName('') }}
/>
<PackingNameDialog
<NameDialog
open={canEdit && isAdmin && items.length > 0 && showSaveTemplate}
title={t('packing.saveAsTemplate')}
placeholder={t('packing.templateName')}