Commit Graph

3078 Commits

Author SHA1 Message Date
Luffy 7a66a54e66 fix(dashboard): focus the title in desktop trip forms 2026-12-02 14:46:23 +01:00
Maurice 12483f618f fix(journey): give the public gallery a definite width
Keep both centered content layouts from collapsing before Firefox loads gallery thumbnails.

Closes #3296
2026-12-02 09:46:23 +01:00
Maurice a4cb6c69d8 chore(lint): lower the client ref-warning baseline
The plugin frame permission check now reads the store when needed. GitHub CI reports 384 react-hooks/refs warnings instead of 385.
2026-12-01 22:07:41 +01:00
Maurice 6e224cb7a4 fix(plugins): bind bridge replies to the active document
Keep pending replies tied to their original frame and verify the current permission before returning location data. Release watches when their frame detaches and preserve live replies across host context updates.
2026-12-01 22:00:45 +01:00
Maurice 756ef14b97 fix(client): preserve explicit dialog focus and verify accessible controls
Keep the focused search for new places and title fields in explicitly opened dialogs. Assert the native ride badge button and the pointer grip tooltip in the existing tests.
2026-12-01 21:13: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 60a30afb81 fix(deps): narrow Lucide icon types and lower the lint baseline
Keep the typed icon lookup aligned with the runtime namespace and record the three removed test assertions.
2026-12-01 13:51:32 +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 0d521f0930 test(transit): cover long labels in both journey details
Exercise a line with a provider colour and no foreground override on desktop and phone. Confirm that the badge can wrap and leaves room for the rest of the itinerary.
2026-12-01 11:42:31 +01:00
Maurice 7fc011408a test(transit): find mode icons on the line badge
The search test must look for the icon beside the label inside the shared badge.
2026-12-01 11:28:14 +01:00
Maurice 8f20f9f7ea test(transit): check the rendered line badge colours
The booking test checked the nested label after the badge layout changed. Assert the provider colours on the outer badge that sets them.
2026-12-01 11:21:52 +01:00
Maurice 67b65a7647 fix(transit): keep stop names readable beside long route names
Line badges could take the width of a transit row and squeeze its stops. Bound badge width across the itinerary views, wrap full labels in details, and keep compact summaries within their container.

Closes #3287
2026-12-01 11:11:53 +01:00
Luffy 82b2a530f3 fix(places): add titles to Unsplash list cover thumbnails 2026-12-01 15:31:01 +08:00
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 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 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 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 8319554ce7 test(journey): cover public unlock and subscription screens 2026-11-30 17:08:34 +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 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 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 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 5990792e0b feat(studio): maps framed by hand, across the antimeridian, with the small islands
The vector map draws a hand-framed view as given, widened to the frame's
proportions as the fit always was, and the tile grid takes the same
extent. A view east of 180 lifts the stops, tracks, roads and outlines
west of it by a turn, so Fiji is one map rather than two halves of the
world. The fit, the bows and the route's extent move to travel/mapFit.ts,
which takes TravelElements.tsx from 1559 to 1332 lines.

Hawaii and other small islands vanished because the bundled outlines
drop every ring below 1.2 % of the mainland (#3056). A finer set, built
from the same admin-0 boundaries by scripts/build-country-detail.mjs, is
served as one static file per country under country-detail/ and loaded
when a map's route (or its own view) is regional, or when coastDetail
asks for it; the coarse outline stays the fallback offline and until a
file arrives. The decision reads the route, not the fitted window, since
fitted to its countries a Hawaii trip falls back to the whole United
States. The export waits for the files before the sheets render, the
trip PDF's outline map loads them for a regional route, and the service
worker keeps them once fetched without precaching them.
2026-11-30 16:56:13 +01:00
Maurice d6fd916098 feat(studio): a book map can be of a country, a day or one stop, framed by hand
Book schema revision 12 adds five optional fields to the map element:
view (a hand-framed box, east up to 540 for the antimeridian), stop,
country, dayDate and coastDetail. Absent means a map saved before them,
null means not narrowed that way.

routeFor, isStale and refreshPatch honour every scope and never widen a
narrowed map to the whole journey. Country maps from the travel looks
and the entry-page map of the auto layout carried tripId null like a
journey map, so refreshing one from the inspector turned it into the
whole route; maps saved before revision 12 are now read off what they
hold and refresh writes their scope down. The looks and the auto layout
write the scope from now on, so the parity digests of those pages move.

The book engine's add takes a country, a date or an entry as the map's
scope, style takes view and coastDetail, and describe-spread says what a
map is of. Pasting a style never copies a map's view.
2026-11-30 16:55:55 +01:00
Maurice 818008a1b5 feat(journey): read GPX days in the client and keep them apart by source
The recordings api and repo send a GPX file to the journey and drop a day
of one source. useJourneyRecordings keeps the days of both sources: the map
and byDate show one day per date, the GPX one first, bySource holds each
source's own, and the Dawarich dialog and day import compare only with
what Dawarich kept. useJourneyGpxImport reads a file, shows its days at
once and says why a file gave none, in every language.
2026-11-30 16:55:55 +01:00
Maurice 535503b73d fix(journey): keep photo deletes out of the assistant and never let the capture reader block an upload
delete_journey_photos removes uploaded files for good and has no undo; its
generic approval card could only list ids, so the assistant is not offered it.
External MCP clients keep the tool.

A HEIC upload no longer fails when the lazily loaded capture reader cannot be
loaded: the photo goes up without its capture, as before. The upload schema's
doc comment is back on the schema it describes.
2026-11-30 16:55:54 +01:00
Maurice 78c0f65de4 fix(journey): keep an iPhone photo's capture time and place through the HEIC conversion
The browser converts a HEIC to a JPEG before it uploads it, and that
JPEG carries no EXIF, so iPhone photos arrived without their capture
time and GPS. A small lazily loaded reader now takes DateTimeOriginal
with its offset and the GPS pair from the HEIC's Exif item before the
conversion, and journey photo uploads (gallery, entry, Studio) send them
as optional taken_at, lat and lng fields.

The server reads those fields leniently (an ISO instant between 1900
and tomorrow, a pair inside the globe that is not 0,0) and hands them to
the capture backfill only when the request carried one file. They fill
in only what the file's own EXIF lacks and go through the existing
COALESCE write, so a stored value is never replaced. Covers and place
images keep the plain conversion and never carry a location.
2026-11-30 16:55:54 +01:00
Maurice 555027f10f fix(journey): serve a medium preview to large photo tiles
Entry cards and the entry photo grid loaded the provider thumbnail (about
250 px for Immich) and drew it blurry. Photos now have a medium "preview"
rendition: Immich's preview, Synology's xl and a local photo's 800 px
thumbnail. GET /api/photos/:id/preview serves it behind the same access
check, and both share link photo routes now hand a preview on instead of
reading every size but thumbnail as the original. The entry grid, the
entry covers, the phone feed cards and the share page's large tiles ask
for it; small tiles keep the thumbnail.

The Synology picker named no size and got the 240 px rendition; its
tiles now ask for the medium one.
2026-11-30 16:55:53 +01:00
Maurice dbf011f026 fix(ci): use the bound database for map defaults and retry preloads
Write both defaults in one guarded statement so a SQLite source imported by the Postgres suite needs no Postgres lock. Release a failed speculative chunk promise so opening the map can retry it.
2026-11-30 16:45:35 +01:00
Maurice 54c54d5e65 fix(ci): repair map fixtures and keep renderer dependencies layered
Use the engine write lock for map defaults and clean the metadata-free test snapshot with Kysely. Model the Leaflet bridge option, keep the renderer failure state below the settings store, and make the tile tests independent of the transpiler quote style.
2026-11-30 16:34:55 +01:00