Commit 8e673e4
fix: address Copilot PR review (cross-route nav anchors, test isolation, doc accuracy)
- Header + Footer in-page nav anchors were hash-only (#features), which
scroll to nothing when rendered on /deploy and other sub-pages. Changed to
/#... so they navigate back to the homepage sections from any route.
- github-stars.test.ts assigned globalThis.fetch directly; mock.restore()
doesn't revert that. Capture and restore the original fetch in afterEach.
- Corrected getStars JSDoc: it's build-time only (sets a User-Agent header
browsers forbid); the client refresh does its own header-free fetch.
Declined (verified non-issues): the querySelectorAll<HTMLElement> generics in
the deploy.astro client script — Astro transpiles <script> via esbuild, which
strips TS types; dist contains zero 'querySelectorAll<' and the build passes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1815e0d commit 8e673e4
4 files changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments