Commit Graph

2514 Commits

Author SHA1 Message Date
Maurice dacf19b4d5 style(server): format the assistant proposal guard
The Server lint formatting check rejected the assistant agent and its regression test. Apply the repository Prettier configuration to those two files.
2026-12-02 10:23:11 +01:00
Maurice 103631d5fc Hold identical assistant changes only once per step 2026-12-02 10:23:11 +01:00
Maurice 10fecf4e80 fix(ci): document the exact migration filter
The metadata substring filter only finds candidates. Exact timezone comparison in the migration ensures SQLite and PostgreSQL update the same records.
2026-12-02 09:59:29 +01:00
Maurice 17c4d69e40 fix(airports): use Bahrain time for Bahrain flights
Correct the airport data and repair affected flight endpoints and metadata during upgrade. Preserve stored local flight times and legacy metadata encoding.

Closes #3294
2026-12-02 09:45:20 +01:00
Maurice d6184559e9 fix(assistant): keep OpenRouter turns in one routing session
Pass a stable conversation session to OpenRouter so turns can reuse the same provider route. Namespace locally allocated thread IDs across server processes.

Closes #3298
2026-12-02 09:45:19 +01:00
Maurice 3089aee593 fix(journey): align media validation with server checks
Validate spooled uploads in order with the shared iterator and keep media format detection in a shared utility. Adapt the controller unit fixtures and cover raster signatures, including animated PNG.
2026-12-02 09:29:33 +01:00
Maurice 24ddc3e4b0 fix(journey): validate and safely serve media uploads 2026-12-02 09:21:51 +01:00
Maurice 56b4568a16 test(platform): cover static asset cache boundaries
Exercise the filename and path boundaries used to decide which static assets can be cached permanently, including unhashed Brotli copies.
2026-12-01 21:22:35 +01:00
Maurice e539860530 fix(quality): resolve reliability findings on dev
The Sonar quality gate rated new code D. Preserve focus and keyboard interaction through native controls and shared dialog behavior. Replace ambiguous regex scans with bounded parsing and make numeric coercion and initialization explicit.
2026-12-01 21:06:05 +01:00
Maurice 0d6a432967 test(server): type the hosted assistant regression on ES2022
Use the lookup overload for all addresses and drain the stream with the existing TypeScript target. Server types rejected the default lookup overload and Array.fromAsync.
2026-12-01 19:37:29 +01:00
Maurice 89035059ec fix(cloud): route the hosted assistant through its private gateway 2026-12-01 19:28:28 +01:00
Maurice b77c246df4 fix(deps): keep Lucide SVG markup and Undici tests compatible
Build standalone SVG icons without a React context. Use accessible actions in tests and give the mocked dispatchers the interface the adapter expects.
2026-12-01 13:44:02 +01:00
Maurice 7f4ece2e6f chore(deps): update npm packages and adapt major upgrades
Resolve the MikroORM packages together and use the dispatcher adapter with older built-in fetch implementations. Preserve existing Lucide names and regenerate the Studio and SDK catalogs.
2026-12-01 13:32:28 +01:00
Maurice a14b6a61e6 chore(server): remove resolved plugin type errors from the baseline 2026-12-01 12:29:34 +01:00
Maurice 871135edeb refactor(plugins): generate SDK egress policy from the server 2026-12-01 12:24:32 +01:00
Maurice c22c464e68 fix: keep security checks in sync with their contracts
Mirror the egress policy in the standalone SDK and check its entire shared section. Keep entrypoint assertions aligned with the debug flag and document the mutually exclusive OIDC transactions.
2026-12-01 12:04:55 +01:00
Maurice 3c2dc51439 fix(plugins): validate stable egress options
Keep egress comparisons independent of mutable runtime methods and pass the same normalized options to validation and the socket. Restrict process signaling from plugin workers and disable signal-initiated debugging on standard server starts.
2026-12-01 11:56:24 +01:00
Maurice 28eea68559 fix(media): bound image work before public rendition
Check avatar uploads and raster fallbacks before decoding. Limit compressed bytes, decoded dimensions, GIF frames and the combined TIFF page budget.
2026-12-01 11:56:24 +01:00
Maurice 1ff8a814ae fix(oidc): verify mailbox identity before linking accounts
Preserve the provider mailbox on new accounts. For existing accounts, use the stored issuer and subject or check mailbox identity before linking. Keep the candidate lookup and identity update inside the same transaction.
2026-12-01 11:56:24 +01:00
Maurice e605d0bcab test(config): cover managed assistant boot validation
Cover the gateway tuple, HTTPS restrictions, and credential redaction. Mask the configured URL on schema failures because malformed URLs can contain credentials.
2026-12-01 00:52:42 +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 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 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 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
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 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 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 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 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 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 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 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