mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +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.
64 lines
4.1 KiB
TypeScript
64 lines
4.1 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': 'دعوة دمج الإجازة',
|
|
'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.zero': '{actor} لم يشارك أي صورة في {trip}',
|
|
'notif.photos_shared.text.one': '{actor} شارك صورة واحدة في {trip}',
|
|
'notif.photos_shared.text.two': '{actor} شارك صورتين في {trip}',
|
|
'notif.photos_shared.text.few': '{actor} شارك {count} صور في {trip}',
|
|
'notif.photos_shared.text.many': '{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;
|