Skip to content

feat(engagement): surface the engaged state on the dashboard (#172)#236

Merged
Azfe merged 4 commits into
developfrom
feat/n04-engaged-users
Jul 11, 2026
Merged

feat(engagement): surface the engaged state on the dashboard (#172)#236
Azfe merged 4 commits into
developfrom
feat/n04-engaged-users

Conversation

@Azfe

@Azfe Azfe commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

ADR-001 defines engaged as "interacted with the post but did not click the external link", yet the state was never materialized: the Edge Function does not write it (by design) and the dashboard did not aggregate it. Add engaged_users to post_engagement_daily, aggregate it over the 30-day window and show it on each post's secondary line.

Each engaged user is attributed to the day of their first interaction with the post, so summing the daily rows counts distinct users instead of doubling someone who interacted on several days. The materialized view is recreated (they cannot ALTER ... ADD COLUMN); the unique index, the hourly pg_cron job and the concurrent refresh all keep working.

Closes #172

@Azfe
Azfe merged commit 6055772 into develop Jul 11, 2026
6 checks passed
@Azfe
Azfe deleted the feat/n04-engaged-users branch July 11, 2026 15:51
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