mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
2e1dca9fe9
Settings, Integrations, wanderer gains an optional background check of the trails you imported, off until you switch it on. While on, TREK reads the short record of each such trail at most once a day (never its GPX file) and leaves a hint when the trail may have moved on: "may have changed" when only wanderer's change time moved, "changed" when its name or description proves it, and "not checkable" when the trail is gone, no longer yours or carries no change time. Nothing is ever said to be unchanged. A new hint arrives as a notification that opens the tour (a new ?place= link in the planner); the tour's provenance shows it with the source check right beside it, and the card lists all open hints in a dialog, each leading to its tour. The check reads the source in full as before and spends the hint; taking a change in stays the confirmed reimport. No tour is ever changed or deleted. The check only asks through your own connection, only about trails your account imported into trips you can still open, and stops when you switch it off, remove the connection, wanderer refuses the token (until a test passes or a new token is saved) or the admin switches wanderer off; hints and snapshots stay. A run asks at most 25 connections for at most 10 records each, one after another, and an instance that fails (an outage, a rate limit) is left alone for an hour, doubling up to two days. Server: migration 046120 adds the switch and the run bookkeeping to wanderer_connections and the tour_source_hints table (one row per snapshot, for its importer, gone with it). WandererWatchService and an hourly wanderer-watch job on the CronRegistrar live in the tours domain and read through WandererService; GET and PUT /api/integrations/wanderer/watch and GET /api/trips/:tripId/tours/wanderer/sources/:placeId/hint (place_edit, like the check) answer with @trek/shared contracts. A new user notification event, wanderer_source_hint, can be muted per channel. Saving a new token now clears what the last check said about the old one. There is no MCP tool, as for the rest of the personal wanderer connection. All 27 locales carry the strings, and the admin wiki page says what the check does.
60 lines
3.5 KiB
TypeScript
60 lines
3.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const notif: TranslationStrings = {
|
|
'notif.test.title': '[Test] Teavitus',
|
|
'notif.test.simple.text': 'See on lihtne testteavitus.',
|
|
'notif.test.boolean.text': 'Kas võtad selle testteavituse vastu?',
|
|
'notif.test.navigate.text': 'Klõpsa allpool, et avada avaleht.',
|
|
'notif.trip_invite.title': 'Reisikutse',
|
|
'notif.trip_invite.text': '{actor} kutsus sind reisile {trip}',
|
|
'notif.booking_change.title': 'Broneering uuendatud',
|
|
'notif.booking_change.text': '{actor} uuendas reisi {trip} broneeringut',
|
|
'notif.trip_reminder.title': 'Reisimeeldetuletus',
|
|
'notif.trip_reminder.text': 'Sinu reis {trip} algab peagi!',
|
|
'notif.todo_due.title': 'Ülesande tähtaeg',
|
|
'notif.todo_due.text': 'Ülesande {todo} tähtaeg reisil {trip} on {due}',
|
|
'notif.vacay_invite.title': 'Vacay ühendamiskutse',
|
|
'notif.vacay_invite.text': '{actor} kutsus sind puhkuseplaane ühendama',
|
|
'notif.vacay_share.title': 'Vacay kalender jagatud',
|
|
'notif.vacay_share.text': '{actor} jagas sinuga oma puhkusekalendrit',
|
|
'notif.collection_invite.title': 'Kogumiku kutse',
|
|
'notif.collection_invite.text': '{actor} kutsus sind kogumikku jagama',
|
|
'notif.photos_shared.title': 'Fotod jagatud',
|
|
'notif.photos_shared.text': '{actor} jagas reisil {trip} {count} fotot',
|
|
'notif.photos_shared.text.one': '{actor} jagas reisil {trip} {count} foto',
|
|
'notif.collab_message.title': 'Uus sõnum',
|
|
'notif.collab_message.text': '{actor} saatis reisil {trip} sõnumi',
|
|
'notif.packing_tagged.title': 'Pakkimisülesanne',
|
|
'notif.packing_tagged.text': '{actor} määras sulle reisil {trip} kategooria {category}',
|
|
'notif.version_available.title': 'Uus versioon saadaval',
|
|
'notif.version_available.text': 'TREK {version} on nüüd saadaval',
|
|
'notif.replica_failure.title': 'Salvestuskoopia tõrge',
|
|
'notif.replica_failure.text': "Koopia kirjutamine taustsüsteemi '{backend}' ebaõnnestus: {op}, {key} — {error}",
|
|
'notif.replica_failure.textSuppressed':
|
|
"Koopia kirjutamine taustsüsteemi '{backend}' ebaõnnestus: {op}, {key} — {error}. Pärast viimast teavitust jäeti veel {suppressed} tõrget teavitamata.",
|
|
'notif.paddle_region_requested.title': 'Aerutamispiirkonda taotleti',
|
|
'notif.paddle_region_requested.text': '{actor} kavandab aerutamismatka piirkonnas {region}',
|
|
'notif.action.view_trip': 'Vaata reisi',
|
|
'notif.action.view_collab': 'Vaata sõnumeid',
|
|
'notif.action.view_packing': 'Vaata pakkimisnimekirja',
|
|
'notif.action.view_photos': 'Vaata fotosid',
|
|
'notif.action.view_vacay': 'Vaata Vacayd',
|
|
'notif.action.view_collection': 'Vaata kogumikku',
|
|
'notif.action.view_admin': 'Ava haldus',
|
|
'notif.wanderer_source_hint.title': 'wanderer rada',
|
|
'notif.wanderer_source_hint.possible_change': '„{tour}“ reisil {trip} võib olla wandereris muutunud',
|
|
'notif.wanderer_source_hint.changed': '„{tour}“ reisil {trip} muudeti wandereris',
|
|
'notif.wanderer_source_hint.unverifiable': '„{tour}“ reisil {trip} ei saa wandereris enam kontrollida',
|
|
'notif.action.view_tour': 'Vaata matka',
|
|
'notif.action.view': 'Vaata',
|
|
'notif.action.accept': 'Nõustu',
|
|
'notif.action.decline': 'Keeldu',
|
|
'notif.plugin.title': '{title}',
|
|
'notif.plugin.text': '{body}',
|
|
'notif.generic.title': 'Teavitus',
|
|
'notif.generic.text': 'Sul on uus teavitus',
|
|
'notif.dev.unknown_event.title': '[DEV] Tundmatu sündmus',
|
|
'notif.dev.unknown_event.text': 'Sündmuse tüüp "{event}" pole registreeritud loendis EVENT_NOTIFICATION_CONFIG',
|
|
};
|
|
export default notif;
|