fix(notifications): drop a tab the planner lacks from the URL, link booking mails to the reservations tab, open the chat on the phone

This commit is contained in:
Maurice
2026-11-14 16:49:18 +01:00
parent bfdbf4d811
commit a76a96ccca
9 changed files with 61 additions and 16 deletions
@@ -340,6 +340,13 @@ export default function MTripShell({
if (mode === 'browse') setMode('go')
}
// A notification link opens its tab the way the dock does, and a message one the chat.
useEffect(() => {
if (!planner.tabLink) return
setMode(m => (m === 'browse' ? 'go' : m))
if (planner.tabLink.tab === 'collab') setCollabTab('chat')
}, [planner.tabLink])
const setTravelMode = (next: MTripMode) => {
setBrowseFromEdit(next === 'browse' && mode === 'edit')
setMode(next)