mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
feat(atlas): sum up the tours you have done, by period and type (STA-02)
With the Tours addon on, the Atlas panel gets a third tab, Tours, beside
Stats and Bucket List: what you have done on your tours across all your
trips. A period (all time, this year, the last 12 months or an earlier year)
and a tour type narrow it; the tab shows the distance large with the number
of tours at its corner, the ascent and descent, and the types with their
distance. "Show tours" opens every tour of the period in a dialog with the
same filters, the sums, the split by type and one row per tour.
What counts is said, never guessed. A tour counts once the day it is on is
over, with the values of the planning, badged "Planned" and explained as
not measured. A linked actual track (ACT-01) replaces those values for its
execution, badged "Recorded" and named, and is never added on top nor
counted as a tour of its own. A tour on several days counts once, a whole
route does not count beside the stages planned from it, a paddle tour sums
no heights, and a value nobody knows stays out of the sum, which then reads
"at least". Only the user's own part counts: a day names them among its
participants, or names nobody on a trip of their own; being able to open
somebody else's trip makes none of its tours theirs. Tours still ahead, on
no day or only on undated days are named as not counting. A tour that fell
through can be left out of the sums ("Leave out"): it stays in the plan
and in the list, dimmed, and "Count again" brings it back. Only the user's
own numbers change.
Server: GET /api/tours/activity-stats answers the user's activity entries
across every trip they can open, and PUT /api/tours/activity-stats/exclusions
leaves a tour out or counts it again (the tour must be in such a trip, else
404). A tour_activity_exclusions table keeps the exclusions per user and
tour. The sums are added up by a shared summary in @trek/shared, so the
Atlas and the assistant say the same numbers. MCP: get_tour_activity_stats
and set_tour_activity_excluded over the same service. The tab reads live
and needs a connection, like the rest of the Atlas statistics.
This commit is contained in:
@@ -1240,5 +1240,37 @@ const tours: TranslationStrings = {
|
||||
'tours.activity.compare.show': 'Comparar no mapa',
|
||||
'tours.activity.compare.showHint': 'Desenha a trilha real pontilhada ao lado do plano. Nada muda.',
|
||||
'tours.activity.compare.hide': 'Encerrar comparação',
|
||||
'tours.stats.title': 'Meus passeios realizados',
|
||||
'tours.stats.sub': 'Com base no planejamento da viagem; trilhas reais vinculadas o substituem',
|
||||
'tours.stats.basisInfo':
|
||||
'Um passeio conta quando o dia dele termina, com os valores do seu planejamento. Uma trilha real vinculada os substitui. Só contam os dias em que você participa.',
|
||||
'tours.stats.basisPlan': 'Planejado',
|
||||
'tours.stats.basisPlanHint': 'Do planejamento da viagem, não medido',
|
||||
'tours.stats.basisTrack': 'Gravado',
|
||||
'tours.stats.basisTrackHint': 'Da trilha real vinculada {name}',
|
||||
'tours.stats.basisTrackCountHint': 'Trilhas reais vinculadas substituem os valores planejados',
|
||||
'tours.stats.period': 'Período',
|
||||
'tours.stats.period.all': 'Desde sempre',
|
||||
'tours.stats.period.thisYear': 'Este ano',
|
||||
'tours.stats.period.last12': 'Últimos 12 meses',
|
||||
'tours.stats.allTypes': 'Todos os tipos',
|
||||
'tours.stats.byType': 'Por tipo',
|
||||
'tours.stats.showTours': 'Ver passeios',
|
||||
'tours.stats.none': 'Nenhum passeio concluído neste período',
|
||||
'tours.stats.empty': 'Ainda nenhum passeio concluído',
|
||||
'tours.stats.upcoming': 'Ainda por vir',
|
||||
'tours.stats.upcomingHint': 'Um passeio conta quando o dia dele termina',
|
||||
'tours.stats.unassigned': 'Sem dia',
|
||||
'tours.stats.unassignedHint': 'Passeios das suas viagens que não estão em nenhum dia não contam',
|
||||
'tours.stats.undated': 'Sem data',
|
||||
'tours.stats.undatedHint': 'Passeios em dias sem data não contam',
|
||||
'tours.stats.multiDayHint': 'Planejado em vários dias, contado uma vez',
|
||||
'tours.stats.exclude': 'Não contar',
|
||||
'tours.stats.excludeHint': 'Para um passeio que não aconteceu. Ele continua no plano e só deixa de contar aqui',
|
||||
'tours.stats.include': 'Contar de novo',
|
||||
'tours.stats.excluded': 'Não contado',
|
||||
'tours.stats.excludeFailed': 'Não foi possível alterar o passeio',
|
||||
'tours.stats.unavailable': 'Não foi possível carregar os passeios realizados',
|
||||
'tours.stats.openTrip': 'Abrir viagem',
|
||||
};
|
||||
export default tours;
|
||||
|
||||
Reference in New Issue
Block a user