fix(assistant): improve trip proposals and approvals

This commit is contained in:
Maurice
2026-12-02 22:03:28 +01:00
parent 01ad13623c
commit 62a3e63f3f
144 changed files with 4093 additions and 1336 deletions
@@ -25,6 +25,7 @@ interface PlaceTextTabsOptions {
dayNotes: string | null;
/** The day that visit is on, to name the tab after it ("Only day 3"). */
dayNumber?: number | null;
initialTab?: PlaceTextField;
t: Translate;
}
@@ -34,8 +35,15 @@ interface PlaceTextTabsOptions {
* The one logic path behind the desktop card and the phone sheet; each draws its
* own tabs and field over it.
*/
export function usePlaceTextTabs({ description, notes, dayNotes, dayNumber = null, t }: PlaceTextTabsOptions) {
const [active, setActive] = useState<PlaceTextField>('description');
export function usePlaceTextTabs({
description,
notes,
dayNotes,
dayNumber = null,
t,
initialTab = 'description',
}: PlaceTextTabsOptions) {
const [active, setActive] = useState<PlaceTextField>(initialTab);
const tabs: PlaceTextTab[] = [
{
field: 'description',