Skip to content

Show daily SpaceTech bars and trends from the November 5 launch - #2653

Merged
jmgasper merged 2 commits into
devfrom
fix/spacetech-campaign-start
Nov 19, 2026
Merged

jmgasper merged 2 commits into
devfrom
fix/spacetech-campaign-start

Conversation

@jmgasper

@jmgasper jmgasper commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

SpaceTech’s first campaign post went out on November 5, 2026. Dashboard and Details now report traffic, conversions and leads starting at 00:00 UTC that day. The default date range covers up to the latest 90 days of the campaign.

The dashboard shows the selected metric as one bar per UTC day for each of the four campaign sources. A matching line overlays each source’s trailing seven-day average. The Details chart uses the same display for visitors and submissions. Each average includes quiet days and uses the available days at the beginning of the selected range. Choosing a source in the legend toggles its bars and line together. Longer ranges scroll horizontally on smaller screens.

The analytics Lambda enforces the campaign start before aggregation and returns daily per-source metrics alongside the existing weekly and full-period results. Requests spanning launch use November 5 as the start. Requests ending before launch return HTTP 400. The private lead table uses the same dates through the existing Forms API.

Verification

  • All 48 analytics UI tests and 37 analytics Lambda and SQL tests passed. Coverage includes the UTC launch boundary, daily per-source counts and rates, quiet days and the moving-average window.
  • TypeScript and ESLint passed for the changes.
  • Checked both charts with sample data at desktop and phone widths, including metric switching and source toggling.

Deploy the analytics Lambda in this repository before the UI so the dashboard has daily source data.

@jmgasper
jmgasper requested a review from kkartunov as a code owner November 19, 2026 00:48
@jmgasper jmgasper changed the title Start SpaceTech analytics on November 5, 2026 Show daily SpaceTech bars and trends from the November 5 launch Nov 19, 2026
@jmgasper
jmgasper merged commit 8510a19 into dev Nov 19, 2026
6 of 7 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.

1 participant