← Back to Pull requests

Load the 2026 fundraiser banner from donate.python.org #21011

Open
Alc-Alc opened this pull request with 12 lines diff across 3 files
View on GitHub
Alc-Alc Alc-Alc commented on Nov 18, 2026 10:28 UTC
Author

  • adds the fundraiser banner same as last year (#19120)

  • banner now styles itself from JS and hosts its own font, so last year's style-src entry and the fonts.cdnfonts.com ones from #19167 aren't needed

  • no op until it goes live, preview with ?banner_preview=true
  • CSP

  • https://donate.python.org in script-src and font-src
  • Will be removed after the fundraiser, like #19250.

    <img width="610" height="419" alt="image" src="https://github.com/user-attachments/assets/04d16876-7049-4483-94f2-05f265ff5b96" />

    Similar PR https://github.com/python/pythondotorg/pull/3212

    Diff: 12 lines (+11 / -1) across 3 files Reviewer: miketheman Review duration: 22705m
    All Vouch review confidence checks passed
    Residual risk 0.02 = Change Risk (0.21) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.21 · 12 lines diff across 3 files
    0.21
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    89%
    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.153
    Real PR Conversation Timeline
    9 items
    Alc-Alc Alc-Alc commented on Nov 18, 2026 10:36 UTC
    Author

    @JacobCoffee for awareness 🙂

    Alc-Alc Alc-Alc commented on Nov 19, 2026 12:12 UTC
    Author

    For completeness

    @nlhkabu pointed out the text needed a narrower container. @JacobCoffee has since reworked the banner (left aligned box capped at 960px instead of full width).

    Lines are still longer than the 50-75 characters suggested, so it's improved but not fully there. But I think this can be reviewed and further changes can be done in the fundraiser repo if @nlhkabu is ok with this.

    Moving this out of draft. Screenshot updated to show the new banner.

    JacobCoffee JacobCoffee commented on Nov 19, 2026 16:03 UTC
    Contributor

    need to update prose on donate site side first but this lgtm

    nlhkabu nlhkabu commented on Nov 20, 2026 08:09 UTC
    Contributor

    Suggestions:

    <img width="1999" height="1004" alt="Screen Shot 2026-11-20 at 08 05 46-banner" src="https://github.com/user-attachments/assets/dc406ec4-adf8-4a0a-a3ed-c300f399e186" />

    <img width="400" alt="Screen Shot 2026-11-20 at 08 06 38-banner" src="https://github.com/user-attachments/assets/1515206c-0d6b-493a-a280-900f8797ba0e" />

    nlhkabu nlhkabu commented on Nov 20, 2026 08:10 UTC
    Contributor

    TLDR:
    Make it bigger
    Give the text more space for readability
    Display target if we can

    miketheman miketheman commented on Nov 20, 2026 17:24 UTC
    Reviewer

    Generally fine. I sent over some specific hardening concerns to @Alc-Alc for backend evaluation - but I don't think they block this, so I'll defer to @nlhkabu on what it ought to look like.

    nlhkabu nlhkabu commented on Nov 21, 2026 20:21 UTC
    Contributor

    As discussed with @Alc-Alc on Slack, I think we should rework this to match the fundraising page, rather than reworking last year's design. Something like this:

    <img width="1956" height="1612" alt="Donation Banner Options-selection" src="https://github.com/user-attachments/assets/d49bd2ff-931d-4e1b-85f2-08ae257f8eee" />

    ---

    <img width="400" alt="Donation Banner Options-selection(1)" src="https://github.com/user-attachments/assets/9f7aedc9-7440-45ad-96d8-d95c5f456f20" />

    ----
    We'd need to pull in the same fonts as the fundraising page (these fonts are placeholders), but that should be fairly straightforward.

    @JacobCoffee can you give me access to the correct codebase to implement this banner? Else, please feel free to use these mockups as inspiration :)

    JacobCoffee JacobCoffee commented on Dec 01, 2026 18:06 UTC
    Contributor

    @nlhkabu ive added you to the repo - ty for offering to help! sorry for slow reply was on PTO

    Reviewers
    Assignees
    Alc-Alc Alc-Alc
    Labels
    risk: low confidence: 89.1% 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: 21.3% (LOW) · Higher = larger blast radius
    21.3%
    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: 89.1% · Lower = rushed or shallow review
    89.1%
    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: 2.3% · Safe to merge
    2.3%
    Repository