mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +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': '[Teste] Notificação',
|
|
'notif.test.simple.text': 'Esta é uma notificação de teste simples.',
|
|
'notif.test.boolean.text': 'Você aceita esta notificação de teste?',
|
|
'notif.test.navigate.text': 'Clique abaixo para ir ao painel.',
|
|
'notif.trip_invite.title': 'Convite para viagem',
|
|
'notif.trip_invite.text': '{actor} convidou você para {trip}',
|
|
'notif.booking_change.title': 'Reserva atualizada',
|
|
'notif.booking_change.text': '{actor} atualizou uma reserva em {trip}',
|
|
'notif.trip_reminder.title': 'Lembrete de viagem',
|
|
'notif.trip_reminder.text': 'Sua viagem {trip} está chegando!',
|
|
'notif.todo_due.title': 'Tarefa com vencimento',
|
|
'notif.todo_due.text': '{todo} em {trip} vence em {due}',
|
|
'notif.vacay_invite.title': 'Convite Vacay Fusion',
|
|
'notif.vacay_invite.text': '{actor} convidou você para fundir planos de férias',
|
|
'notif.vacay_share.title': 'Calendário Vacay compartilhado',
|
|
'notif.vacay_share.text': '{actor} compartilhou o calendário de férias com você',
|
|
'notif.collection_invite.title': 'Convite para coleção',
|
|
'notif.collection_invite.text': '{actor} convidou você para uma coleção',
|
|
'notif.photos_shared.title': 'Fotos compartilhadas',
|
|
'notif.photos_shared.text': '{actor} compartilhou {count} fotos em {trip}',
|
|
'notif.photos_shared.text.one': '{actor} compartilhou {count} foto em {trip}',
|
|
'notif.collab_message.title': 'Nova mensagem',
|
|
'notif.collab_message.text': '{actor} enviou uma mensagem em {trip}',
|
|
'notif.packing_tagged.title': 'Atribuição de bagagem',
|
|
'notif.packing_tagged.text': '{actor} atribuiu você a {category} em {trip}',
|
|
'notif.version_available.title': 'Nova versão disponível',
|
|
'notif.version_available.text': 'TREK {version} está disponível',
|
|
'notif.replica_failure.title': 'Falha na réplica de armazenamento',
|
|
'notif.replica_failure.text': "Falha ao gravar na réplica '{backend}': {op} de {key} — {error}",
|
|
'notif.replica_failure.textSuppressed':
|
|
"Falha ao gravar na réplica '{backend}': {op} de {key} — {error}. Mais {suppressed} falha(s) foram suprimidas desde a última notificação.",
|
|
'notif.paddle_region_requested.title': 'Região de remo pedida',
|
|
'notif.paddle_region_requested.text': '{actor} está planejando um passeio de remo em {region}',
|
|
'notif.action.view_trip': 'Ver viagem',
|
|
'notif.action.view_collab': 'Ver mensagens',
|
|
'notif.action.view_packing': 'Ver bagagem',
|
|
'notif.action.view_photos': 'Ver fotos',
|
|
'notif.action.view_vacay': 'Ver Vacay',
|
|
'notif.action.view_collection': 'Ver coleção',
|
|
'notif.action.view_admin': 'Ir para admin',
|
|
'notif.wanderer_source_hint.title': 'Trilha do wanderer',
|
|
'notif.wanderer_source_hint.possible_change': '“{tour}” em {trip} pode ter mudado no wanderer',
|
|
'notif.wanderer_source_hint.changed': '“{tour}” em {trip} foi alterada no wanderer',
|
|
'notif.wanderer_source_hint.unverifiable': '“{tour}” em {trip} não pode mais ser verificada no wanderer',
|
|
'notif.action.view_tour': 'Ver passeio',
|
|
'notif.action.view': 'Ver',
|
|
'notif.action.accept': 'Aceitar',
|
|
'notif.action.decline': 'Recusar',
|
|
'notif.plugin.title': '{title}',
|
|
'notif.plugin.text': '{body}',
|
|
'notif.generic.title': 'Notificação',
|
|
'notif.generic.text': 'Você tem uma nova notificação',
|
|
'notif.dev.unknown_event.title': '[DEV] Evento desconhecido',
|
|
'notif.dev.unknown_event.text': 'O tipo de evento "{event}" não está registrado em EVENT_NOTIFICATION_CONFIG',
|
|
};
|
|
export default notif;
|