kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Pilot a donation banner on Docker installs

Open rtibbles opened this issue 4 weeks ago • 2 comments

Overview

Kolibri's Docker image has passed 10,000 downloads on Docker Hub. Kolibri links to the Learning Equality website and GitHub, but never asks for a donation. To expand our fundraising and awareness of Learning Equality, in 0.20 we will pilot a donation banner for super admins on Docker installs, reusing the impact-stories banner and A/B testing two English copy variants, with donations attributed to each variant.

Scope

  • Detect Docker installs as their own installation type.
  • Record when a pingback last succeeded.
  • Add a donation local notification and a variant of the impact-stories banner for it.
  • Excluded: translating the copy.

Guidance

  • installation_type(): kolibri/utils/server/__init__.py. Installer constants are in kolibri/utils/constants/installation_types.py.
  • Pingback: ping_once / perform_ping in kolibri/core/analytics/utils.py.
  • Impact-stories trigger: kolibri/core/analytics/local_notifications.py, scheduled by _generate_local_notifications in kolibri/core/analytics/tasks.py.
  • Banner: packages/kolibri-common/components/ImpactStoryBanner.vue, rendered by kolibri/plugins/device/frontend/views/DeviceAppBarPage.vue.

Acceptance Criteria

  • [ ] Pingbacks from Docker installs report a Docker installation type.
  • [ ] A super admin whose UI language is English sees the donation banner in the Device app when all of these hold:
    • The installation type is Docker.
    • No facility is registered.
    • More than 100 ContentSessionLogs started in the last 90 days.
    • The device timezone is a US timezone or UTC.
    • A pingback succeeded in the last 24 hours.
    • The impact-stories banner has been dismissed.
  • [ ] The impact-stories and donation banners never show at the same time.
  • [ ] A dismissed donation banner returns after 90 days only if more than 100 ContentSessionLogs started in those 90 days.
  • [ ] Each device is assigned variant a (Option 4) or b (Option 3) at random, once. The copy is attached to the banner sub-issue.
  • [ ] The donate button links to https://learningequality.org/donate/?source=kolibri-<version>-banner-<variant>, with the value URL-encoded, e.g. source=kolibri-0.20.0-banner-a.

AI usage

I set the scope, targeting, and cadence from a Slack discussion with the fundraising team. Claude Code checked the existing code and drafted the sections.

rtibbles avatar Nov 05 '26 23:11 rtibbles

assign

ArpitaSamanta10 avatar Nov 09 '26 06:11 ArpitaSamanta10

Hi! 👋

Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.

We really appreciate your willingness to help. 😊

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Nov 09 '26 06:11 learning-equality-bot