← Back to Pull requests

Send where the podcast screen was opened from in podcast_screen_shown #5333

Open
unknown opened this pull request with 320 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 02, 2026 01:39 UTC
Author

Fixes PCIOS-569

podcast_screen_shown now includes a source property saying where the podcast screen was opened from. iOS was sending the event with only uuid (and list_id), while Android already sends source, so the event couldn't be compared across platforms.

The values match the ones Android sends:

| Opened from | source |
|---|---|
| Podcasts tab, or a folder | podcast_list |
| Search results and search history | search |
| Episode details | episode_details |
| Discover, including network pages | discover |
| Player | player |
| Player shelf "Go to podcast" | bottom_shelf |
| "You might like" and podroll on a podcast page | podcast_screen |
| Incoming shared list | share_list |
| Notification | notification |
| Deep links, shortcuts, supporter page | unknown |

How it works: a new PodcastScreenSource enum, a screenSource property on PodcastViewController, and an optional NavigationManager.podcastSourceKey entry in the navigation data that NavigationManager passes through NavigationProtocol. Places that push the podcast screen directly set screenSource themselves. Anything that doesn't pass a source sends unknown.

Not included:

  • Discover is not split into discover_ranked_list and discover_plain_list as it is on Android. Every Discover entry point sends discover.

  • Nothing on iOS maps to Android's search_results.
  • Opened as a draft: this has not been compiled or run locally, so CI is the first build of it.

    To test

    1. Run the app with analytics logging visible.
    2. Open a podcast from the Podcasts tab.
    3. ✅ podcast_screen_shown is logged with source: podcast_list.
    4. Repeat from a folder, search, an episode's details, Discover, the player, the player shelf's "Go to podcast", a "You might like" row, and a notification, and check each sends the value in the table above.
    5. Open a podcast from a share link and check it sends source: unknown.

    Checklist

  • I have considered if this change warrants user-facing release notes and have added them to CHANGELOG.md if necessary.

  • I have considered adding unit tests for my changes.

  • I have updated (or requested that someone edit) the Event Horizon schema to reflect any new or changed analytics.
  • 🤖 Generated with Claude Code

    https://claude.ai/code/session_01WXHCp6rWZ494bhU9Ad5CLW

    ---
    _Generated by Claude Code_

    Diff: 320 lines (+240 / -80) across 4 files Reviewer: claude[bot] Review duration: 14m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.42) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 320 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.345
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #5333"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.9% · Safe to merge
    23.9%