Skip to content

improve posthog logging#364

Merged
nxn-nicole merged 2 commits into
mainfrom
improve-posthog-logging
May 12, 2026
Merged

improve posthog logging#364
nxn-nicole merged 2 commits into
mainfrom
improve-posthog-logging

Conversation

@sol-wizard
Copy link
Copy Markdown
Owner

Summary

Improved PostHog tracking for AI task generation.

What Changed

Replaced ai_generated_task_titles with structured ai_generated_tasks.
ai_generated_tasks now includes:
title
description
start time
end time
label name
Added logic to avoid tracking when the user only opens and closes the AI dialog.
Still tracks if the user submitted text/voice but the backend returns no content.
Why

The old report did not show the AI-generated date/time, so it was hard to evaluate model accuracy. It also included noisy empty rows from users opening and closing the AI dialog without input.

Expected Behavior

Open and close without input: no PostHog row
Submit input but no AI output: abandoned
Generate preview then close: rejected
Generate preview then accept: accepted

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

Test Results

24 tests   24 ✅  2s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit a423427.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

Package Line Rate Branch Rate Complexity Health
BlotzTask 3% 14% 1530
BlotzTask 3% 14% 1530
Summary 3% (1778 / 60608) 14% (196 / 1392) 3060

@nxn-nicole nxn-nicole merged commit 8c859b3 into main May 12, 2026
3 checks passed
@nxn-nicole nxn-nicole deleted the improve-posthog-logging branch May 12, 2026 01:06
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