mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 21:33:19 +00:00
feat(trip-settings): edit the trip inside its settings, in one look across the areas and the trip form
Edit trip is an area of the settings dialog, beside People, Sharing and Journal, instead of a second dialog. The side column names the areas only, the dialog keeps one height, and every area uses the same cards, fields and buttons; the trip form on its own takes the same head, cards and buttons. A trip that loads quickly opens without the splash on the desktop too.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useTranslation } from '../../../i18n'
|
||||
import MDancingTrek from '../../components/MDancingTrek'
|
||||
import { useTripSplashBeats } from '../../../components/shared/useTripSplashBeats'
|
||||
import { TRIP_SPLASH_AFTER_MS, useTripSplashBeats } from '../../../components/shared/useTripSplashBeats'
|
||||
|
||||
/**
|
||||
* Trip-open splash — the TREK mascot acts out a little journey while the trip
|
||||
@@ -11,14 +11,10 @@ import { useTripSplashBeats } from '../../../components/shared/useTripSplashBeat
|
||||
* progress dots track which beat is on. Under reduced motion it holds a single
|
||||
* frame (the real "loading photos" one) with no transitions.
|
||||
*/
|
||||
/**
|
||||
* How long a trip may take to open before the splash comes up. The page
|
||||
* transition holds the page the trip was opened from for up to 350ms
|
||||
* (mobile/routeTransition.ts), so a trip that loads in that time slides in
|
||||
* whole, the way the dashboard slides back in on the way out. A slower one gets
|
||||
* the splash right after, so a slow connection never sees the app stand still.
|
||||
*/
|
||||
export const TRIP_SPLASH_AFTER_MS = 400
|
||||
// The page transition holds the page the trip was opened from for up to 350ms
|
||||
// (mobile/routeTransition.ts), so a trip that loads within TRIP_SPLASH_AFTER_MS
|
||||
// slides in whole, the way the dashboard slides back in on the way out.
|
||||
export { TRIP_SPLASH_AFTER_MS }
|
||||
|
||||
/**
|
||||
* While a trip opens. At first nothing but the screen's own background, marked
|
||||
|
||||
Reference in New Issue
Block a user