No description
  • TypeScript 98.1%
  • Dockerfile 1.3%
  • HTML 0.6%
Find a file
2026-06-26 19:04:54 +03:00
dist first commit 2026-06-21 22:19:09 +03:00
node_modules first commit 2026-06-21 22:19:09 +03:00
src add useInsightHistory hook and integrate with InsightsPage for historical insights 2026-06-26 19:04:54 +03:00
.dockerignore first commit 2026-06-21 22:19:09 +03:00
.gitignore update .gitignore to include additional log files, build artifacts, and environment variable files 2026-06-21 22:25:37 +03:00
Dockerfile first commit 2026-06-21 22:19:09 +03:00
index.html first commit 2026-06-21 22:19:09 +03:00
package.json add packageManager field to package.json 2026-06-21 23:08:22 +03:00
pnpm-lock.yaml first commit 2026-06-21 22:19:09 +03:00
README.md first commit 2026-06-21 22:19:09 +03:00
tsconfig.json first commit 2026-06-21 22:19:09 +03:00
vite.config.ts update preview configuration to include allowed hosts 2026-06-26 15:16:55 +03:00

Analytics Dashboard

Operator-facing dashboard for the analytics service (../analytics-be). Vite + React + MUI + recharts + @mui/x-data-grid + react-query. Talks directly to the analytics service using the admin key, which is entered at the login screen and held only in sessionStorage (sent as the x-admin-key header — never in a request body or the bundle).

Run locally

pnpm install
pnpm dev          # http://localhost:5174

Log in with the service URL (e.g. http://localhost:3002) and the ADMIN_API_KEY the analytics service was started with.

Pages

  • Overview — KPI cards + traffic time series (metric/interval toggles).
  • Pages & Clicks — top pages (views + avg dwell) and top click targets.
  • Audience — referrers, device breakdown, engagement (active/idle + dwell).
  • Sessions — paginated grid, per-session timeline drawer, movement heatmap.
  • Experiments — A/B results per variant with chi-squared significance.
  • AI Insights — on-demand summary + suggestions from local Ollama.
  • Manage — create projects, API keys (copy), and experiments.

Build / test

pnpm build        # tsc --noEmit && vite build
pnpm test         # vitest

Notes

  • The bundle is a single chunk (~457 KB gz). It's an internal tool; code-splitting was skipped — add manualChunks if it ever ships externally.