mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +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
4.7 KiB
TypeScript
60 lines
4.7 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const notif: TranslationStrings = {
|
||
'notif.test.title': '[Δοκιμή] Ειδοποίηση',
|
||
'notif.test.simple.text': 'Αυτή είναι μια απλή δοκιμαστική ειδοποίηση.',
|
||
'notif.test.boolean.text': 'Αποδέχεστε αυτή τη δοκιμαστική ειδοποίηση;',
|
||
'notif.test.navigate.text': 'Κάντε κλικ παρακάτω για μετάβαση στον πίνακα ελέγχου.',
|
||
'notif.trip_invite.title': 'Πρόσκληση Ταξιδιού',
|
||
'notif.trip_invite.text': 'Ο/Η {actor} σας προσκάλεσε στο {trip}',
|
||
'notif.booking_change.title': 'Η Κράτηση Ενημερώθηκε',
|
||
'notif.booking_change.text': 'Ο/Η {actor} ενημέρωσε μια κράτηση στο {trip}',
|
||
'notif.trip_reminder.title': 'Υπενθύμιση Ταξιδιού',
|
||
'notif.trip_reminder.text': 'Το ταξίδι σας {trip} πλησιάζει!',
|
||
'notif.todo_due.title': 'Εργασία προς λήξη',
|
||
'notif.todo_due.text': 'Η εργασία {todo} στο {trip} λήγει στις {due}',
|
||
'notif.vacay_invite.title': 'Πρόσκληση Σύντηξης Vacay',
|
||
'notif.vacay_invite.text': 'Ο/Η {actor} σας προσκάλεσε να συγχωνεύσετε τα σχέδια διακοπών',
|
||
'notif.vacay_share.title': 'Κοινοποίηση Ημερολογίου Vacay',
|
||
'notif.vacay_share.text': 'Ο/Η {actor} κοινοποίησε το ημερολόγιο διακοπών του/της σε εσάς',
|
||
'notif.collection_invite.title': 'Πρόσκληση σε συλλογή',
|
||
'notif.collection_invite.text': 'Ο/Η {actor} σας προσκάλεσε σε μια συλλογή',
|
||
'notif.photos_shared.title': 'Κοινοποίηση Φωτογραφιών',
|
||
'notif.photos_shared.text': 'Ο/Η {actor} μοιράστηκε {count} φωτογραφίες στο {trip}',
|
||
'notif.photos_shared.text.one': 'Ο/Η {actor} μοιράστηκε {count} φωτογραφία στο {trip}',
|
||
'notif.collab_message.title': 'Νέο Μήνυμα',
|
||
'notif.collab_message.text': 'Ο/Η {actor} έστειλε ένα μήνυμα στο {trip}',
|
||
'notif.packing_tagged.title': 'Ανάθεση Αποσκευών',
|
||
'notif.packing_tagged.text': 'Ο/Η {actor} σας ανέθεσε στο {category} του {trip}',
|
||
'notif.version_available.title': 'Νέα Έκδοση Διαθέσιμη',
|
||
'notif.version_available.text': 'Το TREK {version} είναι τώρα διαθέσιμο',
|
||
'notif.replica_failure.title': 'Αποτυχία αντιγράφου αποθήκευσης',
|
||
'notif.replica_failure.text': "Η εγγραφή στο αντίγραφο '{backend}' απέτυχε: {op} του {key} — {error}",
|
||
'notif.replica_failure.textSuppressed':
|
||
"Η εγγραφή στο αντίγραφο '{backend}' απέτυχε: {op} του {key} — {error}. {suppressed} επιπλέον αποτυχίες αποκρύφθηκαν από την τελευταία ειδοποίηση.",
|
||
'notif.paddle_region_requested.title': 'Αίτημα περιοχής κανό',
|
||
'notif.paddle_region_requested.text': '{actor} σχεδιάζει διαδρομή κανό στην περιοχή {region}',
|
||
'notif.action.view_trip': 'Προβολή Ταξιδιού',
|
||
'notif.action.view_collab': 'Προβολή Μηνυμάτων',
|
||
'notif.action.view_packing': 'Προβολή Αποσκευών',
|
||
'notif.action.view_photos': 'Προβολή Φωτογραφιών',
|
||
'notif.action.view_vacay': 'Προβολή Vacay',
|
||
'notif.action.view_collection': 'Προβολή συλλογής',
|
||
'notif.action.view_admin': 'Μετάβαση στη Διαχείριση',
|
||
'notif.wanderer_source_hint.title': 'Μονοπάτι wanderer',
|
||
'notif.wanderer_source_hint.possible_change': '«{tour}» στο {trip} ίσως άλλαξε στο wanderer',
|
||
'notif.wanderer_source_hint.changed': '«{tour}» στο {trip} άλλαξε στο wanderer',
|
||
'notif.wanderer_source_hint.unverifiable': '«{tour}» στο {trip} δεν ελέγχεται πια στο wanderer',
|
||
'notif.action.view_tour': 'Προβολή διαδρομής',
|
||
'notif.action.view': 'Προβολή',
|
||
'notif.action.accept': 'Αποδοχή',
|
||
'notif.action.decline': 'Απόρριψη',
|
||
'notif.plugin.title': '{title}',
|
||
'notif.plugin.text': '{body}',
|
||
'notif.generic.title': 'Ειδοποίηση',
|
||
'notif.generic.text': 'Έχετε μια νέα ειδοποίηση',
|
||
'notif.dev.unknown_event.title': '[DEV] Άγνωστο Συμβάν',
|
||
'notif.dev.unknown_event.text': 'Ο τύπος συμβάντος "{event}" δεν είναι εγγεγραμμένος στο EVENT_NOTIFICATION_CONFIG',
|
||
};
|
||
export default notif;
|