Skip to content

fix: filter zero-visit platforms from traffic breakdown - #616

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
Jesulac:fix/bounty-606
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
Jesulac:fix/bounty-606

Conversation

@Jesulac

@Jesulac Jesulac commented Aug 3, 2026

Copy link
Copy Markdown

Closes #606. Platforms that only existed in the previous period were appearing with visits=0 in the current period's platformBreakdown, inflating the Platforms KPI and showing 0-visit rows in the table. The chart already filtered these out, so this adds a matching filter to the data action to keep KPI, table, and chart consistent. All tests pass.

Platforms that only existed in the previous period were appearing
with visits=0 in the current period's platformBreakdown, inflating
the Platforms KPI and showing 0-visit rows in the table. The chart
already filtered these out, so this adds a matching filter to the
data action to keep KPI, table, and chart consistent.

Closes #606.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly the right one-line fix — keeps the union for deltas and drops the zero rows from the response. Thanks, and welcome!

@gkhngyk
gkhngyk merged commit b99a658 into ansvisor:main Aug 3, 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.

AI Traffic: platforms with zero visits in the selected period inflate the Platforms KPI and table

2 participants