fix(places): say where a result came from, and stop asking questions in the form

Six changes to the place picker and the card behind it, all of them about a
panel saying less and meaning more.

The TREK place index has no switch in the admin panel any more. It decides
whether a search leaves the instance at all, which is a property of the
deployment rather than a taste: an operator pins TREK_PLACES_ENABLED=false in
their compose file, and it cannot be turned off from a browser by whoever holds
an admin account that day. The switch never shipped, so nothing to migrate.

The standing "Using OpenStreetMap" notice above the search box is gone. It was
a sentence about configuration in the middle of a form about a place, and it
answered a question nobody asked while leaving the real one open. Each result
now carries a small mark instead: TREK, OpenStreetMap or Google. It sits on the
row rather than above the list, because a list can be two indexes interleaved
and a heading could only name one of them.

The saved-places filters open across the full width of the row. Two of them sit
side by side, only one can be open at a time, and list names were being cut at
about ten characters for no reason.

Three empty states use the mascot the rest of TREK uses. The place details panel
no longer tells the reader to go and ask an administrator for a Google key, the
saved-places list and the road trip rail no longer explain themselves in two
lines of grey text. That needed one new mood, `sad`: `sleepy` reads as falling
asleep, which is a different thing from finding nothing.

The Kind of stop field is out of the place form. It is a road trip concept, and
the road trip view already sets it from the stop's own number, where the choice
is next to what it changes.
This commit is contained in:
Maurice
2026-09-08 17:06:09 +02:00
committed by Maurice
parent 1761f2bcd5
commit 4a88dbcbcf
92 changed files with 283 additions and 557 deletions
-4
View File
@@ -98,10 +98,6 @@ const admin: TranslationStrings = {
'admin.googleCaveat.badge': 'No recomanat',
'admin.googleCaveat.body':
"TREK és programari lliure i aquí no som neutrals. En aquesta escala, les valoracions i les fotos de negocis corrents només existeixen a Google, i això és un monopoli. El camp hi és per manca d'alternativa, no perquè el recomanem. Llavors cada consulta va a Google.",
'admin.trekApi.toggleLabel':
'Índex de llocs de TREK',
'admin.trekApi.offNote':
'Desactivat. La cerca de llocs utilitza OpenStreetMap i Google si hi ha una clau configurada.',
'admin.trekApi.tagline':
'L\'índex de llocs propi de TREK. Cercar sense clau de Google, sense quota i sense que ningú compti les teves cerques.',
'admin.trekApi.factPlaces':
-3
View File
@@ -85,7 +85,6 @@ const places: TranslationStrings = {
'places.loadingDetails': 'Carregant els detalls del lloc…',
'places.osmHint':
"S'està utilitzant la cerca amb OpenStreetMap (sense fotos, horaris ni valoracions). Afegeix una clau API de Google a Configuració per obtenir tots els detalls.",
'places.osmActive': 'S\'utilitza OpenStreetMap. Una clau API de Google afegeix valoracions i horaris.',
'places.details.title': 'Detalls del lloc',
'places.details.empty': 'Tria un resultat per veure imatges i una descripció.',
'places.details.loading': "S'estan carregant els detalls...",
@@ -98,8 +97,6 @@ const places: TranslationStrings = {
'places.details.adoptBlocked': 'Buida primer el camp de descripció',
'places.details.facts': 'Bo saber',
'places.details.nothing': "No s'ha trobat res per a aquest lloc.",
'places.details.noKeyTitle': 'Hi ha més detalls disponibles',
'places.details.noKeyHint': 'Sense una clau API de Google, aquesta instància només fa servir fonts lliures. Demana a l\'administració de TREK que n\'afegeixi una per a valoracions, horaris i fotos.',
'places.details.aboutBrand': 'Sobre la cadena',
'places.details.aboutBrandNote': 'Descriu la cadena, no aquest local.',
'places.details.fact.rating': 'Valoració',
-2
View File
@@ -7,7 +7,6 @@ const roadtrip: TranslationStrings = {
'roadtrip.title': 'Viatge per carretera',
'roadtrip.subtitle': 'Parades, temps de conducció i hores d’arribada d’aquest viatge',
'roadtrip.empty.title': 'Encara no hi ha ruta',
'roadtrip.empty.body': 'Afegeix llocs a un dia o una reserva de cotxe amb parades i la ruta apareixerà aquí.',
'roadtrip.stops.label': 'Parades pel camí',
'roadtrip.stops.remove': 'Elimina la parada',
'roadtrip.poi.title': 'Al llarg de la ruta',
@@ -31,7 +30,6 @@ const roadtrip: TranslationStrings = {
'roadtrip.limit.range': '{distance} des de l’última càrrega',
'roadtrip.limit.none': 'Cap definit',
'roadtrip.stop.none': 'Una destinació',
'roadtrip.stop.kindHelp': 'Una parada al camí es dibuixa sobre el trajecte i no es compta.',
'roadtrip.stay.mode.pause': 'Parada',
'roadtrip.stay.mode.night': 'Pernoctar',
'roadtrip.stay.checkOutDay': 'Sortida el',