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.
The MapLibre style picker offers two more entries after the OpenFreeMap
styles: OpenFreeMap that follows the light or dark theme (trek:ofm-auto),
and the user's own map template (trek:template), which brings the template
field under the picker, and the CARTO key for a CARTO template. Where the
trip map will draw the template with the classic 2D map (Amap, a host the
CSP does not name) the form says so and the preview shows that map. The
preview draws exactly what the trip map will.
Every place the forms load or save a MapLibre style keeps a keyword now,
where it used to turn it into Liberty on the first unchanged save: the
user form on desktop and phone (load, save, the phone's mirrored field,
a provider switch there and back) and the admin defaults (provider switch,
preset pick, typed style). The rules live in mapSettingsModel, so both
shells render from one decision:
- the template keyword with an empty template saves Liberty;
- switching from Leaflet with a template and an empty MapLibre slot
preselects the template, shown and not saved until Save;
- Leaflet never writes a keyword into the Mapbox slot, and Mapbox shows its
default for one.
New strings in all locales.
Leaflet loads a tile as an image without CORS and the prefetch fetches it
no-cors, so map-tiles holds opaque answers. A GL map reads tiles with a
CORS fetch and cannot use one: once Leaflet had drawn an OpenTopoMap tile,
the GL tour layer failed on the same URL, and a MapLibre template would
fail the same way on every prefetched tile.
A CORS request for a raster preset's tile now goes to map-tiles-gl, which
keeps only readable answers, ahead of the Leaflet rules; images and the
no-cors prefetch stay in map-tiles. The matcher is written into the
service worker by its source text, so its host list is inline, and a test
holds it to the hosts the CSP lets a GL map fetch. OpenHikingMap and
CyclOSM stay out, their usage policies allow no offline copy.
The prefetch takes exactly one way per user: a template MapLibre draws on
such a host is fetched with CORS into map-tiles-gl, at the density the map
asks for, everything else as before. Clearing offline maps drops both
caches, and the iOS trim keeps both within its budget.
A MapLibre user could only draw OpenFreeMap styles; a raster template was
Leaflet's alone. With maplibre_style set to trek:template, MapLibre now
draws the template the trip map already resolves for Leaflet (CARTO key,
keyless fallback and dark default included), so both renderers show the
same map. No stored row holds the keyword, so every existing user sees
exactly the map they saw before, and Mapbox is untouched.
- glBasemap turns the basemap spec into a raster style document (256px
tiles as Leaflet requests them, the provider's deepest zoom, the credit,
OpenFreeMap glyphs for the map's own labels) and resolves trek:ofm-auto
to Liberty or OpenFreeMap Dark with the colour scheme.
- glCanFetch decides whether a GL map may fetch a basemap here: https on a
host the CSP names, the shipped ones or MAP_EXTRA_CONNECT_HOSTS from the
app config. GCJ-02 tiles (Amap) and other hosts are drawn by Leaflet for
that render, the setting untouched.
- rasterHealth watches the first tiles of a template map: a CSP refusal or
twelve failures without a success move every map drawing that template
to Leaflet for the session, with a pill that says so.
- useEffectiveMapEngine decides this on the engine that actually draws and
runs the offline checks after it; a stored raster template keeps drawing
offline where Leaflet would keep the same tiles.
- The journey map uses the same hook: the same template, the same fallback
and now the offline basemap with its pill as the trip map has it.
- A MapLibre raster style stops at zoom 19 like Leaflet; the Mapbox options
stay as they were.
The offline pill moves to BasemapPill for both maps. Dropping the unused
imports there lowers the eslint baseline.
BasemapSpec and EffectiveMapEngine are only named inside their own
modules so far, so they stay unexported until a caller needs the name.
The basemap spec reads the Tours raster zoom limits from mapDefaults, so
one export there is no longer unused; the knip baseline follows.
/api/settings is never cached, so an app started offline ran on
DEFAULT_SETTINGS until the server answered: Leaflet instead of the map
the user chose, and the default units. The answer the server gave last
time now stands in until the next one arrives.
- Dexie v18 adds accountSettings, one row in the signed-in user's own
database, so another account on the device never reads it and logout
deletes it with the database. The anonymous database never holds one.
A new table only; the upgrade test covers it.
- loadSettings lays the kept answer over the defaults while nothing newer
arrived and keeps every server answer. A key the server then leaves out
goes back to its default, so the server stays the source of truth.
- A setting the server accepted is laid over the kept answer, so a change
made online is what the next offline start shows. A refused save keeps
nothing.
Keeping is best effort: where IndexedDB is refused the app starts on the
defaults as before.
MapViewAuto chose the renderer and the offline fallback inline, so the
journey map, which needs the same choice, could only copy it.
useEffectiveMapEngine now holds it: the user's provider where it can run
(Mapbox needs a token, both GL engines WebGL2), Leaflet where it cannot,
and offline the stored basemap with its pill, checked on the engine that
actually draws. It returns what to draw and never writes a setting.
The logic is the one MapViewAuto ran, moved and not changed, and the hook
is tested on the same cases as the trip map's offline suite. The header
comment no longer claims the Atlas uses Leaflet.
The trip map, the journey map and the settings preview each assembled
their own constructor options and their own 3D setup on load, and the
copies had drifted: the preview laid terrain under every style outside
the Standard family, while the trip map only under the satellite and
outdoor styles, so the preview showed a map the trip never drew.
glMapOptions builds the options for all three and applyGl3d sets up
terrain, buildings and the flattened Standard DEM. For Mapbox the options
are exactly the ones each map built before, key for key and in the same
order, which a test pins; the preview now follows the trip map's terrain
rule. The next steps tune MapLibre in this one place.
MapViewGL.tsx shrinks, and its size baseline follows.
The Leaflet map read the resolved template and sniffed it again for the
datum and the credit, and a GL raster source would need the same template
with its placeholders decided. resolveBasemapSpec wraps resolveBasemap and
adds what a renderer needs: the template Leaflet takes as before, the tile
URLs a GL source takes ({s} as Leaflet's a/b/c shards, {r} as @2x on any
screen denser than one, {-y} as a TMS scheme), the tile size, the
provider's deepest zoom, the credit, the datum and the host.
The Leaflet map draws from the spec now, with the same template, credit
and datum as before, so nothing on screen changes. The tests cover every
template a user can have saved today.
A GL map fetches its style and its tiles, so it can only draw from a host
the server's connect-src names. The raster presets and OpenFreeMap were
written out in the middleware while the client kept its own idea of them,
and nothing held the two together.
The hosts, their reasons and the default OpenFreeMap style now live in
shared/src/maps/map-defaults.ts. The middleware builds those sources from
the list, and the client takes the default style from it, so the renderer
choice the next steps add reads the same hosts the policy allows.
The policy an install sends stays byte for byte the same: a test pins the
whole connect-src in its order.
With the operator's Mapbox token a managed install replaced every empty or
Leaflet provider with Mapbox, including a Leaflet the user picked and a
Leaflet default the admin set. A plain "only when empty" would switch
everyone whose Leaflet row only exists because the settings form writes
every field (#1634), so the choice is recorded instead, by the server alone:
- map_provider_chosen on the user's settings, set when a write changes the
provider the user is shown (so saving the form unchanged is no choice,
and leaving the Mapbox a managed install shows is one). A client patch
naming the key is dropped on both routes, false included, so no client
can set or clear it.
- map_provider_default_chosen in app_settings, set when the admin saves a
map_provider default and removed when it is reset.
Mapbox now replaces an empty provider, or a Leaflet without the mark of
where it came from. No stored row is rewritten: rows without a mark read
exactly as before. The client Settings type gains the read-only field.
All saved shows a place kept in several lists once, but deleting that row
removed only the copy shown, so the next copy took its place, and the
status filter and counts read only that copy. The filters now look at
every copy before the places are shown once, the counts count a place
under each status its copies hold, and deleting or setting the status of
the row reaches every copy.
A test title held an unescaped apostrophe, so the file did not parse. The
inspector maps a provider's week through one helper again, which keeps it
at its size baseline, and the counts type of the rail stays inside its file.
The +N chip after the visited countries' flags sat on the last flag with a
see-through white, so that flag showed through it. It is now the same tone,
solid.
OSM tags a closed day as off ("Mo off"), which the tag parser hands on
as "Monday: off", and the place view showed that word as the day's hours
and as today's line. A day the provider wrote as off or closed now reads
in the reader's own word for closed, in the place view and in the details
column of the place dialog.
The count beside All places in the place dialog's picker appeared only
once All places was chosen and read. It is now read with the picker,
with one entry, the way the rail reads it.
All lists in the place dialog's picker now shows a place kept in several
lists once, as All saved does, and All places keeps the places of the
trip being planned, so it always holds at least what All lists holds and
its count matches the rail.
A place saved into several lists from the same trip place showed once per
list in All saved and counted that often, while All places groups the
copies as one place. All saved now shows such a place once, the first
copy read standing for it, and the rail counts All saved and All places
the way All places groups them, on the desktop and the phone.
The desktop dialog and the phone sheet tests still expected label_ids and
notes in the edit form's patch, which the form no longer sends: the tags
card and the notes tab write those.
The picker beside the add place form only offered the places of the
lists. Its list filter now also offers All places: the places of the
other trips beside the lists', each place once, read when chosen, with
the same search, status filter and distance order. The trip being
planned stays out, it has those places already. A pick fills the form
with the place's name, address, position and category.
In All places the edit state outlived the place it was opened on, so on
the phone a draft started on one place and left open was saved onto the
next place the sheet showed. The form now closes when another place
opens.
The tags card and the notes tab write a list copy's labels and notes
directly, but the edit form still sent the label_ids and notes it was
seeded with when the place opened, so saving a name change laid the old
tags and note back over them. The form now sends only the fields it shows.
The media targets, the rating label, the rating score constants, the rating
match and the copy editor types are read inside their own files only, which
lint:knip holds.
The rating order test pages through its cursor with a recursion and checks
the refused floors at once instead of awaiting in a loop, and the edit hook
types its first editable copy as possibly none, which the strict check reads
from a conditional rather than a narrowed assignment.
The reads of what an entry of All places keeps beside its facts (tags,
notes, votes, planned days, bookings, list roles) move from
PlacesLibraryRepository into PlacesLibraryDetailsRepository, so neither
file passes the size limit. New end to end tests cover the rating filter,
the tab counts under it, the rating order and its cursor, and
list_all_places with both. The test types follow the vote shapes, the edit
target says it may be null, the bookings pair names the booking card that
now holds the booking model, and the size baselines drop to the measured
lengths.
Imports the picture icon the media sections draw for "use as the place
picture", narrows the types the type check refused, moves the dropdown
open state and the media lightbox into one module each for both views,
replaces an await in a loop, and lowers the ratchet baselines to the counts
the run measured. The tests follow the place view: the vote route of a trip
place lives with the votes now, the history holds an entry per copy that
followed an edit, the rate_library_place tool has its broadcast case, and
the row tags of a list are dots behind the name.
Tests for the vote by entry key in the api and the repository, the rating
row and its voters, the rating filter and sort on both views, the edit form
without a choice of copy, and the place view's sections, aligned with the
renamed tag strings.
The desktop dialog and the phone sheet of a place show its overview, notes,
tours and bookings, photos and files and its history in tabs, with the tags
of each list and trip, a markdown notes editor, uploads and the place
picture. The rating bar of All places is the rating row the lists show,
with its voters, and votes once for every copy. All places filters by a
lowest rating and sorts by it, and the edit form changes the first copy the
reader may edit, which the server carries to the others.
Both the desktop sheet and the phone sheet of All places show the place's
location as a badge, its notes per list, its visits from trips (hidden without
any), linked tours and bookings, its change history and the reader's own tags
with a tag filter. A trip map can show the places of linked lists and add one
to the trip. All places reloads after a list is added or removed.
The new switch over the file errors took the name of the component's local errorText, so the local constant was read before its declaration (TS2448, the import tests and an unused-var warning). It is fileErrorText now.
The KML skip reasons and the file errors were looked up from plain maps, which lint:i18n-keys cannot follow, so the new map keys counted as unused. Both are switches over t() now; the older file error keys are reached as well, so collection.ts holds 29 unused keys instead of 35.
lint:dup found the trip place to save dialog mapping copied in the desktop and phone views of All places; it is now saveDraftOf in libraryPairs, with a test.
AddPlaceToCollectionModal no longer holds its theme-lint-disable line, so its entry in theme-disable-baseline.json goes; LibraryFilterBar is formatted after its import moved to the component status model.
- LibraryFilterBar reads the list statuses from the component-level
collectionStatus model instead of reaching into pages/.
- The phone filter kit moved out of MCollections with its raw text sizes; it
now uses the type tiers (control, caption), so the user's text size applies.
- The cover of a place of All places on the phone keeps its scrim, close button
and name colours in a small stylesheet, as the desktop sheet does.
- theme-baseline: ratingBadge back to the two corner-badge literals it holds,
MapView, MapViewGL and MCollections lowered to what they hold now.
- 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.
- 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.
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.