Skip to content

fix(traffic): U18a–d display correctness for geo, LLM copy, country count#19

Merged
simonellefsen merged 7 commits into
mainfrom
feat/u18-traffic-panel-fixes
Jul 5, 2026
Merged

fix(traffic): U18a–d display correctness for geo, LLM copy, country count#19
simonellefsen merged 7 commits into
mainfrom
feat/u18-traffic-panel-fixes

Conversation

@simonellefsen

Copy link
Copy Markdown
Owner

Summary

  • U18a: Decode URL-encoded Vercel city names (Los%20Angeles) at ingestion and in visitor location display
  • U18b: Map Danish numeric ISO subdivisions (e.g. 84 → Capital Region); drop unmapped numeric-only codes
  • U18c: Relabel LLM stat card; show "Watching for GPTBot, ClaudeBot, PerplexityBot" when count is 0
  • U18d: Align country stat card count with visible by-country buckets (incl. Unknown)
  • Docs: TODO U18 section + checkoffs, wiki/log.md entries for PR feat(dna): allow multiple shared autosomal imports per profile #18 and U18a–d

Test plan

  • lib/requestGeo.test.ts — encoded cities, DK subdivision mapping, display helper
  • lib/crawlTrafficStats.test.ts — country count includes Unknown bucket
  • npm run lint && npm run typecheck && npm test

Made with Cursor

…ount

Decode URL-encoded cities at ingestion, map DK numeric subdivisions, clarify
zero LLM hits copy, and align the country stat with by-country buckets.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
linegra Ready Ready Preview, Comment Jul 5, 2026 7:22pm

Skip same-minute hits with matching route, resource key, and user agent;
store slug segments in resource_key for visitor paths; dedupe raw-tail
rows in admin stats for historical duplicates.

Co-authored-by: Cursor <cursoragent@cursor.com>
Batch-resolve person, tree, book, and family union ids for recent traffic
rows; link to public crawl URLs; humanize slug resource_key fallbacks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Set linegra_viewer cookie on auth, persist viewer_user_id on crawl events,
and default the admin traffic panel to excluding the current user's visits.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fill every UTC day in the selected window (including zeros), overlay bot and
visitor bars on one chart, and drop misleading single-hit full-width scaling.

Co-authored-by: Cursor <cursoragent@cursor.com>
Aggregate html/md/json/xml hits per crawler from the raw event tail and
show stacked adoption bars in the admin traffic panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
Complete the traffic panel slice with sitemap crawl coverage, week-over-week
stat chips, first-seen agent callouts, and privacy-safe visitor referrer buckets.

Co-authored-by: Cursor <cursoragent@cursor.com>
@simonellefsen
simonellefsen merged commit 782c676 into main Jul 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant