Commit Graph

26 Commits

Author SHA1 Message Date
Usman Baig
430e6f5d48 feat: use session cookie auth for public dashboard password flow
handlePasswordSubmit now calls POST /public/sites/:id/auth which
sets an HttpOnly cookie. All subsequent API calls authenticate via
cookie automatically — no password in URLs, no captcha state needed
for data fetching. Simplifies share page state management.
2026-03-22 14:45:25 +01:00
Usman Baig
b305b5345b refactor: remove performance insights (Web Vitals) feature entirely
Remove Performance tab, PerformanceStats component, settings toggle,
Web Vitals observers from tracking script, and all related API types
and SWR hooks. Duration tracking is preserved.
2026-03-14 22:47:33 +01:00
Usman Baig
7247281ce2 feat: move performance to dedicated tab, fix 0/99999 metrics bug
Performance metrics moved from dashboard into a new Performance tab.
Fixed null handling so "No data" shows instead of misleading zeros.
Script no longer sends INP=0 when no interaction occurred.
2026-03-14 22:01:44 +01:00
Usman Baig
03e3f41e48 refactor: use bundled /behavior endpoint via useBehavior SWR hook
Replaces 4 separate frustration API calls with single useBehavior hook.
Removes manual fetchData, loading/error state, and refresh interval—SWR
handles caching, revalidation, and error state automatically.
2026-03-12 20:24:28 +01:00
Usman Baig
953762075b feat: add frustration signal API types and fetch functions 2026-03-12 16:53:05 +01:00
Usman Baig
d863004d5f perf: consolidate 7 dashboard hooks into single batch request
Replace useDashboardOverview, useDashboardPages, useDashboardLocations,
useDashboardDevices, useDashboardReferrers, useDashboardPerformance, and
useDashboardGoals with a single useDashboard hook that calls the existing
/dashboard batch endpoint. This endpoint runs all queries in parallel on
the backend and caches the result in Redis (30s TTL).

Reduces dashboard requests from 12 to 6 per refresh cycle (50% reduction).
At 1,000 concurrent users: ~6,000 req/min instead of 12,000.
2026-03-10 17:55:29 +01:00
Usman Baig
5677f30f3b feat: add dashboard dimension filtering and custom event properties
Dashboard filtering: FilterBar pills, AddFilterDropdown with dimension/
operator/value steps, URL-serialized filters, all SWR hooks filter-aware.

Custom event properties: pulse.track() accepts props object, EventProperties
panel with auto-discovered key tabs and value bar charts, clickable goal rows.

Updated changelog with both features under v0.13.0-alpha.
2026-03-06 21:02:14 +01:00
Usman Baig
7d3f1cb10a refactor: reduce stats.ts duplication with factory pattern (F-10, F-21)
Introduce buildQuery helper and createListFetcher factory to eliminate
near-identical param building and list endpoint boilerplate. File reduced
from ~600 to ~310 lines (~48% reduction) with identical runtime behavior.
2026-03-01 21:25:05 +01:00
Usman Baig
704a38f3df chore: update CHANGELOG.md to include lighter dashboard data transfers for improved loading times and new focused dashboard endpoints for efficient data retrieval 2026-02-27 09:24:01 +01:00
Usman Baig
ecea9cd094 feat: update getCampaigns API to include limit parameter and adjust Campaigns component to utilize it for fetching data 2026-02-04 19:41:48 +01:00
Usman Baig
d5ea1a793b feat: add Campaigns component and API integration for campaign statistics in SiteDashboardPage 2026-02-04 19:11:03 +01:00
Usman Baig
c780d3a119 feat: add display name support in GoalStats and provide user guidance in SiteSettingsPage 2026-02-04 15:37:18 +01:00
Usman Baig
90a743c170 feat: implement custom events tracking and goals management in the dashboard 2026-02-04 14:33:06 +01:00
Usman Baig
d9c3294eeb feat: add previous period statistics and enhance data loading in PublicDashboardPage 2026-01-27 21:23:11 +01:00
Usman Baig
5bc9c12fba feat: add captcha functionality to PublicDashboardPage and OrganizationSettings components 2026-01-24 23:29:59 +01:00
Usman Baig
ac427597b3 feat(dashboard): extend Chart component to include bounce rate and average duration metrics for enhanced analytics 2026-01-22 21:53:25 +01:00
Usman Baig
9dbe74fd9f refactor: update references from Ciphera Analytics to Ciphera Pulse across the application for consistent branding and messaging 2026-01-19 16:49:42 +01:00
Usman Baig
8fe2500d19 feat(analytics): add site settings and public dashboard 2026-01-18 18:39:26 +01:00
Usman Baig
ba1e5c1885 feat: add web vitals tracking script and performance dashboard UI 2026-01-18 17:52:53 +01:00
Usman Baig
7d3c0d49f9 feat: implement advanced chart dashboard with trends and comparisons 2026-01-18 13:25:01 +01:00
Usman Baig
8c4fe4348f feat: use aggregated dashboard endpoint 2026-01-18 12:59:38 +01:00
Usman Baig
19392ab385 feat: display screen resolution, content stats, and advanced metrics on dashboard 2026-01-16 22:22:02 +01:00
Usman Baig
1e2fa71e5c feat: add technology stats (browser, os, device) to analytics dashboard 2026-01-16 22:09:10 +01:00
Usman Baig
fa7e9fddb4 feat: add city and region tracking to analytics 2026-01-16 19:48:45 +01:00
Usman Baig
d6f19fe7c8 fix: Add null checks to stats API functions 2026-01-16 14:23:39 +01:00
Usman Baig
8e10a05eb1 Initial commit: Analytics frontend implementation 2026-01-16 13:14:19 +01:00