Skip to content

fix(analytics): show dash and hint when no device views recorded (#907) - #910

Open
ralksta wants to merge 1 commit into
devfrom
fix/907-analytics-zero-device-split
Open

ralksta wants to merge 1 commit into
devfrom
fix/907-analytics-zero-device-split

Conversation

@ralksta

@ralksta ralksta commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Fixes #907.

Changes

  • Extracted deviceSplitRatio() into app/admin/components/analyticsDays.ts returning null when no device views are recorded.
  • In AnalyticsView.tsx, show — and the translated noVisitsYet hint when total views is zero, rather than a fake 50% / 50%.
  • Added translated noVisitsYet string to all admin locales (de, en, es, fr, it, nl) and verified dictionary parity.
  • Added unit tests for zero and non-zero cases in app/admin/__tests__/analyticsDays.test.ts.

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