Skip to content

fix: use participants_count from API for participants chart#23

Merged
agonza1 merged 1 commit into
peermetrics:masterfrom
Boanerges1996:fix/participants-chart-use-count
Apr 10, 2026
Merged

fix: use participants_count from API for participants chart#23
agonza1 merged 1 commit into
peermetrics:masterfrom
Boanerges1996:fix/participants-chart-use-count

Conversation

@Boanerges1996
Copy link
Copy Markdown
Contributor

Problem

The "Number of participants" chart shows all zeros because conf.participants is undefined on list responses (expand_fields removed in api#19).

Fix

Uses conf.participants_count (annotated integer from api#22) instead of conf.participants.length. Falls back to participants.length for conference detail views where the full array is still available.

Dependencies

Requires peermetrics/api#22 to be deployed.

Test plan

  • "Number of participants" pie chart shows correct distribution (e.g., "2 participants: 85%")
  • Chart works on both dashboard (uses participants_count) and detail views (uses participants.length)

Uses conf.participants_count (annotated by api#22) instead of
conf.participants.length. Falls back to participants.length for
detail views where the full array is still available.
@agonza1
Copy link
Copy Markdown
Contributor

agonza1 commented Apr 10, 2026

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@agonza1 agonza1 merged commit 40089fd into peermetrics:master Apr 10, 2026
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.

2 participants