- index.css stays at its size: the map canvas colour moves to its own
stylesheet.
- The rating badge on map markers takes its amber and white from a class in
ratingBadge.css instead of inline literals; the theme entry drops with it.
- Strict mode: the identity a link joins is resolved without a widened union,
the description of an entry's origins is string or undefined, and the map
search rows are typed.
- knip: PLACE_NAME_ATTR is module private, the linked-by enum names the values
the service writes, and the unlink contract is its own described schema
rather than a second name for the use schema.
- The duplicates hook test reads toasts through a module mock instead of the
window hook; react-hooks/refs is lowered to the count the run measured.
- Tests follow the rename to Places and the list icon on an edit.
All places offers the pairs that look like one place: both sides side by side
with what differs marked, "keep this one" to group them as one place of the
user's own (undo right after), and "not the same place" to set a pair aside for
good. Desktop dialog and phone sheet share usePlaceDuplicates; every locale has
the new strings.
What the last dev run flagged on the client:
- Tailwind's Prettier plugin had trimmed the leading space of conditional class
names (col-filter-btn, col-lrow sel, col-split map-full, col-detail docked),
so the filter row and the open row lost their styling; those classes are now
joined so the formatter cannot glue them.
- The dock position lives in one helper for the lists and All places, which
moves the measured-position markers there instead of adding new ones.
- usePlacesLibrary is split into filters, pages, detail and cover hooks that
derive their loading state instead of setting it inside effects; the big
sheets and views are cut into parts under the complexity limit, dynamic icons
go through createElement, originName moves out of a component file.
- formatRange is guarded like in the packing export, the cover lookup skips
places without a position.
- Tests follow the rename to Places, the category icon, the default list icon
and the new trip collections store; react-hooks/refs is lowered to the count
the run measured.
- The rating on a place is a round badge again, in the list and on the map.
Review findings on the place identities and trip list links:
- The assistant offers PlacesLibraryMcp, PlaceIdentitiesMcp and
TripCollectionsMcp with the collections group (done with the CI fix).
- Undoing a merge restores the entries as they were: the merge logs, in its
moved_link_ids JSON, each link it moved and each link it made with the use
that link names, and whether the merged side became an own place only for
the merge. The undo deletes what the merge made and moves the rest back,
and only touches a link still in the leading place naming the same use, so
a link id SQLite hands out again never moves someone else's link. The
sweep counts a merge as spent by the same rule. Same unreleased migration,
no schema change.
- A use can be taken out of an own place by the user's own link row also
once its trip or list is out of reach; the answer then holds no entry, and
the place left can be merged again.
- A dismissed duplicate is kept by one use of each side (an own place by its
first link) and matched by the uses each entry holds, so it stays out when
an entry becomes an own place or a merge is undone.
- link() checks the named uses with one targeted read instead of reading
every use of the user, and the library reads its rows in blocks of 500 ids.
- Saved place reorders and the trip tags of a copy run one statement after
the other again; a copy takes the first spelling of a tag name, as before.
- Unlinking a list from a trip takes place_edit alone, so a link to a list
the writer cannot open can be taken off; a member leaving or taken off the
trip takes the links whose list nobody left on it can open.
- The linked lists and their map places sort by lower(name), then by id, the
same on both engines.
- list_all_places names the own:<id> keys and identity_id (MCP and wiki); the
undo, unlink and trip unlink descriptions say what they do now; README
counts 451 tools.
Push run 46275645144 on dev (f69a4c1a2) was red in these jobs:
- Server types: UserPlacesRepository.create, UserPlaceMergesRepository.create
and UserPlaceLinksRepository.insert shadowed MikroORM's EntityRepository
methods with other signatures (TS2416), which also broke defineEntity on the
three entities (TS2769). They are createOwn, record and insertUses now.
- Server lint: collections.service.ts had grown to 1411 lines against 1410.
The trip tag lookup of a copy moved into collections.helpers.ts
(tripTagIdsOf, tagKeyOf); the size baseline is lowered to the 1398 it holds.
- ASTCAP-001/002/005b: the trip chat core had taken in PlacesLibraryMcp,
PlaceIdentitiesMcp and TripCollectionsMcp, so core and the tours group
offered 132 tools against 128. They load with the collections group now.
- PLIB-001, PLIB-MCP-001 and the places library e2e: the two entries named
Museum tie on the name and go by their anchor, which the expected order
hard coded the other way. The fixture orders every tie by its anchors.
- ENT-003 and CLASSFIELD-002: the five new entities and their 18 NOT NULL
columns without a default are counted.
- Shared tests: collections.ratingBadge was missing in 26 locales; each has
its translation now.
- A user can group the uses of one place (trip places and saved places) into a
place identity of their own (user_places, user_place_links). It is personal:
it groups their "All places" and is never written into a shared trip or list
row. An identity without a use they can still reach is not shown, and one
left without links is pruned on their next write and nightly.
- Possible duplicates are suggested server side (same provider id, or the same
name at the same spot), each pair with what differs and whether the user may
merge it. A merge joins two identities in one transaction and can be undone;
a dismissed pair does not come back. No trip or list row is deleted or changed.
- A trip can link lists (trip_collection_links, needs place_edit and access to
the list). A member sees a linked list only with their own access to it; the
map layer lists its places and whether each is already in the trip.
tripCollections:changed tells the members to read their view again.
- REST, MCP tools and client data layer for all of it; migrations on both
engines, additive only.
- CI: the stage 1 to 2 places-library helper types, and the await-in-loop and
non-null counts it had raised.
- Collections is Places now: /places opens "All places", every place of the
trips and lists with where it comes from, the same filter row (where from,
status, category, order), map bar (search, lock, list toggle) and place sheet
as a list; /places/saved and /places/:id are the lists, and the old
/collections links still land there. On the phone the same, with its own
sheet. A place sheet shows each trip (planned day or trip dates, stay,
booking, notes) and each list (status, labels, rating, notes) as one row
that opens it.
- The rail: a calm "New list" with its plus tile, All places and All saved as
views, a "My lists" heading, every name on one edge. Lists can carry one of
24 symbols, shown in their colour in the rail and the editor.
- A saved place's row keeps to two lines: its category as an icon before the
name, its average vote as a star on the picture. Map pins wear the same star.
- The place forms put the category in front of the name as a tile that opens
the category list, instead of a row of chips.
- All saved gets a subtitle; the import dialog opens centred.
- Fixes: a pasted coordinate pair splits from either field of the place form;
"more" in All places frees itself when a filter changes mid-load; place
names on the trip map and the rating badge follow the reading direction.
A read-only overview of every place a user can reach: the saved places of
their lists and the places of their trips, viewer trips included, with tours,
tracks and the stops of a drive left out. A saved place and a trip place are
one entry only when the saved place came from that trip place, the trip is
still open to the user, and both agree (a provider id, or the same name at the
same spot); anything else stays apart. Every entry names where it comes from
and whether it may be changed there.
- GET /api/addons/collections/library/places: paged by cursor, search,
category, kind, list, trip and status filters, counts per kind.
- GET /api/addons/collections/library/places/{trip|list}/🆔 one entry with
what each origin keeps on its own (notes after the existing rights, labels,
ratings, a trip's planned days, whether a stay or booking uses it).
- MCP tools list_all_places and get_library_place.
Nothing is written and nothing migrates; the rights are the existing list and
trip checks, read on every call.
- A list keeps its own order: drag a place by its grip (desktop and phone) or
move it with the arrow keys. Reordering is off while a search or filter hides
places and the list says why. New PUT /collections/:id/places/reorder and the
MCP tool reorder_collection_places; new places go to the end. Client and
server now order ties the same way (sort_order, oldest first, id).
- Copying saved places into a trip no longer takes their notes and tags along
unasked. The picker offers both; a tag taken along becomes a trip tag (a trip
tag of the same name is reused), never someone's personal tag.
- The source trip and place a saved place names are only kept when the user can
open that trip and the place belongs to it.
- A KML or KMZ map can be read into a list: the dialog lists every placemark to
keep or leave out and says which entries were skipped and why
(POST /collections/map/read writes nothing; the import does).
- A saved place without coordinates says so and can be looked up on the map
from its edit form, on the phone too, where a missing position could not be
added at all. A typed address without a pick says it will not be on the map.
- The trip map can show the place names beside the pins (desktop and phone,
both renderers). Names that would cover another pin or a control give way,
the selected place and the planned stops first.
SonarCloud counted the two new lines in PostgresEngine.schemaBootstrap as uncovered: the Postgres lane runs them but does not feed the coverage it reads. PGENGINE-BOOT-001/002 run the bootstrap against a stand-in ORM whose first statement records the request context it runs in, on its own and inside a caller's request.
Server lint: src/db may not import src/nest, so the Postgres engine opens the request context with RequestContext.create itself, as demo-reset and the backup restore already do. Server types: the base EntityManager has no execute(); RESTORE-002 reads through the connection.
Restoring a backup whose database was behind the running version migrated it inside the admin's HTTP request. A MikroORM migration's getEntityManager() pins the migration's transaction on the EntityManager of the context it runs in, which was the request's. Once the migrations committed, every later read on that request failed with "Transaction is already committed": the storage registry reload kept the pre-restore config (uploads, including the archive's own, went to the old backend), and the restore's audit row was lost.
Both engines now run their migrations in a request context of their own (runSchemaBootstrap on SQLite, bootstrapPostgresSchema on Postgres), so the transaction stays on a throwaway EntityManager, at boot and on restore alike. RESTORE-002 restores a file six migrations behind head inside a request and reads on through that request's EntityManager.
Closes#3264
Zoomed in, a country with visited regions kept about a fifth of its colour under its other regions. It now keeps about a twentieth, as in the regions view, so only the regions really visited carry the country's colour.
A traveller who visited only Alberta saw all of Canada colored on the zoomed-out globe. A new layer switch, Regions instead of countries, keeps the coarse regions of every country with a visited region on screen at every zoom: the engine loads and holds them (setPinnedRegions), the renderer draws them at full strength with faint inner borders, and the country itself only tints faintly beneath them once they are drawn. The switch is remembered per device, on the desktop layers dialog and the phone sheet, in all 28 languages.
Also without the switch, a country with visited regions now steps far back once its regions fade in (to about a fifth instead of two thirds), so the regions really visited stand out from the rest of the country.
Bind the realtime activity port to the existing SessionsService at app startup to remove the domain import cycle. Check the Atlas mesh through its triangle indices because degenerate rings can leave vertices that never contribute to the fill.
Client types: Array.at is past the lib target, typed mocks where a spy is called. Client lint: mock components named so hooks may run in them, state reported from effects instead of written into props, promises voided or awaited. Client tests: class order as passed, month names checked in Japanese whatever the ICU build, mesh vertex counts asserted by shape, the buffer growth case built from many small squares instead of one strip that took 15 s, the shooting star tests driving the sky's own schedule, and reduced motion mocked once so it no longer silences later tests. Server: the hidden-setting cases as it.each (no-await-in-loop), and the presence branches the realtime 100% threshold asks for.
dispose() freed the world and region layers only; the ocean, arcs, outline, pick texture and framebuffer, status textures, shared buffers and programs stayed on the context, which React keeps alive across a remount, so each visit to the Atlas left them behind.
SonarCloud measured 16.9% coverage on this PR's new code. Tests now cover the WebGL globe engine (boot, caching, input, camera, regions, prefetch) and renderer (against a fake WebGL2 context that reads the real shaders), the paint, labels, sky and pins, the central useAtlasGlobe hook and the hub hooks, the snapshot, account queue and Atlas repos, every desktop and phone hub view, the server's people, flights and mesh routes, the shared badge rules, and the new view transition, warm bags and kept planner maps.
Server lint: the realtime gateway injected the user_sessions repository, a table the sessions domain owns; it now asks SessionsService. The presence tests reuse the handshake's gateway instead of building one more by hand (test-new-service ratchet).
Client tests: the packing bags kept per trip leaked from one test (and one list) into the next; bags read ahead are now taken once as the list's first state, and only while bag tracking is on. The planner hook hands the page planMapKept, tourMapKept and the tour stage's class, so page tests that mock the hook keep working and TripPlannerPage is back at its size baseline (1127); the B4A wiring test reads the new condition.
Client lint: max-depth in src is down to 19, the baseline follows; the new websocket tests call onopen with ?. instead of a non-null assertion.
Online in the user list meant any open socket, so a tab left in the background showed as online for days while its last activity stood still. The client now sends a presence frame on connect and on every visibility change; only sockets whose tab is visible count as online (one that never sent the frame still counts, so older clients are unchanged). While a tab is in front, the gateway writes its session's last_seen_at at most every five minutes, on the frame and on the heartbeat, so last activity follows the online state.
Two seconds after a trip opens, the code of every tab panel loads in the background, and the packing list's bags with it, which are kept per trip so Lists opens with its bag sidebar in place. The plan and tour planner maps stay mounted (hidden) once opened, so switching between them no longer starts a map again and flickers. Not on a narrow screen, where the plan tab portals its own controls over the page.
loadAll ran eight requests one after another, and the holidays fetched each calendar and year in turn, behind a full spinner on every visit. Plan and year settings now load together, then the years, then everything for the year at once; the holiday calendars are asked in parallel and laid out in the calendars' order. The spinner shows only for the first load; coming back keeps the calendar and refreshes it.
The desktop now runs the View Transition the phone already had: one short cross-fade under a navbar that stands still. The route fallback holds the previous page until the new one is ready (at most 350 ms), so the full-screen spinner no longer flashes. Once signed in, the main sections' code loads in the background, so the first switch to one does not wait for it. The shared transition helpers move to utils/viewTransition.ts. The navbar tabs lose their title tooltips; their aria-label stays.
Every visit read the manifest and the world file again and triangulated the countries in the worker, which showed the loading notice for about a second. The manifest and the built world meshes are now kept for the tab's lifetime, keyed by the content-hashed file name, so coming back puts the globe up at once. A page load starts empty, so a deploy's new geometry is read as before.
At 320 px the three options of "Visible to" ran past the window's edge and "Selected" was cut off. The window is 380 px wide now, still capped to the screen.
- The globe, sky, glass and medals use black and neutral greys instead of
blue tones; the atmosphere glow is a quarter of its former strength.
- No shooting stars on load: the visited set is compared only once the
Atlas has loaded. Now and then a shooting star crosses on its own.
- The stars stand still while the Earth turns, and three constellations
(Big Dipper, Orion, Cassiopeia) are drawn from their stars' real places,
sized and tinted by brightness.
- Wishlist stripes are slices through the globe, so they stay on the land
as it turns.
- Country names keep their own element while shown and hold their place
against a near equal neighbour, so they no longer jump or flicker.
- The flat map fades into the sky towards its cut edges at the poles, and
the view's latitude is held where those edges stay off screen.
- The globe's geometry code types against geojson and
topojson-specification; both are listed as client dev dependencies now
(already installed through @types/topojson-client).
- Constants, helpers and types used only inside their own module lose
their export.
- The GeoJSON types only the classic Atlas map read are removed; the knip
baseline follows the lower counts in types.ts and offlineDb.ts.
- lint:i18n-keys: common.reset, dawarich.bucket.visitedFrom and the two
mobileAtlas keys were only read by the classic map and its popups; they
go from every locale, and the atlas entry follows its lower count.
- lint:tx: AtlasPeopleService.profile also carries @txIndependent, so the
method itself is no longer reported for its cache refresh reads.
- lint:dup: the add-a-wish form state and the tour figures of the hub were
written twice, once per view; they live in useWishAddForm and
tourHubFigures now, and both views read them.
- lint:tx: AtlasPeopleService.profile only writes through the region cache
refreshes of the Atlas reads it calls, each complete on its own, so it is
marked @txStandalone.
- The public config's feature switches, the Atlas comparison among them,
move into a helper, so auth.service shrinks instead of growing past its
size baseline (lowered to the new length).
- French "continents" in the many form is the French word too.
- useAtlasCountryActions no longer imports the API: off the offline list.
- The eslint baseline follows two lower counts.
The second run of the globe Atlas was red on:
- Client lint: the engine getter is a stable callback now, so the hooks
that call it name it (and the refs and setters they read); an unused
navigate and a seven parameter label helper are gone.
- Atlas coverage: the mesh controller and the people and flights routes
get unit tests, an unused region name helper is removed.
- The French "Atlas" is marked as the same word, index.css is back at its
length, the server people service is formatted, and the baselines drop
the deleted AtlasPage and follow the lower counts.
Client lint, checks and tests were red on the globe Atlas:
- The views own the globe and sky refs and hand them into useAtlasGlobe,
so reading its state while rendering no longer counts as reading refs.
- Helpers that shared a file with components move to their own modules
(badge tiers, medal label, Dawarich notes, hub tabs, period label).
- The place search derives its loading state, the search resets its
active row on input, and the two silenced hook dependencies are named.
- placeLabels, the hover chip and the overview figures are split up.
- Raw text sizes become type tiers, the badge unlock docks on --z-overlay.
- The stats card test follows the GlobeStat props; baselines lowered to
the counts the run reported.
The Atlas page is now the globe. Everything the classic map offered
carries over: visited countries and regions, planned countries, the
wishlist with places and target dates, Dawarich, tours, plugin layers and
the place search. New:
- regions on the globe, with how much of a country has been seen
(#2675, #316, #487)
- flight arcs (#1369, #2642)
- a hub with statistics, badges, wishlist, Dawarich, tours and travellers
- an instance ranking, traveller profiles and a compare overlay
- a timeline that plays back how the map grew
- phone layouts of their own: sheets, chips and swipe actions
The classic Leaflet Atlas and its phone screen are removed.
One shader morphs an orthographic globe into a flat map as the zoom
grows. Country and region meshes are built in a worker from the TopoJSON,
picked on the GPU and coloured from a status texture; borders, coasts and
flight arcs are instanced screen-space lines. Regions are fetched ahead of
the zoom and kept to a bounded set; labels avoid each other. Includes the
day and night line, the moon in its phase and the badge medals.
The Atlas reads go network first and fall back to a snapshot kept in a new
Dexie table (v17, append-only). Marks, unmarks and wishlist deletes made
offline wait in their own account-level queue, replayed in order with an
idempotency key, and every read lays them over the kept answer.
- GET /api/addons/atlas/flights folds the user's flight bookings into
routes, airports and totals for the globe's arcs (#1369, #2642).
- GET /api/addons/atlas/people answers the Atlas side of other travellers
on the instance: counts, visited countries and earned badges, never
trips, places or dates. A user hides themselves with the atlas_hidden
setting; the admin switch atlas_compare_enabled turns it off for all.
- shared/src/atlas/atlas-badges.ts holds the badge rules, computed from the
data a user already has, so nothing is stored.
- MCP: list_atlas_flight_routes, list_atlas_badges, list_atlas_travellers.
scripts/build-atlas-mesh.mjs turns the admin-0 and admin-1 GeoJSON the
server already ships into TopoJSON at three levels of detail per world and
two per country's regions, smoothed, quantized and Brotli-packed under
content-hashed names, plus a manifest with every country's anchor, box and
region index. It runs at build time (npm run build, npm run dev when the
sources changed, and the Docker server stage); the output is not committed.
/api/addons/atlas/mesh serves the manifest and the files as they are
(immutable, a year), decompressing as a stream for a client without br.
The rounds that pace their router requests told a cached leg from a request by how long it took, anything past 60 ms counting as a request. Since routes are kept on the device, a leg read back after a reload is an IndexedDB read, which on a page busy drawing the map often takes longer, so every leg waited out a request's pause and the trip filled in one leg a second as if it were routed again. The whole trip's route, the road trip day rounds and the join release now count whether a router actually answered. A relay that refused also kept its rest only in memory, so every reload asked it again for the first day; the rest now holds on the device until it ends.
Closes#3228
Small local models now and then write a key with a space around it, such as 'departureTime ', and the mappers look every field up by its exact name, so an imported booking lost its times. Every model answer now has its keys trimmed at the one place all of them pass through (parseLenientJson for a written answer, toReservationList for a filled tool call, and the Anthropic client's own root key lookup). Values stay as they are; an exact key wins over one that only trims to the same name.
Closes#3260
tsc needed about 3.4 GB of heap for the server build, all of it for the type graph, while the build never failed on type errors anyway. An install that builds from source on a 4 GB container (the Proxmox script gives Node 75% of its memory) ran out of heap with 5.2.2. SWC compiles the files tsconfig.build.json names, one at a time and with the options read from it, in about a second and 130 MB; the type check stays with npm run typecheck in CI. Built with both on the same commit, dist holds the same 2390 files, and the server boots with the same 859 routes and 226 modules and answers the same requests the same way.
A read still in flight when the Costs view closed set state on the gone component; in a torn-down test environment React then failed on the missing window and the run reported an unhandled error.
Vitest 5 resolves only with coverage-v8 and coverage-istanbul of the same version, and jest-dom 8 is the first release whose matcher types merge with its Assertion. The sharded CI jobs read and write the blob reports under .vitest/blob, where 5 puts them, and clearMocks stays off as in 4.
Called back at once, a connect that fails right away (no route to an IPv6 address) tore the socket down while tls.connect was still setting it up; undici saw 'fetch failed' and the socket's own error then reached no listener and ended the process. The pinned lookup now answers on the next tick, as dns.lookup does.
typescript-eslint 8.74 no longer takes the classic JSX pragma for the automatic runtime, so an unused default React import is reported now. The no-unused-vars baseline of the app code drops by the one it already counted.