Skip to content

Commit 66b5009

Browse files
committed
docs: update IMPROVEMENTS.md for 2026-03-20 bug fix
1 parent 3360bb4 commit 66b5009

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

IMPROVEMENTS.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# PingDiff Improvement Log
22

3+
## 2026-03-20 — Bug Fix: Per-page metadata for dashboard, download, and community
4+
5+
All three main pages used `"use client"` at the top level, which blocks Next.js from reading the
6+
`metadata` export. Every page fell back to the generic homepage title and description — so sharing
7+
any page on Discord, Twitter, or iMessage showed "PingDiff - Test Your Game Server Connection"
8+
regardless of which page it was. The `template: "%s | PingDiff"` in `layout.tsx` was dead code.
9+
10+
Fixed by splitting each page into a thin server wrapper (`page.tsx`, exports metadata) and a
11+
client component (`*Client.tsx`, holds all interactive state). No logic changed — pure structural
12+
refactor following the standard App Router pattern. Each page now has a distinct title,
13+
description, and og:title/og:description for accurate social previews.
14+
15+
**Files changed:** `web/src/app/dashboard/page.tsx`, `web/src/app/dashboard/DashboardClient.tsx` (new), `web/src/app/download/page.tsx`, `web/src/app/download/DownloadClient.tsx` (new), `web/src/app/community/page.tsx`, `web/src/app/community/CommunityClient.tsx` (new)
16+
**Lines:** +934 / -890
17+
318
## 2026-03-20 — Accessibility: ARIA labels, table semantics, and skip navigation
419

520
Comprehensive a11y pass across the dashboard, navbar, and secondary pages. The site had no named navigation landmark, no skip links on 3 of 4 pages, tables without column scope attributes, charts completely invisible to assistive technology, and stat cards that conveyed quality purely through color (WCAG 1.4.1 violation). All fixed without new dependencies.

0 commit comments

Comments
 (0)