Commit Graph

6019 Commits

Author SHA1 Message Date
Maurice 311321dc15 style(assistant): format the status selector 2026-12-01 00:50:29 +01:00
Maurice f511fe4fcf fix(assistant): preserve managed status gating
Only request managed status for the assistant addon. Cover the configured attachment path and keep operator-only gateway configuration out of the self-hosted environment reference.
2026-12-01 00:40:57 +01:00
Maurice 00e98b8711 feat(assistant): support the managed TREK gateway 2026-12-01 00:27:09 +01:00
Maurice fa23f94ee8 fix(native): show individual Cloud plan features 2026-12-01 00:27:09 +01:00
Maurice 6c45d16cba fix(native): retain the selected storefront offer during account checks 2026-12-01 00:27:09 +01:00
Maurice 857ce49962 fix(native): offer Start and Plus in the TREK Cloud catalog
Use storefront prices for purchases and allow existing subscribers to finish setup for retired products. Show the storage fair use policy and update the store descriptions for managed TREK.
2026-12-01 00:27:09 +01:00
Maurice f7847bf22c test(auth): check resolved passkey configuration before use
The Server lint warning ratchet rejected three non-null assertions. Check that the configuration exists before using it, and cover missing and out-of-scope origins.
2026-12-01 00:08:42 +01:00
Maurice d5a3404c47 fix(auth): bind derived passkey origins to the configured host 2026-12-01 00:02:04 +01:00
Maurice 75cc0a4de2 fix(plugins): restrict child runtime modules
Plugins access their storage through the scoped database API.
2026-12-01 00:00:32 +01:00
Maurice c0b28dd4da fix(auth): honor password registration policy during setup
Apply the resolved authentication toggles before creating a password account. Keep setup and invitations available when password sign-in permits them.
2026-12-01 00:00:31 +01:00
Maurice 4d3f7fd355 fix(memories): scope album link cleanup to its owner
Confirm trip access and the scoped album link inside the transaction before handling related photos. Treat a missing link as a completed removal.
2026-12-01 00:00:31 +01:00
Maurice 8335ac45f9 fix(ci): keep the photo picker within lint limits
Pass through the optional sheet coverage state and narrow the pending photo group before accessing it. Lower the test ratchet after removing a non-null assertion.
2026-11-30 23:13:53 +01:00
Maurice 114086f6e2 fix(mail-ingest): keep flight-like IDs from overriding bookings
Recognize compound booking references separately from flight numbers. Require flight evidence before overriding named lodging or restaurant types so a local mail reader keeps the intended schema.

Closes #3271
2026-11-30 22:53:21 +01:00
Maurice 714fc6beaf fix(journey): give the entry photo picker its own dialog
The entry editor capped the provider picker in a small panel, so filters and competing footers displaced the photo grid. Open the picker over the editor at the available height on desktop and at full screen on mobile. Keep queued photos and draft edits in the editor until it is saved.

Closes #3266
2026-11-30 22:53:21 +01:00
Maurice 8fc7745d59 fix(studio): paginate PDF exports at full sheet size
Remove the app scroll bounds from the print layout so every sheet paginates. Contain each sheet so clipped spreads cannot alter its printed scale.

Closes #3275
2026-11-30 22:53:21 +01:00
Maurice f6437d12cb fix(maps): keep residential listings out of sights
The Overture historic-site category includes residential listings. Omit those listings from sights while preserving explicitly historic places and the existing provider fallback.

Closes #3270
2026-11-30 22:53:20 +01:00
Maurice d0cf936bf6 fix(roadtrip): match cross-day returns to their rental
Keep located waypoints when the return desk is missing and assign them unique IDs. Join separate days only for the same hire car in both the planner and server. Keep the existing public terminal roles.
2026-11-30 22:27:20 +01:00
Philipp 7de6bc39cd fix(roadtrip): also take intermediate stops into account
A booking's intermediate stops are now part of the route drawn on the map, and
they show up in the day list under their place name. They no longer need the
pickup and return times to be filled in.

Roadtrips that span several days work properly too. A car picked up on one day and
returned on the next showed both days as empty, and only the first half of the
drive was drawn.
2026-11-30 22:27:20 +01:00
Luffy aa54643713 fix(trips): add titles to Unsplash search thumbnails 2026-11-30 21:59:16 +01:00
Maurice 126dbc4281 fix(ci): align journey gallery callback and theme ratchet
The gallery refresh is intentionally not awaited. Count one fewer raw text size after the gallery buttons start sharing the same style.
2026-11-30 21:58:01 +01:00
Maurice c05a8a299c fix(journey): refine dialog and gallery controls 2026-11-30 21:11:38 +01:00
Maurice 7765c94171 fix(journey): address reliability findings in sharing and Studio 2026-11-30 18:04:27 +01:00
Maurice 5e1bc7d910 fix(ci): check digest recipient IDs and unused translations accurately 2026-11-30 17:51:32 +01:00
Maurice 21391e483d fix(ci): resolve Journey strict checks and test contexts
Give the upload DTO an object for file-only requests, make UI error keys discoverable, and run the digest fixtures with the same ORM context as scheduled jobs.
2026-11-30 17:41:53 +01:00
Maurice 0c08a6dcb9 fix(ci): repair Journey route registration and shared client behavior
Register the public view route, align generated entities and test fixtures, and share the scoped reads and access switches. Keep gallery and notification writes in order, and submit the email subscription from the dialog footer.
2026-11-30 17:32:50 +01:00
Maurice 6d14eb6677 perf(journey): reuse time zone lookups when grouping large galleries 2026-11-30 17:10:09 +01:00
Maurice 8319554ce7 test(journey): cover public unlock and subscription screens 2026-11-30 17:08:34 +01:00
Maurice f848446131 fix(journey): handle large photo selections within the API limits
Allow larger JSON bodies on the draft-creation route, split oversized photo groups, and use the original geotagged times to assign photos between groups.
2026-11-30 17:06:03 +01:00
Maurice 21b8da53cf fix(journey): keep draft edits and share screens scoped to their source
Preserve typed titles until submit, require a valid photo preview, and clear entry and photo overlays when following another public share link. Keep committed drafts successful if realtime delivery fails.
2026-11-30 17:03:05 +01:00
Maurice 07fdcbcbee docs(journey): explain public links and new journal controls 2026-11-30 16:57:50 +01:00
Maurice ede109dce8 feat(journey): complete sharing, photo drafts and Studio maps
Connect the Journey backend to the web and mobile UI, including public access and subscriptions, day recordings, photo drafts and per-map framing. Preserve legacy recording responses and cover the new behavior in every locale.
2026-11-30 16:56:18 +01:00
Maurice 458227f489 fix(assistant): load the from-photos journey tools with the journey group
JourneyEntriesFromPhotosMcp was in no tool group, so the assistant offered
both tools as core on every step of every chat, and its write was not held
to the journey like the other journal writes.
2026-11-30 16:56:17 +01:00
Maurice bd795365c1 fix(journey): let the from-photos create take every group a preview hands out
A long journey of single-photo days yields more than 200 groups, and a
day without positions can hold more than 1000 photos in one group; the
client sends all kept groups in one call, which the contract refused.
2026-11-30 16:56:17 +01:00
Maurice a7b36fef62 fix(journey): keep place names between photo previews and count unreadable capture times
The reverse lookup behind MapsService keeps no cache, so every preview
(each gap change, each reopen) took the shared Nominatim slot again for
the same towns. Keep the names found, by rounded point and language,
bounded; failed or empty lookups are asked again. A capture time that
does not parse now counts in withoutCaptureTime instead of vanishing.
2026-11-30 16:56:17 +01:00
Maurice c36aae1022 fix(journey): read zoneless photo capture times as UTC when grouping
A taken_at without Z or offset went through Date.parse, which reads it on
the server's own clock, so the day a photo was grouped under depended on
the TZ the instance runs in. Read it as UTC like every writer stores it,
accept SQL's space between day and time, and take the language tag from
the shared TREK language map instead of a second copy of it.
2026-11-30 16:56:17 +01:00
Maurice 76b33a7e60 feat(journey): client repo and hook for draft entries from photos
Online-only api and repo over the new routes, parsed against the shared
contract, and a markup-free hook (with its pure choice model) that reads
the preview, keeps the chosen groups and titles across reloads and sends
the create, for the desktop dialog and the phone sheet to build on (#1920).
2026-11-30 16:56:17 +01:00
Maurice 9c8a33d400 feat(journey): create draft entries from gallery photos
Groups the gallery photos on no entry by local day, then by time gap and
distance, names each group through the geocoder (capped per preview, with
the country or the day as fallback) and writes the groups the traveller
keeps as draft entries with their photos in one transaction. Photos put on
an entry meanwhile or named twice are left out and reported; existing
entries are never touched. REST routes under
/api/journeys/:id/entries/from-photos and the MCP tools
preview_journey_entries_from_photos and create_journey_entries_from_photos
share one service and the journey edit right (#1920).
2026-11-30 16:56:16 +01:00
Maurice ebbd8c5362 feat(journey): contract and strings for draft entries from gallery photos
The preview and create request and response schemas for grouping a
journey's gallery photos on no entry into proposed entries (#1920), and
the toast strings the client hook reports with, in every locale.
2026-11-30 16:56:16 +01:00
Maurice 8a888efdf0 fix(journey): the digest of a protected link names no entry
A follower keeps getting the daily mail after the owner puts a password
on the link or changes it, so the mail named titles, dates and places
the password was meant to guard. For a link behind a password the
digest now only says there is something new and links to the journey.
2026-11-30 16:56:16 +01:00
Maurice c84ec093d7 fix(journey): a failed notification never fails the write it reports
The contributor invite and the comment notification read the actor's
name before the fire-and-forget send, so a failing lookup turned an
already saved contributor or comment into an error answer.
2026-11-30 16:56:16 +01:00
Maurice cbdc6850ca fix(journey): keep a protected link's photos out of shared caches
The photo proxies answer public, max-age, so a proxy or CDN in front of
TREK could hand a password-protected link's photo to somebody who never
unlocked it. For a link with a password every Cache-Control the proxy
sets is turned private.
2026-11-30 16:56:16 +01:00
Maurice 6ac15213d9 feat(mcp): add_journey_comment, the MCP side of commenting on an entry
The REST route let everyone on a journey comment, but MCP could only
list, hide and delete. The tool runs through the same service and
checks. The in-app assistant is not offered it, since a comment speaks
in the user's name to the journey's people and the link's readers.
2026-11-30 16:56:15 +01:00
Maurice 9bc0be1716 fix(journey): open the follower mail links under the public path prefix
The confirm and unsubscribe pages lived at /journey-follow/, which the
client does not treat as a public path, so a reader without an account
could be sent into the proxy re-auth flow. They now sit under
/public/journey-follow/ beside the shared journey itself.
2026-11-30 16:56:15 +01:00
Maurice f1e64ef686 feat(journey): read and write comments and followers in the client hooks
The data side of journey comments and following a link by email (#1702,
#1669), for the views to draw on, online only like the journey itself:

- api/journeySocial and repo/journeySocialRepo, parsed against the shared
  contracts.
- useJourneyComments: a journey's comments grouped by entry, add, hide and
  delete, read again on journey:entry:commented.
- useJourneySubscribers: the owner's list of followers and their removal.
- useJourneyPublicSocial: the comments a share link shows, a reader's
  comment and follow request, each answering what it came to.
- useJourneyFollow: the confirm and unsubscribe pages a follower's mail
  links open, posting the token once.
- useJourneyShareLink switches allow_comments and allow_subscriptions on
  their own, like the map extras.
2026-11-30 16:56:15 +01:00
Maurice 52552133e3 feat(journey): comment on journal entries and follow a share link by email
The people on a journey can now talk about its entries, and a reader of its
share link can comment there too and follow the journey by email (#1702,

- journey_entry_comments holds a comment under an entry: by an account or
  signed with a name through the link, plain text up to 2000 characters. It
  goes with its entry and journey; a deleted account leaves it as unknown.
  Everyone on the journey reads and writes them, the author or an editor
  deletes one, an editor hides one from everyone but the editors.
- The share link gains allow_comments and allow_subscriptions (default 0,
  kept when a save leaves them out). Readers comment under the entries the
  link shows, behind the link's password gate, with a honeypot field and a
  limit per address and link. The public payload says what a reader may do.
- journey_share_subscribers holds an address following a link, with double
  opt-in: one mail asks to confirm it, nothing else is sent before. The mail
  links open app pages that post the token, so a scanner changes nothing.
  The owner lists and removes the addresses; they go with the link.
- A daily job (journey-digest) tells everyone on a journey about entries
  published since the last run (journey_entry_published, their settings
  apply, not about their own), mails each confirmed follower once a day in
  their language with an unsubscribe link and a List-Unsubscribe header, and
  forgets addresses unconfirmed for a week. journey_entries.announced marks
  what was told; existing published entries start as told.
- The owner hears about a new comment (journey_comment). Both events are
  translated in every locale, as are the follower mails.
- journey:entry:commented pings the journey's people; the journal page
  leaves it to the comments reader instead of reloading.
- MCP: list_journey_comments, set_journey_comment_hidden,
  delete_journey_comment, list_journey_subscribers, remove_journey_subscriber,
  and create_journey_share_link takes both switches like the REST route. The
  assistant is not offered the follower tools.
2026-11-30 16:56:15 +01:00
Maurice 2fa3fa4e7a feat(journey): read and unlock protected share links in the client hooks
The data side of the protected journey link (#2553), without markup yet:

- journeyApi.unlockPublicJourney posts a reader's password; the answer sets
  the link's unlock cookie.
- useJourneyPublic tells a locked link (access 'locked') and an expired one
  ('expired') apart from a broken one, and unlock() reports 'ok', 'wrong',
  'rate_limited', 'expired' or 'failed', reloading the journey on success.
- useJourneyShareLink carries has_password, expires_at, view_count and
  last_viewed_at, and setProtection() sets or clears the password and the
  expiry, shown only once the server took it.
2026-11-30 16:56:14 +01:00
Maurice ea9d66868a feat(notifications): tell a new journey contributor they were added
Adding somebody to a journey was silent (#1669). The new journey_invite
event goes to the person added, in-app with a button to the journey and on
every channel they use, once: posting the same person again only changes
their role. The REST route and the MCP tool both go through
JourneyService.addContributor, so both send it; the send is fire and forget
like the trip and collection invites.

The event is listed while the Journey addon is on, with its label in the
notification settings, and its texts are translated in every locale.
2026-11-30 16:56:14 +01:00
Maurice 55fc5f6679 feat(journey): protect a public journey link with a password and an expiry
A journey's share link can now ask readers for a password, stop working on
a date its owner picks, and count how often it was opened (#2553, #1702,
no password, no expiry and no views.

- journey_share_tokens gains password_hash, password_version, expires_at,
  view_count and last_viewed_at (append-only migration, SQLite and
  Postgres, added only where missing).
- The password is hashed with bcrypt at the account cost. POST
  /api/public/journey/:token/unlock checks it, rate limited per address
  and link (only refusals count), and sets an httpOnly cookie scoped to
  the link's API path holding an HMAC over the token and the password
  version. Secure follows the request, so plain-HTTP installs keep working.
  Changing or removing the password raises the version and locks every
  old cookie out.
- Every public route, the photo proxies included, first checks the link:
  404 unknown, 410 expired (JOURNEY_LINK_EXPIRED), 401 locked
  (JOURNEY_PASSWORD_REQUIRED).
- Saving the share switches keeps the password and the expiry; the owner's
  read returns has_password, expires_at, view_count and last_viewed_at,
  never the hash, and none of it reaches the public payload.
- A reader is counted once a day per address and browser, in an in-memory
  store behind an injectable port; a restart may count them again.
- create_journey_share_link takes password and expires_at like the REST
  route; get_journey_share_link reports has_password.
2026-11-30 16:56:14 +01:00
Maurice ddfb7ad7ad fix(studio): read a finer country outline only as a plain path
The trip PDF writes an outline's d into an SVG string as it stands. A detail
file that carries anything but moves, lines and closes in numbers (a stale
cache, a proxy in between) is now refused, and the coarse outline is drawn.
2026-11-30 16:56:14 +01:00
Maurice 94b2352cb3 fix(studio): a map of the whole journey says so, and templates keep a map's scope
A map without the revision 12 scope fields is read as one saved before them,
and its scope is guessed off what it holds. New whole-journey and trip maps
wrote none of the fields, so a map placed on a one-country journey was taken
for a map of that country once the journey reached a second one, and never
widened again. bookTravelMap and the auto layout's journey map now write
country, dayDate and stop as null, and a refresh writes the scope of an old
map down once it is plain (its trip, a recorded track, several countries).

Applying a template drops what a page's map is of and its own view; they now
travel with its stops. Saving a page as a template strips them, like the
stops themselves.

Parity digests regenerated for the pages that hold a journey map: 2 in
auto-layout.parity.json, 12 in design-templated.parity.json.
2026-11-30 16:56:14 +01:00