UI: даты игр в едином формате ДД.ММ.ГГГГ вместо сырых ISO-строк

Новый formatDate в domain/format.ts для date-only строк (played_at,
last_match_at). Применён: список партий, заголовок страницы партии
(раньше там было «2026-07-13»), записи в админке, «последняя партия»
на странице группы.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 17:42:05 +03:00
co-authored by Claude Fable 5
parent 7b61443fb9
commit 002c657855
5 changed files with 16 additions and 6 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import { GroupSwitcher } from "../components/GroupSwitcher";
import { Leaderboard } from "../components/Leaderboard";
import { MatchListView } from "../components/MatchList";
import { Spinner } from "../components/Spinner";
import { formatDate } from "../domain/format";
import { useMe } from "../hooks/auth";
import { useGroup, useGroupMatches, useGroupStats } from "../hooks/groups";
@@ -49,7 +50,7 @@ export function GroupPage() {
</div>
<p className="muted small">
Партий: {stats?.total_matches ?? 0}
{stats?.last_match_at ? ` · последняя: ${stats.last_match_at}` : ""}
{stats?.last_match_at ? ` · последняя: ${formatDate(stats.last_match_at)}` : ""}
</p>
</div>