Skip to content

[DEV-4444] Add parameters to heartbeat and changeset - #2297

Open
MarBert wants to merge 2 commits into
DEV-4370-add-webinar-acceptance-to-fefrom
DEV-4444-update-heartbeat
Open

[DEV-4444] Add parameters to heartbeat and changeset#2297
MarBert wants to merge 2 commits into
DEV-4370-add-webinar-acceptance-to-fefrom
DEV-4444-update-heartbeat

Conversation

@MarBert

@MarBert MarBert commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

List of Changes

This pull request enhances the webinar heartbeat tracking in the nextjs-website app by sending additional parameters with each heartbeat API call. These changes allow for more detailed tracking of webinar engagement and user consent.

Webinar Heartbeat API Enhancements:

  • The sendWebinarHeartbeat function now includes startedAt, consent, and duration parameters, providing more context about the user's session and acceptance status. [1] [2] [3]
  • The user's consent status is determined using the useUser hook and sent with the heartbeat. [1] [2]

Other:

  • Added a changeset file documenting the patch and its purpose.
  • Imported the date utility from fp-ts to help with time calculations. [1] [2]

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4f593c5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nextjs-website Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Jira Pull Request Link

This Pull Request refers to the following Jira issue DEV-4444

Copilot AI 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.

Pull request overview

This PR enhances webinar heartbeat tracking in the apps/nextjs-website Next.js app by extending the heartbeat payload with additional session context (start time, user consent, and webinar duration), and documents the change via a changeset.

Changes:

  • Extend WebinarHeartbeatParams and POST payload to include startedAt, consent, and duration.
  • Compute duration and derive consent from the authenticated user attributes when sending heartbeats.
  • Add a changeset describing the patch change.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
apps/nextjs-website/src/lib/webinars/webinarHeartbeat.ts Adds new heartbeat parameters to the request payload and updates the params type.
apps/nextjs-website/src/helpers/webinar.helpers.tsx Sends additional heartbeat fields (startedAt/consent/duration) from the webinar hook.
.changeset/tricky-rules-lie.md Declares a patch release for the heartbeat payload change.

import * as TE from 'fp-ts/lib/TaskEither';
import { makeErrorByMessage } from '@/lib/makeError';
import { Auth } from 'aws-amplify';
import { date } from 'fp-ts';
Comment on lines +202 to +204
startedAt: webinar.startDateTime,
consent: user?.attributes['custom:webinar_accepted'] === 'true',
duration: durationMinutes,
"nextjs-website": patch
---

Add parameters to the heartbeat api call
@github-actions

Copy link
Copy Markdown
Contributor

This pull request is stale because it has been open for 14 days with no activity. If the pull request is still valid, please update it within 21 days to keep it open or merge it, otherwise it will be closed automatically.

@github-actions github-actions Bot added the stale label Jul 15, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

This pull request was closed because it has been inactive for 21 days since being marked as stale.

@github-actions github-actions Bot closed this Aug 8, 2026
@github-actions
github-actions Bot deleted the DEV-4444-update-heartbeat branch August 8, 2026 02:42
@uolter
uolter restored the DEV-4444-update-heartbeat branch August 24, 2026 10:16
@uolter uolter reopened this Aug 24, 2026
@uolter uolter removed the stale label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants