Skip to content

nightshift/bug: missing HubSpot count in day summary#18

Open
perandre wants to merge 1 commit intomainfrom
nightshift/bug-2026-04-13-missing-hubspot-summary
Open

nightshift/bug: missing HubSpot count in day summary#18
perandre wants to merge 1 commit intomainfrom
nightshift/bug-2026-04-13-missing-hubspot-summary

Conversation

@perandre
Copy link
Copy Markdown
Owner

Bug

getDaySummary() in app/lib/aggregator.ts counts activities from every source (calendar, slack, gmail, docs, trello, github, jira) except hubspot. HubSpot deal activities are fetched, aggregated into hourly buckets, and displayed in the timeline, but they are silently omitted from the summary totals returned by the API.

Repro

Connect a HubSpot account, view a day with deal activity. The summary object returned by /api/activities will show totalJiraActivities but no totalHubSpotActivities field -- HubSpot activities are invisible in the summary counts even though they appear in the timeline.

Fix

Added totalHubSpotActivities counter to getDaySummary(), filtering communications by source === "hubspot", matching the pattern used for every other source.

getDaySummary counted activities from every source (calendar, slack,
gmail, docs, trello, github, jira) except hubspot, which was added
later. HubSpot deal activities were fetched and displayed correctly
but silently omitted from the day summary totals.

https://claude.ai/code/session_01EG1HcH5DWijTkARenutW5N
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
activity Ready Ready Preview, Comment Apr 13, 2026 3:22am
worklog-xeqe Ready Ready Preview, Comment Apr 13, 2026 3:22am

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