diff --git a/wiki/Mobile-App.md b/wiki/Mobile-App.md new file mode 100644 index 000000000..95983f6f3 --- /dev/null +++ b/wiki/Mobile-App.md @@ -0,0 +1,71 @@ +# TREK on a Phone + +TREK has a layout of its own for phones. It is the same app at the same address with the same data, drawn for one hand and a small screen: a floating bar at the bottom, sheets that slide up instead of dialogs, and a trip screen built around the day you are on. Install it to your home screen and it behaves like an app; see [Offline-Mode-and-PWA](Offline-Mode-and-PWA). + +## When the phone layout applies + +TREK switches to the phone layout when the window is narrower than 768 px, and also on a touch screen less than 500 px tall, so a phone turned on its side keeps the phone layout instead of jumping to the desktop planner. A tablet and a desktop window follow their width as usual. Turning the phone or resizing the window switches between the two layouts on the fly. + +## The bottom bar + +Outside a trip a floating bar sits at the bottom of every screen: + +- **My Trips** (the dashboard) always comes first. +- Two more destinations next to it, taken from the global addons your instance runs: by default the first two of Vacay, Journey, Atlas and Collections that are switched on. +- **More** lists the rest: the other addons, page plugins, and the [AI Assistant](AI-Assistant) at the top when it is set up for you. +- The raised button in the middle does what fits the screen: on the dashboard it creates a trip, on the journey list it starts a journey, inside a journey it adds an entry (or uploads a photo while the gallery is open), on Collections it adds a place to the open list, and on the Atlas it searches for a country. On Settings and the Admin screens it is a plain logo, and Vacay uses it for its own year and edit switch. + +**Customising the bar.** On a phone, **Settings → Appearance** has a **Mobile** card with **Bottom navbar**: choose which items sit **In the bar** and which go **Under “More”**. **My Trips** stays first; two items fit next to it. The same card sets the **Dashboard order**. See [Appearance-Settings](Appearance-Settings#on-a-phone). + +## The dashboard + +The phone dashboard leads with the trip that is under way or comes next, then your other trips and the widgets you chose for the phone. At the top sit the bell for the [notifications inbox](Notifications-Inbox) and, when it is set up, the assistant. Which widgets show is set separately for desktop and phone in **Settings → Appearance**; see [Dashboard-Widgets](Dashboard-Widgets). + +## A trip + +A trip opens on its own screen with glass controls over the map, a row of day chips, and its own dock at the bottom. + +**The trip dock** holds up to five of the trip's sections, in this order of priority: **Plan**, **Road trip**, **Transports**, **Bookings**, **Costs** and **Lists**. Only the sections switched on for the trip take a seat, and when there are more than five, the last ones move into **More**. Turning the road trip addon on, for example, moves the lists into **More** rather than leaving the drive without a seat. + +**The Plan section** has three modes at the top: + +| Mode | What it is for | +|---|---| +| **Travel** | Following the day on the road: the day's timeline with what is up next, **Jump to today**, and a way to navigate to each stop | +| **Plan** | Changing the day: reorder stops by dragging, add places, notes and bookings, rename the day | +| **Places** | Browsing the trip's places, filtering them, and adding one to a day; a switch at the top flips to the trip's saved tours | + +Swipe sideways to go from day to day, or tap a day chip. A button switches between the list and the map; the map and the list are the same in every mode. + +**The More sheet** of a trip starts with **Ask TREK** when the assistant is available, showing how many things in your plan are worth a check. Below come tiles for the sections that did not get a dock seat (such as Files, Collab and plugin tabs), then **Trip settings** ([Trip-Settings](Trip-Settings)), **Export** and, if you may edit the trip, **Edit Trip**. + +**Export** on a phone offers the trip as a **PDF**, **My plan as PDF**, the GPX tracks of the **Whole trip**, **Download .ics**, and **Subscribe to calendar**, which keeps your calendar app up to date. See [PDF-Export](PDF-Export) and [Calendar-Feeds](Calendar-Feeds). + +## The other screens + +| Screen | On a phone | +|---|---| +| [Journey](Journey-Journal) | Your latest journey on top and the others below; entries as a timeline, photos from the device or from your photo library | +| [Atlas](Atlas) | The world map with **Visited** and **Planned**, and the middle button as the country search | +| [Vacay](Vacay) | The calendar month by month, with used and remaining days and **Edit calendar** in the middle button | +| [Collections](Collections) | Your lists, with each place's status | +| [Notifications](Notifications-Inbox) | The inbox as a full screen | +| [Settings](User-Settings) | The same tabs as screens of their own | +| [Admin](Admin-Panel-Overview) | One screen with the counters on top and a picker for the sections | + +## What stays on the desktop + +A few things need a bigger screen and are not offered on a phone: + +- [TREK Studio](TREK-Studio), the photo book designer, and making its PDF. +- Parts of the road trip planner: comparing route alternatives, making a day follow an imported track, and booking a night at a stop. The phone shows these as **Planned on desktop**. +- The **Tours** tab, where tours are drawn and edited. Saved tours show on the phone under **Places**, ready to put on a day. +- The **API Keys** section of **Settings → Integrations**. + +## See also + +- [Offline-Mode-and-PWA](Offline-Mode-and-PWA) +- [Appearance-Settings](Appearance-Settings) +- [AI-Assistant](AI-Assistant) +- [Notifications-Inbox](Notifications-Inbox) +- [Trip-Settings](Trip-Settings) diff --git a/wiki/Notifications-Inbox.md b/wiki/Notifications-Inbox.md new file mode 100644 index 000000000..6f4a353ce --- /dev/null +++ b/wiki/Notifications-Inbox.md @@ -0,0 +1,61 @@ +# Notifications Inbox + +Everything TREK tells you in the app lands in one inbox: trip invitations, chat messages, booking changes, reminders, hints about your tours, update notices. You reach it through the bell in the navigation bar, and the full list opens as its own page at `/notifications`. + +Which events reach the inbox, and which also go out by email, webhook, ntfy or Web Push, is set in **Settings → Notifications**; see [Notifications](Notifications). + +## The bell + +The bell in the navigation bar shows how many notifications you have not read yet, up to **99+**. A click opens a panel with the newest ones: + +- The head shows **Notifications** with the number of unread ones, and the tools **Mark all read** and **Delete all**. +- The list is cut into days, with the day's heading staying at the top while you scroll through it. +- **Show all notifications** at the bottom opens the full inbox page. + +Following a notification from the panel closes it. New notifications arrive live over TREK's connection, so the count and the panel update without a reload. + +## The inbox page + +The page lists every notification, newest first, and loads older ones as you scroll down. + +- **The head** shows a tile, **Notifications**, how many are unread and how many there are in total, plus **Mark all read** and **Delete all**. **Delete all** asks first: *Every notification is removed for good. This cannot be undone.* +- **All** and **Unread** above the list switch between every notification and only the unread ones. +- **The days**: each day is a card of its own, headed *Today*, *Yesterday*, a weekday for the rest of the week, and the date for anything older (with the year when it is not this one). +- **Nothing there** shows **No notifications** and *You're all caught up!* + +## A notification + +Each notification has a tile on the start side that says at a glance what it is about, with a small picture of who sent it on its corner: + +| Tile | For | +|---|---| +| Plane | Trip invitations and trip reminders | +| Speech bubble | Messages in a trip's chat | +| Ticket | Booking changes | +| Backpack | Packing items you were tagged on | +| Checklist | To-dos coming due | +| Calendar | Vacay invitations and shared calendars | +| Bookmark | Collection invitations | +| Photos | Photos shared with you | +| Mountain | Hints on your tours, such as a [wanderer](Wanderer) trail that changed | +| Sparkles | A new TREK version | +| Warning | Something that needs your attention, such as a photo provider that was disconnected | +| Bell | Everything else | + +Next to the tile come the title, the message and the time: under an hour it reads like *5m*, after that the clock time, since the day heading says the rest. Unread notifications are set in bold with a dot in the accent colour. + +What you can do with a notification: + +- **Follow it.** A notification that points somewhere carries a button, such as **View Tour** or **View Details**, and the button marks it read on the way. +- **Answer it.** Some ask a yes or no question, such as an invitation, and carry its two buttons. You answer once; afterwards the button you chose stays marked. +- **Mark as read** or **Mark as unread**, and **Delete**. On the desktop these come forward when you point at the row or move to it with the keyboard, so the list reads as messages rather than as buttons. + +## On a phone + +On a phone the bell sits at the top of the dashboard and opens the same inbox as a full screen, with a back button and the bulk tools in its top bar, **All** and **Unread** below it, and the notifications as one card. Tapping an unread notification marks it read; its buttons sit as chips under the text, and **Delete** at the end of the row. See [Mobile-App](Mobile-App). + +## See also + +- [Notifications](Notifications): channels, events and the preferences matrix +- [Admin-Notifications](Admin-Notifications) +- [Mobile-App](Mobile-App) diff --git a/wiki/Trip-Settings.md b/wiki/Trip-Settings.md new file mode 100644 index 000000000..fe11c719e --- /dev/null +++ b/wiki/Trip-Settings.md @@ -0,0 +1,72 @@ +# Trip Settings + +**Trip settings** gathers who is on a trip, how others get in, and which journal the trip shows, in one dialog with three areas: **People**, **Sharing** and **Journal**. The trip's own details (title, description, dates, currency, cover) are edited with **Edit Trip** instead; see [Creating-a-Trip](Creating-a-Trip). + +## Opening it + +- **On the desktop**, open a trip and press **Trip settings** in the navigation bar, the pill right beside the trip's name. +- **On a phone**, open the trip's **More** sheet and tap **Trip settings**. The same areas open as a sheet. **Edit Trip** sits in the same sheet for those who may edit the trip. See [Mobile-App](Mobile-App). + +On a wide screen the areas are listed down the left side, each with a line saying what it is for; on a narrow one they are a row of pills above the content. The head of the dialog shows how many people and guests the trip has. + +## People + +*Who is on this trip, and the guests without an account.* + +- **Invite User** adds someone with a TREK account straight away: pick them and press **Invite**. When everyone already has access, the dialog says *All users already have access.* +- **Access** lists the members with their role. The owner carries a crown. **Make owner** hands the trip to another member, **Remove access** takes someone off the trip, and on your own row **Leave trip** takes you off. +- **Guests** are *people without an account. They can be assigned to costs, packing and tasks, but cannot sign in.* **Add guest** names one; a guest can be renamed or removed later. + +Adding and removing members needs the **Add / remove members** permission, which by default only the trip owner has. Everything about members, guests and ownership is on [Trip-Members-and-Sharing](Trip-Members-and-Sharing). + +## Sharing + +*A read-only link for anyone, and an invite link to join.* + +- **Public Link**: *Create a link anyone can use to view this trip without logging in.* **Create link** makes it. The chips choose which parts it shows (**Map & Plan** always, then **Bookings**, **Packing**, **Costs** and **Chat**), and **Options** narrow it to **Travel & stays only** or **Without photos**. **Delete link** turns it off. See [Public-Share-Links](Public-Share-Links). +- **Trip invite link**: *Anyone with a TREK account who opens this link joins the trip as a member.* **Create invite link** makes one, **Regenerate** replaces it so the old one stops working, and **Disable** turns it off. See [Trip-Members-and-Sharing](Trip-Members-and-Sharing#trip-invite-link). + +Each link has a **Copy** button. Managing the links needs the **Manage share links** permission, by default the trip owner's. + +## Journal + +*Link one of your journals to this trip. Whoever you let in opens it right here in the Journal tab, live.* + +A trip can show one journal from the [Journey](Journey-Journal) addon. Once linked, the trip gets a **Journal** tab, marked with a book with a link on its corner, and the journal opens inside the trip for everyone you let in. It is the real journal, not a copy: what is written there appears in the tab as it happens. + +### Linking a journal + +1. Open **Trip settings → Journal** and press **Link a journal**. +2. **Choose a journal** from your own journals. A journal you only write in is not yours to give away, so it is not listed. Without a journal of your own the dialog says *You have no journal yet. Create one in Journey first.* +3. Under **Access for trip members**, give each member **No access**, **Read** or **Edit**. **Everyone can read** and **Nobody** set the whole list at once. +4. Press **Link journal**. + +Before saving, the dialog names the people the link would let in for the first time: *they will get access to this journal for the first time and from then on also see it in their own journal list.* + +Guests cannot sign in, so they are never on this list, and neither is the journal's owner, who has access anyway. + +### Once it is linked + +The area then shows the journal's cover and title, **Linked**, and what you may do in it: **Your journal**, **You can edit** or **You can read**. When only you can open it, it says *Nobody else from this trip has access yet.* + +- **Edit access** changes who of the trip may read or edit. **Access saved** confirms it. +- **Change journal** links another of your journals instead. +- **Unlink** removes the link. *The Journal tab disappears from this trip. Members who could only open the journal through this trip lose access; people you added in the journal itself keep theirs.* + +The access a link gives lasts as long as the link holds a member and that member stays on the trip. Someone who leaves the trip loses the access they had through it. + +### Who may link + +Linking a journal, or changing who may open it, gives other people access to that journal, so it needs both: you own the journal, and you hold the trip's **Link a journal** permission (by default the trip owner; an administrator can widen it to all members, see [Admin-Permissions](Admin-Permissions)). Taking the link down only takes access away, so either one is enough for **Unlink**. + +A member the journal is closed to, and who can do nothing about the link, does not see that the trip has one. Linking needs a connection; offline the dialog says *Linking a journal needs a connection.* With the Journey addon switched off, the Journal area and the tab are not shown. + +The [AI Assistant](AI-Assistant) can propose the link as a card too (*Show the journal in this trip*), which you apply like any other change. + +## See also + +- [Trip-Members-and-Sharing](Trip-Members-and-Sharing) +- [Public-Share-Links](Public-Share-Links) +- [Invite-Links](Invite-Links) +- [Journey-Journal](Journey-Journal) +- [Creating-a-Trip](Creating-a-Trip) diff --git a/wiki/Wanderer.md b/wiki/Wanderer.md new file mode 100644 index 000000000..d6d200ef6 --- /dev/null +++ b/wiki/Wanderer.md @@ -0,0 +1,84 @@ +# wanderer + +[wanderer](https://wanderer.to) is a self-hosted trail library: you keep your hikes, rides and routes there with their GPX files, photos and descriptions. TREK can read your own wanderer instance and bring a trail into a trip as a [tour](Tours), ready to put on a day. Each person connects their own instance; TREK only reads from it and never writes anything back. + +> **Admin:** wanderer is a switch inside the **Tours** addon. In **Admin → Addons**, open the Tours tile and turn on **wanderer** (*Users can connect their own wanderer instance and import its trails as tours*). Without it the connection section and the import button are not shown, and a request says *Your admin has not enabled wanderer for Tours.* See [Admin-Addons](Admin-Addons). + +## Connecting your instance + +1. In wanderer, open **Settings → Account → API tokens** and create a token. A wanderer token starts with `wanderer_key_`. +2. In TREK, open **Settings → Integrations** and find the **wanderer** section. +3. Enter the **Instance URL**, the address of your wanderer, and paste the **API token**. +4. Press **Test connection**. On success TREK says how many of your trails you can import, for example *Connected. You can import 12 of your trails.* +5. Press **Save**. The section then reads **Connected**. + +| Field | Notes | +|---|---| +| Instance URL | The address of wanderer itself. An answer that does not come from wanderer is refused with a hint to check the address. | +| API token | Checked for the `wanderer_key_` prefix before it is sent. Stored encrypted on the server and never shown again; the field is never filled back in. | +| Allow a self-signed certificate | *Only for an instance on your own network.* Relaxes the certificate check, nothing else. | + +**Changing the host clears the token.** A token belongs to the instance that issued it, so pointing the connection at a different address drops the stored token; type it in again before you test or save. + +**Disconnect** removes the address and the token. Tours you already imported stay in their trips exactly as they are. + +### Instances on your own network + +An address in a private network is accepted with a note: *If TREK cannot reach it, the administrator has to allow internal networks.* TREK reaches wanderer through the same strict guard as Immich, AirTrail and Dawarich, so an instance on your LAN needs `ALLOW_INTERNAL_NETWORK=true` on the TREK server. Until then a test answers *TREK may not reach that address.* See [Internal-Network-Access](Internal-Network-Access). + +## Importing a trail + +With a connection saved, the **Tours** tab of a trip shows a **wanderer** button next to **Plan new tour** while no tour is open. It opens **Your trails**: + +- **Search trails** searches your own trails. Other people's trails, public ones included, are not offered: *Only your own wanderer trails can be imported.* +- **Search this map area** limits the list to trails that reach into the part of the map you see. +- Each trail shows its grade, time, distance and ascent, and whether it is **Public** or **Private** in wanderer. One you already imported into this trip is marked **In this trip**. +- Clicked, a trail is drawn on the map with what its GPX file measures (**From the GPX file**) and its description. **Open in wanderer** opens it on your instance. +- **Import into trip** copies it into the trip as a tour of its own, marked **wanderer**. + +The import is a snapshot: *later changes in wanderer leave it as it is.* For a trail already in the trip the button reads **Open the tour**; when the trail changed in wanderer since, the preview says what changed (name, description, route) and **Import as new version** adds the new version beside the old one. A trail without a track or route cannot be imported, and neither can a trail file larger than 10 MB. Searching and importing need a connection. + +More on working with the imported tour is on [Tours](Tours#importing-a-trail-from-wanderer). + +## Checking the source of a tour + +An imported tour's **Origin** names wanderer as its source, with the date wanderer gave as its last change. **Check source** asks wanderer whether the trail changed since the import. Nothing in the trip changes: + +| Result | Meaning | +|---|---| +| **Unchanged since the import** | Nothing to do. | +| **Changed on wanderer** | The name, description or route differ. **Import as new snapshot** brings in the current version beside the tour. | +| **No longer available** | The trail is gone or can no longer be read with your connection. The tour stays as it was imported. | +| **No wanderer connection** | Connect your wanderer under **Settings → Integrations** to check. | +| **Another wanderer is connected** | Your connection points to a different instance than the one the tour came from. | +| **Cannot compare** | The import carries nothing to compare against. | + +## The background check + +**Check my trails for changes** in the wanderer section sends you a notification when a trail you imported may have changed. It is off by default, and dimmed until you connect. + +At most once a day, TREK reads the short record of each trail you imported, never its GPX file. It only tells you: whether a change comes in is up to you, through the tour's source check. What it can say: + +- **May have changed**: wanderer changed the trail's time stamp. Only the source check shows whether its content differs. +- **Changed**: wanderer's record shows another name or description. +- **Not checkable**: TREK could not judge this trail, for example because it is out of reach. + +The row shows when TREK last looked and how many hints are open; **Hints** opens **Hints on your trails**, where **Open the tour** goes to each one. The hints arrive as notifications too, under the event *wanderer: hints on your trails*, with a **View Tour** button; see [Notifications](Notifications). + +When wanderer does not answer, the check waits longer after each failure and the row says **Paused until** a time. When wanderer refuses the token, the row reads **Token refused** and the check resumes once a connection test passes or a new token is saved. + +## What TREK keeps + +- Your instance address, the encrypted token and the switches. The token is encrypted with the server's encryption key, and the rotation script does not carry it over: after a key rotation, enter the token again. See [Encryption-Key-Rotation](Encryption-Key-Rotation). +- The tours you imported, as ordinary tours of the trip, with where they came from. +- For the background check, when it last looked and the open hints. + +Connecting, changing and removing the connection, and switching the background check on or off, are recorded in the [Audit-Log](Audit-Log). + +## See also + +- [Tours](Tours) +- [Internal-Network-Access](Internal-Network-Access) +- [Notifications](Notifications) +- [Admin-Addons](Admin-Addons) +- [Dawarich](Dawarich)