mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
688ce0fae2
/trips/:id?tab=finanzplan opens the planner straight on that tab. Read in the state initializer, not an effect, so the planner never paints the plan view and swaps a frame later. The param is consumed on arrival; the session memory keeps the choice across a reload. Two things the tab machinery got away with while nothing ever started on a tab other than plan: - the guard evicted anything not in TRIP_TABS, but enabledAddons is an optimistic guess until the addon feed answers, and collab is guessed off - so a requested collab tab was thrown away a render before we knew the addon was on. It now waits for the feed, like it already did for plugins. - the lazy loads hang off handleTabChange, which the tab we *start* on never goes through. Opening on Files showed an empty list, and that was already true for a tab restored from a previous visit. Tab ids move to constants/tripTabs so the settings picker can name them the way the tab bar does instead of keeping a second list.