Repository navigation
Add live company dashboard and anonymous presence tracking - #1442
Conversation
|
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
main added two trackers after this branch began. Live presence (TanStack#1442) sets the tanstack_live cookie and sends heartbeats, and server-side Scarf (TanStack#1398) forwards the visitor's IP and user agent on every HTML request. Both checked only DNT and GPC. Live presence now starts when the visitor allows Analytics and stops when they withdraw it. The Worker reads the stored c15t choice and skips server Scarf for browser requests without Analytics consent. Only browsers send Sec-Fetch-* headers, so crawler and agent requests, which carry no consent cookie, stay in the server request dataset.
Adds
/admin/livewith a live company grid, company trend, library and industry breakdowns, and expandable anonymous sessions and activity. Company rows support sorting and search; individual visitors stay hidden until expansion, and unmatched traffic stays collapsed at the bottom.Adds bounded first-party presence collection and server-side Scarf company lookup. DNT/GPC and private routes are excluded, IPs are not stored, and session records are deleted after 24 hours. Includes migration
0042_live_visitorsand enables collection in the production Worker configuration.Already deployed and verified in production, including company matches, page activity, departures, filtering, and expansion. The migration and server secret are already configured. The overview reports its 500-tab limit, and trend history builds from polling while the dashboard is open.
Validation: production build, TypeScript, lint, 626 unit tests, 2,270 chat tests, and 20 desktop tests passed before deployment. Production site and documentation smoke checks passed.
Summary by CodeRabbit