feat(journey): the marker card, and what testing it turned up

Everything here came out of putting the first commit in front of somebody and
watching them use it.

**The marker card is one card now, and it carries the entry's photos.** Leaflet
showed a one-line label and the GL map a two-line card, so the same marker said
different things depending on a renderer setting nobody connects to journeys.
Both now build from one module: a strip of up to three thumbnails bleeding to
the card's edges, the name, and the place and date as chips. On the GL map the
thumbnails open the entry's photos; the rest of the card still never takes the
pointer, so the map drags from anywhere on it.

**A pin that would not sit still.** Dragging the map left the marker trailing
behind and snapping back at the end. The app's press-feedback rule puts a 180ms
transition on `[role="button"]`, MapLibre and Mapbox give their marker element
exactly that role, and both rewrite its `transform` on every frame of a
movement. Markers are excluded now — every map in TREK, not just this one.

**The phone card, after four rounds of looking at it.** The day is the card's
own edge rather than a bar across its foot, and the ring is inset because the
carousel clips. A card without a photo is opaque: it was a wash of the day's
colour over the map. The country is a real flag rather than two letters —
Windows has no flag glyphs, so the emoji drew "DE" where a flag was meant, and
the image falls back to the emoji when it cannot be fetched. Mood, weather and
the date share the top edge; the flag sits opposite them.

**The day bar answers to a finger.** Press the date and slide sideways to run
through the days. The bar is still a row of buttons underneath, because that is
the only version of it a keyboard can reach, and each one is 20px tall now
rather than 3.

Also here:

- Videos upload to an entry (issue #2341). The gallery has taken them since
  #823 and an entry could not: everything went through the images-only filter
  and came back 400, reported as "1 of 1 photos failed". Same two-part upload,
  same absence of transcoding, and the editor now previews a clip in a `<video>`
  instead of a broken-image glyph.
- The search box takes the gap the toolbar already had instead of clipping its
  own placeholder.
- Entry cards line up with the day header again: the reorder arrows moved out of
  a column of their own into the feed's padding and appear on hover, and the
  day-coloured ring on the active card is a layer over it — an outline tight
  enough to sit on the card's edge was painting behind it.
- Map attribution is collapsed to its ⓘ. It cannot go away — the OSM licence
  asks for it — but it does not have to lie under the carousel.
- The suggestion dismiss and the day-header plus use TREK's own tooltip rather
  than the browser's.
This commit is contained in:
Maurice
2026-09-13 19:52:14 +02:00
parent c2707b7eff
commit 15aefa449e
49 changed files with 706 additions and 267 deletions
+1
View File
@@ -638,5 +638,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'المزاج',
'journey.settings.showWeather': 'الطقس',
'journey.entry.suggestion': 'اقتراح',
'journey.editor.addDetails': '+ تفاصيل',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Humor',
'journey.settings.showWeather': 'Clima',
'journey.entry.suggestion': 'Sugestão',
'journey.editor.addDetails': '+ Detalhes',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Estat d\'ànim',
'journey.settings.showWeather': 'Temps',
'journey.entry.suggestion': 'Suggeriment',
'journey.editor.addDetails': '+ Detalls',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Nálada',
'journey.settings.showWeather': 'Počasí',
'journey.entry.suggestion': 'Návrh',
'journey.editor.addDetails': '+ Podrobnosti',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Stimmung',
'journey.settings.showWeather': 'Wetter',
'journey.entry.suggestion': 'Vorschlag',
'journey.editor.addDetails': '+ Details',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Mood',
'journey.settings.showWeather': 'Weather',
'journey.entry.suggestion': 'Suggestion',
'journey.editor.addDetails': '+ Details',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Ánimo',
'journey.settings.showWeather': 'Tiempo',
'journey.entry.suggestion': 'Sugerencia',
'journey.editor.addDetails': '+ Detalles',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Humeur',
'journey.settings.showWeather': 'Météo',
'journey.entry.suggestion': 'Suggestion',
'journey.editor.addDetails': '+ Détails',
};
export default journey;
+1
View File
@@ -643,5 +643,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Διάθεση',
'journey.settings.showWeather': 'Καιρός',
'journey.entry.suggestion': 'Πρόταση',
'journey.editor.addDetails': '+ Λεπτομέρειες',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Hangulat',
'journey.settings.showWeather': 'Időjárás',
'journey.entry.suggestion': 'Javaslat',
'journey.editor.addDetails': '+ Részletek',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Suasana hati',
'journey.settings.showWeather': 'Cuaca',
'journey.entry.suggestion': 'Saran',
'journey.editor.addDetails': '+ Detail',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Umore',
'journey.settings.showWeather': 'Meteo',
'journey.entry.suggestion': 'Suggerimento',
'journey.editor.addDetails': '+ Dettagli',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': '気分',
'journey.settings.showWeather': '天気',
'journey.entry.suggestion': '提案',
'journey.editor.addDetails': '+詳細',
};
export default journey;
+1
View File
@@ -639,5 +639,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': '기분',
'journey.settings.showWeather': '날씨',
'journey.entry.suggestion': '제안',
'journey.editor.addDetails': '+ 세부 정보',
};
export default journey;
+1
View File
@@ -642,5 +642,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Stemming',
'journey.settings.showWeather': 'Weer',
'journey.entry.suggestion': 'Suggestie',
'journey.editor.addDetails': '+ Details',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Nastrój',
'journey.settings.showWeather': 'Pogoda',
'journey.entry.suggestion': 'Propozycja',
'journey.editor.addDetails': '+ Szczegóły',
};
export default journey;
+1
View File
@@ -641,5 +641,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Настроение',
'journey.settings.showWeather': 'Погода',
'journey.entry.suggestion': 'Предложение',
'journey.editor.addDetails': '+ Подробности',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Humör',
'journey.settings.showWeather': 'Väder',
'journey.entry.suggestion': 'Förslag',
'journey.editor.addDetails': '+ Detaljer',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Ruh hâli',
'journey.settings.showWeather': 'Hava durumu',
'journey.entry.suggestion': 'Öneri',
'journey.editor.addDetails': '+ Ayrıntılar',
};
export default journey;
+1
View File
@@ -642,5 +642,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Настрій',
'journey.settings.showWeather': 'Погода',
'journey.entry.suggestion': 'Пропозиція',
'journey.editor.addDetails': '+ Деталі',
};
export default journey;
+1
View File
@@ -640,5 +640,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': 'Tâm trạng',
'journey.settings.showWeather': 'Thời tiết',
'journey.entry.suggestion': 'Gợi ý',
'journey.editor.addDetails': '+ Chi tiết',
};
export default journey;
+1
View File
@@ -636,5 +636,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': '心情',
'journey.settings.showWeather': '天氣',
'journey.entry.suggestion': '建議',
'journey.editor.addDetails': '+詳情',
};
export default journey;
+1
View File
@@ -636,5 +636,6 @@ const journey: TranslationStrings = {
'journey.settings.showMood': '心情',
'journey.settings.showWeather': '天气',
'journey.entry.suggestion': '建议',
'journey.editor.addDetails': '+详情',
};
export default journey;