Skip to content

fix(analytics): onboarding median shows "< 1 min" for waits under a minute - #65

Merged
jplacht merged 1 commit into
mainfrom
fix/release-polish
Oct 1, 2026
Merged

jplacht merged 1 commit into
mainfrom
fix/release-polish

Conversation

@jplacht

@jplacht jplacht commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What and why
The onboarding funnel on the admin dashboard showed "0 min" as the median time to the first plan when it was under a minute.

Changes

  • _duration returns "< 1 min" below 60 s
  • test for a funnel whose median wait is 30 s

How it was verified
uv run ruff check, ruff format --check, ty check and pytest pass.

Paired frontend PR: PRUNplanner/frontend#537. Independent, either can deploy first.

🤖 Generated with Claude Code

…inute

- _duration returned "0 min" below 60 s; it now returns "< 1 min"
- test for a funnel whose median wait is 30 s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage 100.00% diff coverage · -0.02% coverage variation

Metric Results
Coverage variation ✅ -0.02% coverage variation (-1.00%)
Diff coverage ✅ 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (aa22a3c) 4633 4423 95.47%
Head commit (80852eb) 4635 (+2) 4424 (+1) 95.45% (-0.02%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#65) 2 2 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@jplacht
jplacht merged commit 172ce74 into main Oct 1, 2026
6 checks passed
@jplacht
jplacht deleted the fix/release-polish branch October 1, 2026 09:10
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