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 -2
View File
@@ -1,6 +1,6 @@
import { useNavigate } from "react-router-dom";
import { formatDuration } from "../domain/format";
import { formatDate, formatDuration } from "../domain/format";
import { winReasonLabel } from "../domain/winReasons";
import type { MatchListItem } from "../domain/types";
import { PlayerLink } from "./PlayerLink";
@@ -24,7 +24,7 @@ export function MatchListView({ items }: { items: MatchListItem[] }) {
onClick={() => navigate(`/match/${m.id}`)}
>
<div className="row-between">
<span className="muted small">{m.played_at}</span>
<span className="muted small">{formatDate(m.played_at)}</span>
{inProgress ? (
<span className="badge" style={{ color: "var(--accent-2)" }}>идёт</span>
) : (