Skip to content

Commit 6fbabfe

Browse files
committed
docs: update IMPROVEMENTS.md for 2026-03-18 refactor
1 parent 467d006 commit 6fbabfe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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-18 — Code Quality: Extract shared Navbar and Footer components
4+
5+
The navigation bar and footer were duplicated verbatim across 4 pages (home, dashboard, community,
6+
download), with each page managing its own mobileMenuOpen state and hardcoding its own active link
7+
style. Extracted both into reusable components in web/src/components/.
8+
9+
The new Navbar uses usePathname() for automatic active-link highlighting and a single NAV_LINKS
10+
array as the source of truth for site navigation. Any future nav change (new link, style tweak)
11+
now requires editing one file instead of four.
12+
13+
**Files changed:** `web/src/components/Navbar.tsx` (new), `web/src/components/Footer.tsx` (new),
14+
`web/src/app/page.tsx`, `web/src/app/dashboard/page.tsx`, `web/src/app/community/page.tsx`,
15+
`web/src/app/download/page.tsx`
16+
**Lines:** +157 / -338
17+
318
## 2026-03-17 — Testing: Unit test suite for CLI and ping core logic
419

520
Added a pytest test suite covering the CLI and ping tester modules — the first tests in the project.

0 commit comments

Comments
 (0)